From: owner-sc-users-digest@lists.io.com (sc-users-digest) To: sc-users-digest@lists.io.com Subject: sc-users-digest V1 #109 Reply-To: sc-users Sender: owner-sc-users-digest@lists.io.com Errors-To: owner-sc-users-digest@lists.io.com Precedence: bulk sc-users-digest Tuesday, April 18 2000 Volume 01 : Number 109 ---------------------------------------------------------------------- Date: Sat, 15 Apr 2000 22:59:34 -0500 From: James McCartney <---@---.---> Subject: Re: array question on 4/15/00 9:49 PM, Paul Lansky at paul@silvertone.Princeton.EDU wrote: > I have a two dimensional array, e.g. > > x = [[3,6,9],[8,2],[1,2,3,4]]; > > and want to create a second array which individually indexes > each element in the first array, e.g. > > y = [[0,0],[0,1],[0,2],[1,0],[1,1],[2,0],[2,1],[2,2],[2,3]]; > > the following fails because it keeps the innter arrays intact. > > y = Array.fill(x.size, {arg a; Array.fill(x.at(a).size,{arg b; [a,b]})}); > > yields > [[[0,0],[0,1],[0,2]],[[1,0],[1,1]],[[2,0],[2,1],[2,2],[2,3]]] How about: x = [[3,6,9],[8,2],[1,2,3,4]]; y = []; x.do({ arg sublist, i; sublist.do({ arg item, j; y = y.add([i, j]); }); }); y.postln; - --- james mccartney james@audiosynth.com SuperCollider - a real time synthesis programming language for the PowerMac. ------------------------------ Date: Mon, 17 Apr 2000 01:48:15 +0200 From: Julian Rohrhuber <---@---.---> Subject: midisync is there a deeper reason that there is no access to the midi sync signal? (I play together with a band of toy instruments and it would be very efficient to synchronize it this way.) ------------------------------ Date: Tue, 18 Apr 2000 15:10:33 +0100 From: rkuivila@mail.wesleyan.edu (Ron Kuivila) Subject: The 'task' message in Synth is broken 1. task message seems to be got between versions... args for Task.new: *new { arg func, synth, startTime=0.0, stackSize=512, seed = -1; usage in Synth.task task = Task(func, this, stackSize, seed); 2. DelayWr vs RecordBuf. Is there a significant difference? In the Granulate input example the following expression appears: bufR = Signal.new(delayLineLength); But this appears to return a Signal of 0 length. I notice that if I use DelayWr, the size of the Signal it writes into gets changed. Why? RJK ------------------------------ End of sc-users-digest V1 #109 ******************************