[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] Importing synthdef code
Am 28.12.2012 um 21:07 schrieb Richard Wentk:
Is it possible to import synthdef(s) from one or more files and have
the interpreter work with them in the usual way?
I can build classes and such, but I really want to know if something
like
#import [path]/mysynthdefs.sc
is possible in the language.
Hi
"pathToMySynthDefsFile".load;
If you're going to do that in your startup file
(not generally regarded as good practice
as it might be forgotten and cause surprises later on)
you would have to ensure
that server is booted,
so you could write something like
s = Server.local;
Server.default = s;
s.boot;
s.doWhenBooted { "pathToMySynthDefsFile".load }
Or define a single project load file,
which includes further load specifications.
Greetings
Daniel
-----------------------------
http://daniel-mayer.at
-----------------------------
_______________________________________________
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/