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

Re: [sc-dev] scsynth audio driver, behavior of oscTime variable



At Sun, 29 Nov 2015 15:58:37 +0000,
Scott Wilson wrote:
> 
> *** ERROR: SynthDef rec not found

Ouch... that wasn't very bright.

SynthDef(\rec, { |in = 0, bufnum|
	RecordBuf.ar(In.ar(in, 1), bufnum, loop: 0, doneAction: 2);
}).add;

Also, if you don't want to install the ddwCommon quark just for this test:

~collectIndices = { |collection, func|
	var new = Array.new;
	collection.do { |item, i|
		if(func.value(item, i)) {
			new = new.add(i);
		};
	};
	new
};

// e = d.collectIndices(_ > 0);  // collectIndices is from ddwCommon quark
e = ~collectIndices.value(d, _ > 0);

hjh



_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/