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

Re: [sc-dev] [approve] SynthDef-store



I was wondering about just enforcing this kind of behaviour in load or writeDefFile.
But this looks good and I think load should be deprecated in the examples.

I first thought about putting it in load, too, but maybe it is not bad to have
a possibility to load without adding it to the SynthDescLib.

I've updated SynthDef.help and Pbind.help in this respect.
(Pbind.help needs some more work, I save for later)


On Feb 3, 2004, at 7:52 AM, Julian Rohrhuber wrote:

 useful. commit?

 SynthDef:

 	store { arg libname=\global, path="synthdefs/";
 		var lib;

 		lib = SynthDescLib.all.at(libname);
if(lib.isNil) { "library" + libname + "not found".error; ^nil };
 		this.writeDefFile(path);
 		path = path ++ name ++ ".scsyndef";
 		lib.read(path);
 		lib.servers.do { arg server;
 			server.listSendMsg(
 				["/d_load", path ]
 			)
 		}
 	}

 --







 .
 _______________________________________________
 sc-dev mailing list
 sc-dev@xxxxxxxxxxxxxxx
 http://www.create.ucsb.edu/mailman/listinfo/sc-dev


_______________________________________________
sc-dev mailing list
sc-dev@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-dev

--








.