-
... piece that is currently playing. If isPlaying is false, this is -1. Doing Some Task playPiece (argIndex) Initializes and plays the piece with the given index. If there is a piece already on playback, it is stopped and its resources are dea ...
-
... aPersons| server = aServer; blox = aBlox; persons = aPersons; activityWatcher = Task{loop{ activityDt.wait; blox.do{|block| (block.persons.size == 1).if({ block.perform([\getActive, \getInactive].wchoose([0.95, 0.05]), 1); rrand(activityDt. ...
-
... rial Breaking synthesis processes into parts that accomplish small well-defined tasks encourages modular design and component reuse (the oop mantra). ( // read a soundfile from disk b = Buffer.read(s, ExampleFiles.child); // a samplePlayer ...
-
... ~pan = { rrand(-0.8, 0.8) }; ~wait = { 0.1 }; // time between grains ~playTask = Task({ loop { var pos, pitch, amp, dur, env; Synth(\grain, [ \bufNum, buffer, \pos, pos = ~pos.value, \pitch, pitch = ~pitch.value, ...
-
... * 2 + 60).midicps, 0, fdistsq.explin(1e-6, 1, 0.5, 0)).sum); }.play; ~updater = Task{loop{ ~foundbus.getn(3, {|data| ~nearests = data.asInteger}); ~mousebus.getn(2, {|data| ~mousepos = data}); s.sync; defer{w.refresh}; 0.1.wait; }}.play ) } ...
-
... Layout; // Stethoscope(s, 2, ~bleepo.index, zoom: 10, view: sc); // }; // }; // Task { // 0.5.wait; // s.sync; // // 0.5.wait; // q.makeBleepoGui; // // 0.5.wait; // // q.bliPreset.loadSettings; // p[\bleepo].setRates(\dens, 0.0,\rateA, 0.2 ...
-
... freely moving between the spherical and angular domains. In particular, certain tasks are more readily performed in one domain over another. For instance, if we'd like to process various elements of a soundfield separately, we need a way to ...
-
... ary.new ); ~multiclick.put( \maxClickDelta, 0.4 ); ( ~multiclick.put( \timeOut, Task( { var clickcount, action; ~multiclick[\maxClickDelta].wait; "timeout".postln; // value of multiclick clickcount = ~multiclick[\clicks]; // put an action b ...
-
... running, dont set its options NTMI.usesMainFX = false; // dont load MainFX */ ( Task { 0.1.wait; /// wait for SC Welcome post ... "\n*** loadMe file for NTMI_AI_sc_setup loading...".postln; LoadMe.start; //// Set generally useful global def ...
-
... ddr.sendMsg('/_'++i++'/x', 1.0.rand)}; // Draw a phase shifting sine p = 0; t = Task({ loop { p = p + 0.1; ((0..40) collect: { |i| l.lemurConnection.oscNetAddr.sendMsg('/_'++i++'/x', sin(i / 40 * 1 * pi + (p)) * 0.5 + 0.5) }); 0.05.wait; } ...