[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Writing a new class ?



Ok, it works.
I've read (not entirely ...) the documentation, and I don't see something about that ... But, I've read that classes are the only global objects ... It's easier to make static global object, maybe I could infer that I must relaunch the interpreter ...
brief,
Thanks.


Josh Parmenter a écrit :
You need to save class files as Text files (with the .sc extension... see save as).

Then, they need to go into the class file path. I suggest putting them in your Application Support Directory's Extensions. On OSX one of these is located at ~/Library/Application Support/SuperCollider/Extensions .

Recompile the library... then try:

a = NewClass.new;

Hope that helps.

Josh


On Mar 4, 2009, at 10:46 AM, kg wrote:

Hi,

I'm discovering supercollider langage. I'm trying to write a class.
This is the code that I've wrote:
NewClass {}

This is the error that I obtain when I execute it:
ERROR: Class not defined.
 in file 'selected text'
 line 1 char 8:
NewClass¢ { }
-----------------------------------
nil


What's happenning ? (It's difficult to make an easier code that it ...)


Thx in advance.


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/

******************************************
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono
*/


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/



_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/