I'm enjoying both Qitch and Tartini. With Qitch I thought it could be made easier to load the kernel buffer, so I moved the existing kernel files into a new folder QitchData (in the same location as Qitch.sc). Then:
+ Qitch {
*loadDataBuffer { |kernelSize = 2048, server|
var path = PathName(this.filenameSymbol.asString).pathOnly;
server ?? { server = Server.default };
if(server.serverRunning.not) {
Error("Server must be booted to load data.").throw;
};
path = "%QitchData/QspeckernN%SR%.wav".format(path, kernelSize, server.sampleRate);
if(File.exists(path).not) {
Error("Kernel file % does not exist.".format(path)).throw;
};
^Buffer.read(server, path)
}
}
d = Qitch.loadDataBuffer;
{ ... Qitch.kr(signal, d, ...) } ...
hjh
: H. James Harkins
: jamshark70@...
: http://www.dewdrop-world.net
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:
"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal." -- Whitman
_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users