From: owner-sc-users-digest@lists.io.com (sc-users-digest) To: sc-users-digest@lists.io.com Subject: sc-users-digest V1 #201 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, November 14 2000 Volume 01 : Number 201 ---------------------------------------------------------------------- Date: Sun, 12 Nov 2000 09:25:50 -0600 From: James McCartney <---@---.---> Subject: Re: cross closure communication Just a note to readers that this is version 3 code.. > amp = Plug.ar(controlArray.at(0)); at the time the plug is created, the controlArray.at(0) has the value of zero. So that Plug gets the value zero and that's it. You need to tell Plug to look in the array each cycle. do this: Plug.ar(controlArray, index: 0) There also happens to be a bug in fold for integers in the case you gave. do this: i.asFloat.fold(0.0, 1.0) I scaled down the Klank amplitude ( var controlArray; controlArray = FloatArray[0.0]; #{ arg controlArray; { Sequencer.kr({ arg i; controlArray.put(0, i.asFloat.fold(0.0, 1.0)) }, Impulse.kr(8)) }.play; }.send(controlArray); #{ arg controlArray; { var exc, amp; amp = Plug.ar(controlArray, index: 0); exc = LPZ1.ar(GrayNoise.ar([amp,amp])); Klank.ar(`[FloatArray.fill(4, { rrand(80.0,4000.0) }), nil, FloatArray[1, 1, 1, 1]], exc * 0.001); }.play; }.send(controlArray); ) - --- james mccartney james@audiosynth.com SuperCollider - a real time synthesis programming language for the PowerMac. ------------------------------ Date: Sun, 12 Nov 2000 18:06:52 +0100 From: Julian Rohrhuber <---@---.---> Subject: Re: cross closure communication thanks, the index in plug is a very handy feature, too. btw: - - wouldnt it be good if Sequencer could return also arrays? - - what is the simplest way to run a control rate Sequencer with an audio rate trigger? James McCartney wrote: > > Just a note to readers that this is version 3 code.. > > > amp = Plug.ar(controlArray.at(0)); > > at the time the plug is created, the controlArray.at(0) has the value of > zero. So that Plug gets the value zero and that's it. You need to tell Plug > to look in the array each cycle. > > do this: Plug.ar(controlArray, index: 0) > > There also happens to be a bug in fold for integers in the case you gave. > do this: i.asFloat.fold(0.0, 1.0) > > I scaled down the Klank amplitude > > ( > var controlArray; > > controlArray = FloatArray[0.0]; > #{ arg controlArray; > { Sequencer.kr({ arg i; > controlArray.put(0, i.asFloat.fold(0.0, 1.0)) > }, Impulse.kr(8)) }.play; > }.send(controlArray); > > #{ arg controlArray; > > { > var exc, amp; > amp = Plug.ar(controlArray, index: 0); > exc = LPZ1.ar(GrayNoise.ar([amp,amp])); > Klank.ar(`[FloatArray.fill(4, { rrand(80.0,4000.0) }), > nil, > FloatArray[1, 1, 1, 1]], exc * 0.001); > }.play; > > }.send(controlArray); > ) > > --- james mccartney james@audiosynth.com > SuperCollider - a real time synthesis programming language for the PowerMac. > ------------------------------ Date: Mon, 13 Nov 2000 08:22:38 +0100 From: integer@www.god-emil.dk Subject: [ot] [!nt] \n2+0\ "video kid" >>If anyone is interested in seeing nato, videodelic, >>and arkaos in action on a U2 live performance check >>out: >>farmclub.com_watch_10_30_00 > > >my-my. what a corporate success. > >everyone at nato should slap themselves on the back. > >v-k u2 < http://www.eusocial.com/nato.0+55+3d/242.komentari.html = zlap ur.cellz nn pre.konssept!n meeTz ver!f1kat!n. - Netochka Nezvanova - urap!ng znoubalz !n !sz krema. vrrr.endl!. ^Pf^P^P^P3.MASCHIN3NKUNST @www.eusocial.com 17.hzV.tRL.478 e | | +---------- | | < \\----------------+ | n2t^P | > e ------------------------------ Date: Tue, 14 Nov 2000 20:50:51 +0100 From: integer@www.god-emil.dk Subject: [ot] [!nt] \n2+0\ DEAF nato.summit _____ the mir list is dedicated to the DEAF nato.summit - http://www.natosummit.org abroeck@v2.nl - "please, let me know who to add" ++ zte!m rumor = tom demeyer = konztruktd nato. tzzt ................... ....uaz uear!ng dze nato logo. ....f!lm!ng dze nato uorkshop 4 lokaal telev!z!on .............nn had != apeard. ...............zm!ld aud!bl!. much d!zkuz!e + rumorz okkur!ng. .................2 tu!rl !n. vr!!!endl!. nn - r!ch.bored.edukated. all dolled up 4 u!ntr -> http://euc.cx/ pre.konssept!n meeTz ver!f1kat!n. - Netochka Nezvanova - nothing : strength through diversity f3.MASCHIN3NKUNST @www.eusocial.com 17.hzV.tRL.478 e | | +---------- | | < \\----------------+ | n2t^P | > e ------------------------------ End of sc-users-digest V1 #201 ******************************