[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.

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