From: owner-sc-users-digest@lists.io.com (sc-users-digest) To: sc-users-digest@lists.io.com Subject: sc-users-digest V1 #146 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 Wednesday, July 19 2000 Volume 01 : Number 146 ---------------------------------------------------------------------- Date: Sun, 16 Jul 2000 23:01:23 +0100 From: Arie van Schutterhoef <---@---.---> Subject: Re:(bloody) impressive >> >impressive - -actually: I want to paraphrase that: more than bloody impressive (thank you, James); [...sorry about this exclamation...] (you'll understand... sort of.... [hopefully]) anyway, AvS <<<<<<<<<<<<<<<<<<<<<<<<<-////||\\\\->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Arie van Schutterhoef arsche@xs4all.nl Schreck Ensemble http://www.xs4all.nl/~schreck/ # -laboratory for live electro-acoustic music- # Tel: 00-31-71-5612287 Fax: 00-31-70-3859268 <<<<<<<<<<<<<<<<<<<<<<<<<-////||\\\\->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ------------------------------ Date: Mon, 17 Jul 2000 02:47:00 +0200 From: Julian Rohrhuber <---@---.---> Subject: Re: GUI items as input to ImpulseSequencer an easy way would be to use something like ImpulseSequencer.ar({ arg i; w.views.wrapAt(i).value }, Impulse.ar(3)); ( var w,beats; w = GUIWindow.new("panel", Rect.newBy(119, 574, 258, 99)); 8.do({arg i;CheckBoxView.new( w, Rect.newBy(13 + (26 * i), 33, 22, 22), "CheckBoxView", 1, 0, 1, 0, 'linear')}); beats = List.fill(8,0); beats = beats.collect({arg item,i;w.at(i).value}); //beats.at(0).class.postln; play({ arg synth; var t, dt; dt = 8; // the value for synth.repeat must not be a UGen t = LFPulse.ar(dt); synth.repeat(0,1/dt,{beats = beats.collect({arg item,i;w.at(i).value})}); Decay2.ar( ImpulseSequencer.ar({ arg i; beats.wrapAt(i) }, t), //I still donīt know exactly what a ref is for apart from stopping multichannel expansion, //but it seems that it doesnīt point to the same array any more. this is the way I usually do it. 0.001, 0.5, FSinOsc.ar(150, 0.2)) }); w.close ) _________ Julian > yet beats.at(0).class.postln tells me it's a Float. > > What am I doing wrong ? > > Thanks, > > Jem > > ( > var w,beats; > w = GUIWindow.new("panel", Rect.newBy(119, 574, 258, 99)); > 8.do({arg i;CheckBoxView.new( w, Rect.newBy(13 + (26 * i), 33, 22, > 22), "CheckBoxView", 1, 0, 1, 0, 'linear')}); > > beats = List.fill(8,0); > beats = beats.collect({arg item,i;w.at(i).value}); > //beats.at(0).class.postln; > > play({ > arg synth; > var t; > t = LFPulse.ar(8); > //synth.repeat(0,1/t,{beats = beats.collect({arg > item,i;w.at(i).value})}); > Decay2.ar( > ImpulseSequencer.ar(`beats, t), > 0.001, 0.5, FSinOsc.ar(150, 0.2)) > > }); > w.close > > ) ------------------------------ Date: Sun, 16 Jul 2000 20:13:13 -0700 From: Alberto de Campo <---@---.---> Subject: Re: GUI items as input to ImpulseSequencer Jem Finer wrote: > As a first step towards making some kind of rhythm sequencer I'm > simply trying to get an ImpulseSequencer to accept an array of values > obtained from a GUI. > This code doesn't work because > > ImpulseSequencer stream.value must return an Integer or Float. > > yet beats.at(0).class.postln tells me it's a Float. > > What am I doing wrong ? > > Thanks, > > Jem Here's my take on this. ( var w,beats, boxes; w = GUIWindow.new("panel", Rect.newBy(119, 574, 258, 99)); beats = Array.fill(8,1); // make beats an array, not a list. // ImpulseSequencer expects an array. boxes = beats.collect( // make boxes that write their values // directly into the beats array when // changed. { arg eachBeat, i; CheckBoxView.new( w, Rect.newBy(13 + (26 * i), 33, 22, 22), "CheckBoxView", eachBeat, 0, 1, 0, 'linear') .action_({ arg thisBox; beats.put(i, thisBox.value) }); // whenever a box is switched, its action is // executed. the action here writes thisBox.value // (the new on or off value) directly into the beats array. }); scope({ arg synth; var t; t = LFPulse.ar(8); // you can't schedule with 1/t if t is a signal, // it has to be a number. // (but you don't need to if you update from the gui!) // synth.repeat(0,1/t, // { beats = beats.collect({arg item,i; w.at(i).value }).postln }); Decay2.ar( ImpulseSequencer.ar(`beats, t), 0.001, 0.5, FSinOsc.ar(300, 0.2)); }); w.close; ) Hope this helps. best, alberto ------------------------------ Date: Mon, 17 Jul 2000 09:09:26 +0100 From: rkuivila@mail.wesleyan.edu (Ron Kuivila) Subject: Re: SuperCollider Course in Berlin -- 7-11 August, 2000 Hi Stephen, Circumstances have gotten a bit complex: my wife Bobbi's dad died. She has left for San Diego and I will leave on Wednesday. If it's OK, I would still like to get together tomorrow afternoon. (I also have an iMac here from DAAD that I won't need until mid-August. I'll check in w/ Folkmar and perhaps bring it to the studio tomorrow.) best, RJK ------------------------------ Date: Mon, 17 Jul 2000 05:28:20 -0400 (EDT) From: Tristan Jehan <---@---.---> Subject: string to list of integers? Is there a way to convert a string of integers into a list of integers? Tristan Hyperinstruments MIT Media Laboratory (617) 253 2041 ____________________ Work like you don't need money, Love like you've never been hurt, Dance like no one's watching. ------------------------------ Date: Mon, 17 Jul 2000 14:18:37 +0200 From: Julian Rohrhuber <---@---.---> Subject: conditional structures what is the best way in sc to make a decicion like if(a, { ... }) if(b, { ... }) if(c, { ... }) without having to say if(a, { ... }) if(a and: b.not and: c.not, { ... }) if(b and: a.not and: c.not, { ... }) if(c and: a.not and: b.not, { ... }) ? I know that there one can use a Dictionary for multidecisions, Dictionary.new([ a -> { ... }, b -> { ... }, c -> { ... } ]) but I can see that only work for symbols as keys and not for conditions. ------------------------------ Date: Mon, 17 Jul 2000 09:21:10 -0500 (CDT) From: "AUDIOSYNTH.COM" <---@---.---> Subject: Re:(bloody) impressive Before you get too excited remember the bandwidth formula I posted a while back. (i.e. video requires something like 500 times the CPU of audio). Which means you either get simple images or low frame rates or both depending on what you are trying to do. However neat things are possible. ------------------------------ Date: Mon, 17 Jul 2000 09:31:03 -0500 (CDT) From: "AUDIOSYNTH.COM" <---@---.---> Subject: Re: string to list of integers? If your string looks like "[1, 2, 3, 4, 5]" then you can just interpret it. result = thisProcess.interpreter.compile(string).value; or result = thisProcess.interpreter.interpret(string); On Mon, 17 Jul 2000, Tristan Jehan wrote: > Is there a way to convert a string of integers into a list of integers? > > Tristan > > Hyperinstruments > MIT Media Laboratory > (617) 253 2041 > ____________________ > Work like you don't need money, > Love like you've never been hurt, > Dance like no one's watching. > ------------------------------ Date: Tue, 18 Jul 2000 09:25:29 +0200 From: Stephen Pope <---@---.---> Subject: Re: SuperCollider Course in Berlin -- 7-11 August, 2000 Hi there, I'm very sorry to hear of your family emergency. I teach here at the TU today from 10 AM - 4 PM. It'd be great to see you after that. I'll try calling you... stp Ron Kuivila wrote: > > Hi Stephen, > > Circumstances have gotten a bit complex: my wife Bobbi's dad died. She > has left for San Diego and I will leave on Wednesday. If it's OK, I would > still like to get together tomorrow afternoon. (I also have an iMac here from > DAAD that I won't need until mid-August. I'll check in w/ Folkmar and > perhaps bring it to the studio tomorrow.) > > best, > > RJK - -- stp Stephen Travis Pope Email: stp@create.ucsb.edu WWW: http://www.create.ucsb.edu/~stp ------------------------------ Date: Wed, 19 Jul 2000 08:49:47 -0600 From: David Cottle <---@---.---> Subject: Crash on recompile with new library Hi, Is it just me, or has anyone else experienced this error: Choose new library recompile ok change something in the file Main.sc in the new library (I leave the file open and just save it, it's faster that way). the change has an error in it recompile causes a brief error message printed to the screen and then a crash ------------------------------ End of sc-users-digest V1 #146 ******************************