-
... |elem| "b7 ".post; elem.value.postln; } ); k.elAt( \bt, \7 ).action.add( \togglePlay, { |elem| if ( elem.value > 0 ){ // only when pressed if ( Ndef( \sound1 ).monitor.isPlaying ){ Ndef( \sound1 ).stop; // disable controls k.elAt( \joy, \l, ...
-
//-- INIT ~test.callEnvirTest_DoesNotSpillOver; //-- PLAY ~test.callEnvirTest_OuterReachable; ~outerState = \overridden; ~test.callEnvirTest_OuterOverridden; ~internalState = 1970; //-- STOP currentEnvironment[\outerState] = nil; // can't c ...
-
... s.sendBundle(0.2, *b ); // and start x = { PrivateOut.ar( 0, SinOsc.ar(440) ) }.play( addAction: \addToHead ); // make an input sound; p.set( \u_gain, 40 ); // make audible on computer speakers (don't do this on wfs!!) p.set( \point, [0,7] ...
-
Alga.boot(clock:SystemClock) a = AN({RLPF.ar(WhiteNoise.ar) * \amp.ar(0.5)}).play; ( a.it = 4; fork { var sched = 5; a.from(0, \amp, sched:sched); sched.wait; "starting".postln; a.it.wait; "end".postln; } )
-
... ne.kr( exprand(2000, 5000), exprand(2000, 20000), 0.25, doneAction: 2), 0.1 ) }.play(outbus: i); 0.25.wait; }; }
-
PlayerPool : PlayerSocket { // implements selectable interface var <>selected, <>list, <>autostart=false; *new { arg list,selected=0,env,round=0.0,rate=\audio,numChannels=2; list = loadDocument(list); ^super.prNew(rate, //with patches they ...
-
... ); // no need to have an Out }).add; server.sync; // create a Synth that won't play immediately recorder = Synth.newPaused(\rec, target: server, addAction: 'addToTail'); // when recorder synth sends /n_end message, unhang the condition OSC ...
-
... MAudioHelper.fullpathAudiofile("amen-loop.wav").postln, channels: 1); b.plot; b.play; */ SCMAudioHelper { classvar <audioDirectory; *initClass { audioDirectory = PathName.new(this.filenameSymbol.asString).pathOnly; } *fullpathAudiofile { |f ...
-
... r(release: 0.1) * 0.5 }, dur: Pfunc { var val = ~dur.next; val.postln; val } )).play(chans:2); //Click b = AP(( def: { EnvPerc.ar(release: SampleDur.ir); Impulse.ar(0) }, dur: 1 )).play(chans:2); ~resync = { | sched = 1, reset = false | //R ...
-
/* a player that can switch between different players using a socket numChannels will cause all players played within the socket to automatically adapt : stereo mixed to mono, mono expanded to stereo */ PlayerSocket : AbstractPlayerProxy { ...