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

[sc-dev] [approve] SynthDef-store



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 ]
			)
		}
	}

--








.