From: owner-sc-users-digest@lists.io.com (sc-users-digest) To: sc-users-digest@lists.io.com Subject: sc-users-digest V1 #169 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, September 13 2000 Volume 01 : Number 169 ---------------------------------------------------------------------- Date: Mon, 11 Sep 2000 12:01:58 -0700 (PDT) From: Chad Kirby <---@---.---> Subject: How to tell if a Synth is running How do you tell in code if a synth is running? In Synth.sc, I see the following: *sampleRate_ { arg newSampleRate=44100.0; if (Synth.isPlaying, { error("cannot change sample rate while playing\n"); ... But isPlaying is not a message Synth understands. I have buttons in a GUI that start a synth and do stuff, and I just want the button to not do anything if a synth is already running (in case I accidentally press a button twice). Thanks. Chad Kirby // Technical Coordinator for Digital Arts // CARTAH ckirby@u.washington.edu // 206\543-4218 ------------------------------ Date: Mon, 11 Sep 2000 16:18:06 -0400 From: rkuivila@mail.wesleyan.edu (Ron Kuivila) Subject: Re: How to tell if a Synth is running You can drill down into a Synth object and see if ugens is nil or not: var mySynth; if (mySynth.ugens.notNil, { "yer running baby".postln }); >How do you tell in code if a synth is running? In Synth.sc, I see the >following: > *sampleRate_ { arg newSampleRate=44100.0; > if (Synth.isPlaying, { > error("cannot change sample rate while playing\n"); > ... >But isPlaying is not a message Synth understands. > >I have buttons in a GUI that start a synth and do stuff, and I just want >the button to not do anything if a synth is already running (in case I >accidentally press a button twice). Thanks. > >Chad Kirby // Technical Coordinator for Digital Arts // CARTAH >ckirby@u.washington.edu // 206\543-4218 ------------------------------ Date: Mon, 11 Sep 2000 14:03:58 -0700 (PDT) From: Chad Kirby <---@---.---> Subject: Re: How to tell if a Synth is running Yeah, that would work, although I was hoping to be lazy and not have to keep track of my synth objects. Sloth loses again. Chad Kirby // Technical Coordinator for Digital Arts // CARTAH ckirby@u.washington.edu // 206\543-4218 On Mon, 11 Sep 2000, Ron Kuivila wrote: > You can drill down into a Synth object and see if ugens is nil or not: > > var mySynth; > > if (mySynth.ugens.notNil, { "yer running baby".postln }); > > > >How do you tell in code if a synth is running? In Synth.sc, I see the > >following: > > *sampleRate_ { arg newSampleRate=44100.0; > > if (Synth.isPlaying, { > > error("cannot change sample rate while playing\n"); > > ... > >But isPlaying is not a message Synth understands. > > > >I have buttons in a GUI that start a synth and do stuff, and I just want > >the button to not do anything if a synth is already running (in case I > >accidentally press a button twice). Thanks. > > > >Chad Kirby // Technical Coordinator for Digital Arts // CARTAH > >ckirby@u.washington.edu // 206\543-4218 > > > ------------------------------ Date: Mon, 11 Sep 2000 17:40:32 -0400 From: rkuivila@mail.wesleyan.edu (Ron Kuivila) Subject: Re: How to tell if a Synth is running If you just want to know if synthesis is running, you could use the SC class inside of the latest GUIutils contribution. (The folder 3SC/Node.) This will also allow you to start multiple, lexically distinct sounds from the interpreter. RJK ------------------------------ Date: Mon, 11 Sep 2000 23:48:43 -0400 From: christian adam hresko <---@---.---> Subject: 1212 and fries please okay, i'll pose this question again. i was running SC 2.2.7 under OS 8.6. i'm now running SC 2.2.9 under OS 9.0.4. i have a korg 1212I/O which was working fine. after updating SC and my OS, i'm having some problems with my card. i have to set my SYSTEM sound driver to the korg 1212, and choose apple sound manager in SC to get sound from my 1212. yes, this is backwards. under SC 2.2.7 and OS 8.6 i had to set apple sound manager as my SYSTEM sound driver and choose korg 1212 in SC. as everyone using ASIO knows, if you choose the ASIO driver as your SYSTEM driver, you can't use it as your SC driver. (at least i think that applies to all ASIO drivers...) apple menu - control panel- sound - 1212I/O SC- audio setup - apple sound manager this configuration gets sound from my KORG and NOT the sound manager. of course i can't change any of the settings of my card, so it's 'stuck' at 44.1 kHz. so, does anyone have any idea what is going on here? does anyone have a link to the ASIO drivers provided by steinberg? (i've tried korg, and it doesn't 'fix' this problem... i was thinking maybe steinberg has a more recent version) frustrated and confused. sorry for taking up the bandwidth. i simply don't understand what the deal is. (no, i don't have any 'funky' configurations on my computer... that i know of) cheers, christian OSX is wicked. ------------------------------ Date: Tue, 12 Sep 2000 00:59:13 -0400 From: christian adam hresko <---@---.---> Subject: more 1212 installed 2.2.7 and removed 2.2.9 problem 'fixed.' i guess i just won't use 2.2.9. aeiou, christian ------------------------------ Date: Tue, 12 Sep 2000 08:48:54 +0100 From: Paul Modler <---@---.---> Subject: Re: more 1212 christian adam hresko wrote: > installed 2.2.7 and removed 2.2.9 > > problem 'fixed.' > > i guess i just won't use 2.2.9. hrxs, doesn't sound good. But good (bad) to know. Did you try 2.2.9 with Os8.6 ? I tried some months ago to get something like an updated ASIO driver for 1212 from KOrg, Steinberg or whoever, and didnt found one (as far as I know the currently available 1212 driver is ASIO 1.x). I tseemed that there is no new driver, and there might not be one in future, cause 1212 is outdated. P > > > aeiou, > > christian - -- Paul Modler University of York Music Department Heslington, York, YO10 5DD, UK Tel: 0044-1904-43-2435 Fax: 0044-1904-43-2450 plpm1@york.ac.uk ------------------------------ Date: Tue, 12 Sep 2000 11:32:47 +0000 From: Jem Finer <---@---.---> Subject: Re: more 1212 8.6 + 2.2.9 + 1212 works fine for me - except sound manager in has dissappeared (which may or may not be connected) Jem on 12/9/00 7:48, Paul Modler at plpm1@york.ac.uk wrote: > christian adam hresko wrote: > >> installed 2.2.7 and removed 2.2.9 >> >> problem 'fixed.' >> >> i guess i just won't use 2.2.9. > > hrxs, > doesn't sound good. > But good (bad) to know. > > Did you try 2.2.9 with Os8.6 ? > > I tried some months ago to get something like an updated ASIO driver for > 1212 from KOrg, Steinberg or whoever, and didnt found one (as far as > I know the currently available 1212 driver is ASIO 1.x). > I tseemed that there is no new driver, and there might not be one in > future, cause 1212 is outdated. > P > > > >> >> >> aeiou, >> >> christian > > -- > Paul Modler > University of York > Music Department > Heslington, York, YO10 5DD, UK > Tel: 0044-1904-43-2435 > Fax: 0044-1904-43-2450 > plpm1@york.ac.uk > > > > ------------------------------ Date: Tue, 12 Sep 2000 07:44:43 -0700 (PDT) From: "Michael P. Whyte" <---@---.---> Subject: Pbind. Hi, What is the proper way to access sound generated by Pbind for compression or reverb? The idea is to have global effects over multiple instuments played with Pbind. Thanks, Mike __________________________________________________ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ ------------------------------ Date: Tue, 12 Sep 2000 10:26:02 -0500 From: James McCartney <---@---.---> Subject: Re: Pbind. on 9/12/00 9:44 AM, Michael P. Whyte at matrix6k@yahoo.com wrote: > Hi, > > What is the proper way to access sound generated by Pbind for compression or > reverb? > The idea is to have global effects over multiple instuments played with Pbind. > > Thanks, > > Mike Look at the "pattern examples" using Pfx. - --- james mccartney james@audiosynth.com SuperCollider - a real time synthesis programming language for the PowerMac. ------------------------------ Date: Wed, 13 Sep 2000 01:30:41 -0400 From: christian adam hresko <---@---.---> Subject: (2.2.9 && OS 9.0.4) != (Korg 1212) > hrxs, > doesn't sound good. > But good (bad) to know. > > Did you try 2.2.9 with Os8.6 ? > > I tried some months ago to get something like an updated ASIO driver for > 1212 from KOrg, Steinberg or whoever, and didnt found one (as far as > I know the currently available 1212 driver is ASIO 1.x). > I tseemed that there is no new driver, and there might not be one in > future, cause 1212 is outdated. > P > > > 8.6 + 2.2.9 + 1212 works fine for me - except sound manager in has > dissappeared (which may or may not be connected) > > > Jem > paul and jem... everything worked fine under 8.6. i had no problems. the reason i installed 9.0.4 is due to the fact that OS X will only run 'classic' OS 9 apps. i've got OS X DP4 and needed to do this. you'll also have to do this if you want to install the public beta release. (due out the 13th) the GOOD news is that SC3 runs fine with OS 9.0 and the 1212. so i'm assuming all will be okay under OS X. okay, i'm gonna go see if i can get linuxPPC running on my machine. (kernel panic...) cheers, christian : anyone care to express their experience with discrete structures? it's giving me a headache. in a bad way... ------------------------------ Date: Wed, 13 Sep 2000 17:18:58 +0900 From: Tomonori Yamasaki <---@---.---> Subject: Re: more 1212 korg US sucks. as you know. here's driver download page of Korg Japan. It's got ASIO Ver. 2 Beta 1. http://www.korg.co.jp/products/DRS/1212/1212.html if you can't read japaenese, this is the direct link to the newest ASIO driver. http://www.korg.co.jp/products/DRS/1212/1212ASIO2.sea.hqx 4 hours to OSX...... Does SC work with OSX public bata? I'll try it. > From: Jem Finer <---@---.---> > Reply-To: sc-users@lists.io.com > Date: Tue, 12 Sep 2000 11:32:47 +0000 > To: > Subject: Re: more 1212 > > 8.6 + 2.2.9 + 1212 works fine for me - except sound manager in has > dissappeared (which may or may not be connected) > > > Jem > > > on 12/9/00 7:48, Paul Modler at plpm1@york.ac.uk wrote: > >> christian adam hresko wrote: >> >>> installed 2.2.7 and removed 2.2.9 >>> >>> problem 'fixed.' >>> >>> i guess i just won't use 2.2.9. >> >> hrxs, >> doesn't sound good. >> But good (bad) to know. >> >> Did you try 2.2.9 with Os8.6 ? >> >> I tried some months ago to get something like an updated ASIO driver for >> 1212 from KOrg, Steinberg or whoever, and didnt found one (as far as >> I know the currently available 1212 driver is ASIO 1.x). >> I tseemed that there is no new driver, and there might not be one in >> future, cause 1212 is outdated. >> P >> >> >> >>> >>> >>> aeiou, >>> >>> christian >> >> -- >> Paul Modler >> University of York >> Music Department >> Heslington, York, YO10 5DD, UK >> Tel: 0044-1904-43-2435 >> Fax: 0044-1904-43-2450 >> plpm1@york.ac.uk >> >> >> >> > ------------------------------ Date: Wed, 13 Sep 2000 01:58:10 -0400 From: christian adam hresko <---@---.---> Subject: Re: more 1212 Tomonori Yamasaki wrote: > korg US sucks. as you know. > > here's driver download page of Korg Japan. It's got ASIO Ver. 2 Beta 1. > http://www.korg.co.jp/products/DRS/1212/1212.html > > if you can't read japaenese, this is the direct link to the newest ASIO > driver. > http://www.korg.co.jp/products/DRS/1212/1212ASIO2.sea.hqx > > 4 hours to OSX...... Does SC work with OSX public bata? I'll try it. i think i have the latest driver, but i'll try the above links. thanks bunches. korg in general kinda sucks. but the card was cheap, and it serves it purpose. i haven't noodled with OSX and SC. the DP4 release of OSX would do some 'odd' things to your other partitions. i think i'm just asking for it. OSX DP4, linuxPPC, and OS 9.0.4 all on one machine. i WILL get them to co-exist in a peaceful manner. actually, i wouldn't attempt OSX and SC just yet. things aren't really 'tied together' all the way. unless the public beta release has been overhauled. (watch out for the BootX ghost files... they killed my friends partitions) cheers, christian ------------------------------ Date: Wed, 13 Sep 2000 17:11:41 +0200 From: Christian =?iso-8859-1?Q?M=FChlethaler?= <---@---.---> Subject: Pause hello everybody! I've this Synth: Synth.new({ "n * sounds like this: Pause.ar({ugenGraphFunc}, (volPlug of this sound))"; n * volPlug = Plug.kr("volume of this sound"); Task({loop({"update volume of each sound"})}); Mix.arFill( all sounds) }).play; at the same time, only a few sounds can be heared, the volPlugs of the others are 0; Is there an a possibillity to "pause" a patch that need less cpu-power than "Pause"? Or how can I need "volume" as level for Pause without making aPlug? thank you for every tip. christian ------------------------------ Date: Wed, 13 Sep 2000 17:47:42 +0200 From: Hairi <---@---.---> Subject: SC3adventures Hallo Julian , and everybody . I don't resist looking into SC3 An here some "very useful attempts " . ejoy , Hairi // 3 XY Scopes ( var x, y, z; var sv ; sv = [ XYScopeView.new(nil, Rect.newBy(200,200,400,400), 441*2), XYScopeView.new(nil, Rect.newBy(200,200,400,400), 441*2), XYScopeView.new(nil, Rect.newBy(200,200,400,400), 441*2) ]; sv.at(0).pen.foreColor = rgb(255,255,0); sv.at(1).pen.foreColor = rgb(255,0,255); sv.at(2).pen.foreColor = rgb(0,255,255); x = GUIScreen.new("3ScopeS", Rect(40,90,600,600), View(Pen.new.backColor_(Color.black), [ TextBox( Pen.new.textFont_(\Times).textSize_(9).foreColor_(rgb(128,128,128)), Rect(0,0,1200,1200), ""), sv.at(0), sv.at(1), sv.at(2) ], true)).fullScreen; #{ arg a, b, c, d, e, f , g , h , i ; { Scope.ar( SinOsc.ar([ MouseX.kr(\freq ),MouseY.kr(\freq )] , 0 , 1) , [a,d], [b,e], [c,f] ) }.play; }.send(sv.at(0).xcounts, sv.at(0).xbufs.at(0), sv.at(0).xbufs.at(1), sv.at(0).ycounts, sv.at(0).ybufs.at(0), sv.at(0).ybufs.at(1) ); #{ arg a, b, c, d, e, f , g , h , i ; { Scope.ar( SinOsc.ar([ MouseX.kr(\freq ), MouseX.kr(\freq )] , [ 0 , pi/2 ] , MouseY.kr(\amp )) , [a,d], [b,e], [c,f] ) }.play; }.send(sv.at(1).xcounts, sv.at(1).xbufs.at(0), sv.at(1).xbufs.at(1), sv.at(1).ycounts, sv.at(1).ybufs.at(0), sv.at(1).ybufs.at(1) ); #{ arg a, b, c, d, e, f , g , h , i ; { Scope.ar( SinOsc.ar([ MouseX.kr(\freq ), MouseX.kr(\freq )] , [ 0 , pi/2 ] , SinOsc.ar(MouseY.kr(\freq),0,0.5,0.5)) , [a,d], [b,e], [c,f] ) }.play; }.send(sv.at(2).xcounts, sv.at(2).xbufs.at(0), sv.at(2).xbufs.at(1), sv.at(2).ycounts, sv.at(2).ybufs.at(0), sv.at(2).ybufs.at(1) ); x.sched(0, inf, { x.refresh ; 1/60 }); ) // Scope spiral ( var a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z; var sv; sv = XYScopeView.new(nil, Rect.newBy(20,20,450,450), 441) ; sv.pen.foreColor = rgb(255,255,0); x = GUIScreen.new("scope", Rect(40,90,600,600), View(Pen.new.backColor_(Color.black), [ TextBox( Pen.new.textFont_(\Times).textSize_(9).foreColor_(rgb(128,128,128)), Rect(0,0,600,600), ""), sv ], true)); #{ arg a, b, c, d, e, f , g ; { Scope.ar( SinOsc.ar([ MouseX.kr+1*500 , MouseX.kr+1*500] , [ 0 , pi/2 ] , SinOsc.ar(MouseY.kr(\freq),0,0.5,0.5)) , [a,d], [b,e], [c,f] ) ; }.play; }.send(sv.xcounts, sv.xbufs.at(0), sv.xbufs.at(1), sv.ycounts, sv.ybufs.at(0), sv.ybufs.at(1) ); f = { x.refresh ; sv.pen.foreColor = Color(100+100.rand , 100+100.rand , 100+100.rand) ; }; x.sched(0, inf, { f.value ; 1/10 }); ) ------------------------------ Date: Thu, 14 Sep 2000 12:08:37 +1000 From: newton armstrong <---@---.---> Subject: Re: returning patterns from Pfunc no takers for this question a few days back, so i'm reposting with a bit of example code. basically, i want to use a Plug (polling a slider in the example) as the argument to a coin method which decides between using two instances of Pseq (this function is stored in the ampPattern variable in the example). the example works, but coin returns an answer on an event by event basis, whereas i want the answer returned from one instance of Pseq to the next. (ie. if the repeats argument to Pseq is 10, i want coin to return its next answer only after the list argument to Pseq has been iterated 10 times.) it seems to me that this should be pretty straightforward, but i can't figure out how to do it. is there perhaps some method that can be applied to Pfunc or Pseq that will take care of it? any feedback would be much appreciated. ( var w, box, slider, number; var wResonz, fSinOsc, a; // GUI w = GUIWindow.new("", Rect.newBy(320, 100, 170, 100)); box = CheckBoxView.new(w, Rect.newBy(20, 10, 60, 20), "PLAY", 0, 0, 1, 0, 'linear'); slider = SliderView.new(w, Rect.newBy(20, 40, 130, 10), "SliderView", 1, 0, 1, 0.001, 'linear'); number = NumericalView.new(w, Rect.newBy(20, 60, 40, 20), "NumericalView", 1, 0, 1, 0.001, 'linear'); StringView.new(w, Rect.newBy(70, 60, 75, 20), "PROBABILITY"); slider.action = {number.value = slider.value}; // synths wResonz = { arg amp; var env; env = Env.perc(0.001, 0.1, amp, [1, -3]); Pan2.ar(EnvGen.ar(env, Resonz.ar(WhiteNoise.ar, 12000, 0.2)), 1) }; fSinOsc = { arg amp, pan; var env; env = Env.perc(0.001, 0.2, amp, [1, -3]); Pan2.ar(EnvGen.ar(env, FSinOsc.ar(80)), -1) }; // event stream a = { var durPattern, ampPattern; durPattern = Pseq([0.2], inf); ampPattern = Pseq([ // poll the slider and pass as an arg to coin Pfunc({if(slider.poll.coin, // answer this if true {Pseq([1], 10).asStream}, // answer this if false {Pseq([0], 10).asStream} )}), // same as above Pfunc({if(slider.poll.coin, {Pseq([1], 10).asStream}, {Pseq([0], 10).asStream} )}) ], 1); Ppar([ Pbind( \dur, durPattern, \ugenFunc, wResonz, \amp, ampPattern ), Pbind( \dur, durPattern, \ugenFunc, fSinOsc, \amp, ampPattern ) ]).asSpawn(Event.protoEvent, 2) }; // output {TSpawn.ar(a, 2, nil, box.kr(0))}.play; w.close; ) - ------------------------------------------------------------------------- This email server is running an evaluation copy of the MailShield anti- spam software. Please contact your email administrator if you have any questions about this message. MailShield product info: www.mailshield.com ------------------------------ End of sc-users-digest V1 #169 ******************************