From: owner-sc-users-digest@lists.io.com (sc-users-digest) To: sc-users-digest@lists.io.com Subject: sc-users-digest V1 #106 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 Saturday, April 8 2000 Volume 01 : Number 106 ---------------------------------------------------------------------- Date: Thu, 06 Apr 2000 15:18:00 -0500 From: James McCartney <---@---.---> Subject: Re: slider to access array of ugens on 4/6/00 4:23 AM, Jem Finer at jemfiner@redhotant.com wrote: > I'm a bit stumped here : > > Trying to get a slider to select, on the fly, different inputs to a > RecordBuf : whatever I try, Plug.kr(in), in.kr, in.value, appending .asInt > to them etc the errors always seem to be that index is not an integer - > enlightenment would be a blessing ! > > Yours in the knowledge that the solution is probably elementary, > > Jem > > ( > var w,a,b,c,d,sig,in,ind; > w = GUIWindow.new("panel", Rect.newBy(128, 64, 400, 400)); > in = SliderView.new( w, Rect.newBy(18, 36, 344, 37), "SliderView", 0, 0, 5, > 1); > > Synth.play({ > > a = AudioIn.ar(1); > b = Saw.ar(100); > c = SinOsc.ar(100); > d = Pulse.ar(500); > > sig = Signal.newClear(Synth.sampleRate * 4); > > RecordBuf.ar(sig,[a,b,c,d].at(WHAT GOES IN HERE ?),1,0,0,1,1)}) > ) Nothing goes in there. You cannot use 'at' in that way. The 'at' is evaluated once when the patch is built, resulting in only one ugen. You have to mix a,b,c,d together each multiplied by a function that is 1 or zero when the slider is in the proper position. - --- james mccartney james@audiosynth.com SuperCollider - a real time synthesis programming language for the PowerMac. ------------------------------ Date: Thu, 06 Apr 2000 15:48:38 -0500 From: James McCartney <---@---.---> Subject: Re: slider to access array of ugens on 4/6/00 3:18 PM, James McCartney at asynth@io.com wrote: > You have to mix a,b,c,d together each multiplied by a function that is 1 or > zero when the slider is in the proper position. Actually what you should do is put a Plug.ar in the RecordBuf input and have your slider action function change the source variable. - --- james mccartney james@audiosynth.com SuperCollider - a real time synthesis programming language for the PowerMac. ------------------------------ Date: Fri, 07 Apr 2000 13:23:24 +0100 From: Martin Robinson <---@---.---> Subject: Re: slider to access array of ugens Jem, this should help... ( Synth.play({ var sources, outs, inSel; var w; w = GUIWindow.new("panel", Rect.newBy(202, 71, 403, 142)); inSel = SliderView.new( w, Rect.newBy(37, 40, 311, 51), "SliderView", 0, 0, 1, 1, 'linear'); sources = Array.fill(8, { SinOsc.ar(exprand(100, 1000), 0, 0.1) } ); inSel.maxval_(sources.size-1); outs = sources.collect({ arg source, si; var amp; amp = (((inSel.kr-si).abs) - 0.5) < 0; amp*source }); Mix.ar(outs) //outs.mix }) ) I've been waiting for an excuse to update this part to my "Toolbox" patch :) BTW The outs.mix statement is there 'cos I added an Array::mix method: mix { ^Mix.ar(this) } >>>>>>Martin Robinson :: (Ex)tractor :: && ________ >>><<<_sonicArts.at(middlesexUniversity.london.uk); ______ <><><>__this.liveElectronics.interFaces.diffusion ____ ________________________________________________________________ >><<>>___t.+44 [0] 7970 405 903 // f.+44 [0] 7970 702 976 __ >><><>____e. _ ------------------------------ Date: Fri, 07 Apr 2000 10:33:32 +0100 From: Jem Finer <---@---.---> Subject: Re: slider to access array of ugens Ahhhh, I thought I tried that - obviously not - it works . . . thanks, > Actually what you should do is put a Plug.ar in the RecordBuf input and have > your slider action function change the source variable. > Jem ------------------------------ Date: Fri, 07 Apr 2000 15:14:40 +0100 From: Jem Finer <---@---.---> Subject: Re: slider to access array of ugens Martin, Thanks, A better way than the laborious work round I ended up with - I looked at your old patch and figured fro it how to use DelayWr to pass audio between patches. I've hacked into the mixer and got it giving me buttons, signal windows etc - this should make it quite workable - re encryption - its clever - but when i've tried it still sounds pretty like floating 1 - I'm trying to get one to work that just gives noise (and back again) - or - a totally new piece of music ! cheers, Jem ------------------------------ Date: Fri, 07 Apr 2000 22:55:22 -0600 From: David Cottle <---@---.---> Subject: Keydown Hi, I've been reading through the keydown documents and archives but I'm still a little unclear on how I might trigger MIDI events with it. Is this possible? Some colleagues want me to give a demo next week which includes a patch where the space bar advances a MIDI keyboard to the next chord in a series. Could you give me a simple example? ------------------------------ Date: Sat, 8 Apr 2000 19:47:09 +0200 From: jr@xs4all.nl Subject: midi to cps two simple questiongs 1) Am I wrong to expect that 60.midiratio = 1.0? In a patch using Playbuf, passing the playback rate set effectively by pbRate=60.midiratio results in exactly four times unity playback rate? 2) this came up when trying to see what was going on above If 'note' is defined eg as in example 4 patternList = #[55,60,63,62,60,67,63,58]; note = Sequencer.kr( `patternList, trigger ); freq = note.midicps; Why cant I force this simple function to evaluate itself and display momentary values say via Synth.trepeat(0,0.50) {... note.value.postln; freq.value.postln; ..} all I can get out "an UnaryOpUgen" or "a Sequence" ==== Joel Ryan ======== STEIM ==== AMSTERDAM ------------------------------ Date: Sat, 08 Apr 2000 11:53:08 -0700 From: Mark Polishook <---@---.---> Subject: g4 James and all, Our music lab now has G4s (with OS9) and our Korg and AMIII cards are not working on them. Our lab managers have been scouring the net looking for solutions and have found, I think, that the drivers for the cards are not yet compatible. Does anyone have either of these cards working on a G4 with OS9 (and SC) and, if so, is there anything special that needs to be done to get them running? Thanks in advance, Mark ------------------------------ Date: Sat, 08 Apr 2000 13:56:21 -0700 From: Mark Polishook <---@---.---> Subject: Re: g4 Mark Polishook wrote: > James and all, > > Our music lab now has G4s (with OS9) and our Korg and AMIII cards are not working on > them. Our lab managers have been scouring the net looking for solutions and have found, I > think, that the drivers for the cards are not yet compatible. > ...our korg card become operational moments ago, thanks to new drivers (just posted, i'm told) from the korg www site. but the amIII is still not working - does anyone know of a solution for this? thanks, mark ------------------------------ End of sc-users-digest V1 #106 ******************************