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

[sc-users] Need help with Buffer and Osc



Hello.

I try to use a buffer filled with frequencies as the input for a Latch.
It doesn't work:

	pitchBuffer = Buffer.alloc(s, 16, 1);
	pitchBuffer.setn(0, [69, 71, 73, 74, 76, 78, 80, 81].midicps);

	base = Latch.kr(
		Osc.kr(pitchBuffer.bufnum, y),
		gate
	);

'y' and 'gate' have meaningful values.  What am I doing wrong?

Further, how do I tell the Osc to loop at index 8?

Thanks for your help, --Daniel