-
/* Test main window for multiple screen sizes, e.g.: Tdef(\guiTest).getHalo(\allExtents) remaining problem: in 4/3 ratio, the pads are very wide and the mviews not wide enough // test all these in a row: Tdef(\guiTest).set(\winExtent, nil). ...
-
... s always accessible again, // we can have "shared state" - e.g. always using // Tdefs, Ndefs, Pdefs, we can all see what is currently running, // and write code that changes what is already there. ////// if you start a sound like this: // { ...
-
... lock and gui /////// Clock display shows how long something has been running /* Tdef(\clocK).gui; Tdef(\clocK).set(\isRunning, true); // jumps back to zero when stopped Tdef(\clocK).set(\isRunning, false); // watch some Tdef to see how long ...
-
... )); }).add; ) ( // setup a clock t = TempoClock.default; t.tempo = 130/60.0; // tdefs to play patterns Tdef(\hh, {|env| inf.do({|i| var level = ScGrids.calculateLevel( instrument: \hihat, curBeat: i, x: env.x, y: env.y, ); if(level>=(1-(env ...
-
/* uncomment top and bottom comment to try this ... /*** EXAMPLE FOR TDEF-NDEF-COMBO THAT WORKS IN NTMI SETUP ****/ /*** // TESTS: // Ndef starts tdef, tdef sounds Ndef('tdefNdef').play; // Tdef sounds controlled by Ndef vol Ndef('tdefNdef' ...
-
TdefPreset storing and morphing between presets for Tdefs. superclass: ProxyPreset. see also NdefPreset , and soon, PdefPreset // just raw examples, not fully tested yet! ( Tdef(\a).set(\dt, 0.5, \plong, [12, 24]); Tdef(\a, { |envir| loop { ...
-
( Ndef(\chanTest).prime({ PinkNoise.ar(\amp.kr(0.25, 0.5)) }); Tdef(\chanTest).addSpec(\timeStep, [0.2, 5, \exp, 0.01]); Tdef(\chanTest).addSpec(\numChans, [2, 100, \lin, 1]); Tdef(\chanTest).set(\timeStep, 1); Tdef(\chanTest).set(\numChans ...
-
Tdef(\presetPilot).addSpec(\preProb, [0, 1, 4.4]); Tdef(\presetPilot).addSpec(\sndProb, [0, 1, 4.4]); Tdef(\presetPilot).set(\preProb, 0.1); Tdef(\presetPilot).set(\sndProb, 0.05); Tdef(\presetPilot, { |e| inf.do { |i| 1.wait; if (e.sndProb ...
-
... tion = {|el| q.dt = el.value.linexp(0, 1, 0.005, 0.1); }; q.taskPlaying = true; Tdef(\player).quant = 0; m.elementAt(\btCtl, \play).action = {|el| (el.value > 0).if{ q.taskPlaying = q.taskPlaying.not; el.value = q.taskPlaying.asInteger; q.t ...
-
( x = Tdef(\x).set(\dt, 0.1, \freq, 440, \bend, 4, \sustain, 0.05); e = TdefPreset(x); x.addSpec(\dt, [0.03, 3, \exp]); x.addSpec(\bend, [-24, 24, \lin]); e.checkSpecsMissing; // e.checkSpecsMissing(dialog: true); x.addSpec(\sustain, [0.003 ...