From: owner-sc-users-digest@lists.io.com (sc-users-digest) To: sc-users-digest@lists.io.com Subject: sc-users-digest V1 #204 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 Monday, November 20 2000 Volume 01 : Number 204 ---------------------------------------------------------------------- Date: Fri, 17 Nov 2000 18:59:12 -0800 From: ben <---@---.---> Subject: oerformance hi! live electronic dance music in silver lake (LA) california friday december 1 10PM record release party for Chaki - Warsaw.jpg (SoundMangle Records) featuring: sprek logreybeam mintyfresh special guest twerk (san francisco) and of course... chaki plus mystery guest djs and a whole bunch of computers :) rsvp only party@soundmangle.com www.soundmangle.com for more info - -- ben ------------------------------ Date: Fri, 17 Nov 2000 22:49:52 EST From: BT011010@aol.com Subject: Hi this is BT would like to come to party - --part1_bd.8f6801d.27475660_boundary Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Let us know if passes can be sorted out we would love to come>>> would be myself and 3 other people thank you>> B T - --part1_bd.8f6801d.27475660_boundary Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: 7bit Let us know if passes can be sorted out
we would love to come>>>
would be myself and 3 other people
thank you>>

B  T
- --part1_bd.8f6801d.27475660_boundary-- ------------------------------ Date: Sun, 19 Nov 2000 17:37:34 +0100 From: Klaus Kessner <---@---.---> Subject: PlayBuf and Pseq ( var f1, i, s1, signal; f1 = ":Sounds:floating_1"; s1 = SoundFile.new; s1.read(f1) and: { s1.preloadData }; signal = s1.data.at(0); i = { // arg rate = 1, amp = 1, offset = 0, dur = 1, sustain = 1.0, fade = 0.1; var env; env = Env.linen(fade, dur - fade, fade, 1, 'welch'); EnvGen.ar(env, PlayBuf.ar(signal, offset: offset, playbackRate: rate), levelScale: amp, timeScale: sustain); }; Pbind(\dur, 1.5, \rate, 1, \offset, 1, \fade, 0.1, \sustain, 1.0, \amp, Pseq([ Pser(#[0.125],2), Pser(#[0.0],1), 0.5], inf), \ugenFunc, i).play; ) this example should (?) play amplitude 0.125 twice and the rest once, but it plays each amplitude twice as much - any explanation? (btw the 3rd floating of amp 0.125 seems to be a bit early) ------------------------------ Date: Sun, 19 Nov 2000 09:09:02 -0800 From: Alberto de Campo <---@---.---> Subject: Re: PlayBuf and Pseq Hi klaus, it is rather simple: floating is only about 00.77 sec long (f1.duration.postln;), but the duration you play it for is 1.5 seconds, and PlayBuf always loops its signal. Other that that, your Pseq for amp creates a loop of [ 0.125, 0.125, 0.0, 0.5 ], which you could just write as Pseq([ 0.125, 0.125, 0.0, 0.5 ], inf); For the rest, you would save CPU by putting the rest in a pitch sequence, like \freq, Pseq([1,1,\rest,1], inf), your patch with the suggested changes: ( var f1, i, s1, signal; f1 = ":Sounds:floating_1"; s1 = SoundFile.new; s1.read(f1) and: { s1.preloadData }; signal = s1.data.at(0); i = { // arg rate = 1, amp = 1, offset = 0, dur = 1, sustain = 1.0, fade = 0.1; var env; // limit dur for non-looping files: dur = min(dur, s1.duration); env = Env.linen(fade, dur - fade, fade, 1, 'welch'); EnvGen.ar(env, PlayBuf.ar(signal, offset: offset, playbackRate: rate), levelScale: amp, timeScale: sustain); }; Pbind( \freq, Pseq([1,1,\rest, 1]), // dummy arg, only to create rest. \dur, 1.5, \rate, 1, \offset, 1, \fade, 0.1, \sustain, 1.0, \amp, Pseq(#[0.125, 0.125, 0.0, 0.5], inf), // simplified a little. \ugenFunc, i).play; ) Best, adc - ------------------ Klaus Kessner wrote: > ( > var f1, i, s1, signal; > > f1 = ":Sounds:floating_1"; > > s1 = SoundFile.new; > s1.read(f1) and: { s1.preloadData }; > signal = s1.data.at(0); > > i = { // > arg rate = 1, amp = 1, offset = 0, dur = 1, sustain = 1.0, > fade = 0.1; > var env; > env = Env.linen(fade, dur - fade, fade, 1, 'welch'); > > EnvGen.ar(env, PlayBuf.ar(signal, offset: offset, > playbackRate: rate), > levelScale: amp, > timeScale: sustain); > }; > > Pbind(\dur, 1.5, > \rate, 1, > \offset, 1, > \fade, 0.1, > \sustain, 1.0, > \amp, Pseq([ Pser(#[0.125],2), Pser(#[0.0],1), 0.5], inf), > \ugenFunc, i).play; > ) > > this example should (?) play amplitude 0.125 twice and the rest once, > but it plays each amplitude twice as much - any explanation? > (btw the 3rd floating of amp 0.125 seems to be a bit early) ------------------------------ Date: Mon, 20 Nov 2000 14:57:34 +0100 From: Scott Wilson <---@---.---> Subject: Classy misconception I´m writing a class which contains a Spawn. This class has an instance variable, myVar. Code goes something like this: myClass { var <>myVar; ar { ... Spawn.ar( ... x = this.myVar ? 2; ) } } This code doesn´t fly. I get this error when executing: Message 'myVar' not understood. If I simply have myVar, I get the following error when compiling: € ERROR: Variable 'pointer' not defined. If I declare myVar within method ar I get this when compiling: € ERROR: Parse error var <>€myVar So, how do I refer to myVar within the Spawn and the method? What am I failing to understand? Thanks, Scott ------------------------------ End of sc-users-digest V1 #204 ******************************