-
... 1 , [ \freq , stream.next.midicps ] ); dur.wait; // synonym for yield, used by .play to schedule next occurence }) }).play ) Optional: More about Streams can be learned from the book A Little Smalltalk by Timothy Budd. He calls them Generat ...
-
... )); sig = SinOsc.ar(310, sig * 3); sig = SinOsc.ar(230, sig * 0.4); sig * 0.2 }.play ) ⧉ ✔ Multiple Assignment A multiple assignment statement assigns the elements of a Collection which is the result of an expression on the right hand side, ...
-
... e results are visible quickly enough Line.kr(1,0,1, doneAction: 2); son * 0.1 }.play; ) // A convenience function to plot magnitudes: ~plotmags = {|buf, lbl| buf.loadToFloatArray(action:{|data| {data[0,2..] .max(0.000001) .log.normalize .pl ...
-
... parameter set at any time. defaultBuffer The input sound buffer. You can call .play on it to hear the source sound. gaInstance The GAWorkbench instance this class wraps. See its help to access the internals. Doing Some Task (optional) star ...
-
... /myBufferName = "no sound"; myVol = 0.4; inbus = 20; //pitchratio = 1.0; // for playing buffers and audiostream (this is the pitch) // levels, times, timescale //env = [[0]++[0.0, 1.0, 0.7, 0.7, 0.0], [0.0, 0.05, 0.25, 0.75, 1.0], 2]; //pit ...
-
... ricGlobalControl("send level", nil, level, \amp); }); levelSynth = levelControl.play(synthdef, args, inMixer.fadergroup); sendSynth.map(\level, levelControl.bus.index); ^levelSynth } levelSynth { ^levelControl.tryPerform(\autoSynth) } // li ...
-
... var <>preparedEventsRoutine; // for prepared events var <>preparedEvents; var isPlaying = false; var task; var <>currentTimeToNext; var <>releaseRunningMin = inf; // by default, only release "inf" duration chains *initClass { argSpecs = [ A ...
-
... nt); Pen.lineTo(world.objects.wrapAt(i+1).loc.asPoint); Pen.stroke; }); }; }; w.play; CmdPeriod.doOnce({w.close}); ~world= world; ) ~showLinks= true; ~showLinks= false; ~world.objects.do{|o| o.internalCoupling= 0}; //turn off internal ~worl ...
-
... nt); Pen.lineTo(world.objects.wrapAt(i+1).loc.asPoint); Pen.stroke; }); }; }; w.play; CmdPeriod.doOnce({w.close}); ~world= world; ) ~showLinks= true; ~showLinks= false; ~world.objects.do{|o| o.internalCoupling= 0}; //turn off internal ~worl ...
-
... y the left channel will be actually used (though you will see both channels displayed on the Sound File View). Trigger: number of grains being triggered per second. Transp: rate of transposition in semitones. grainDur: duration of ind ...