-
//particlesystem. //with mouse controlling world gravity (the 'wind') //with simple grain sounds mapped to each particle. ( s.waitForBoot{ var width= 300, height= 300, w, wgrav, world, sys, makeParticle, n= 200, mp; //--synthesis SynthDef(\ ...
-
//listener position test //with mouse controlling listening position/mix //with sound: freq mapped to y, pan mapped to x, mass mapped to beating, amp and lowpass ( s.waitForBoot{ var width= 640, height= 480, w, world, n= 10, synths; //--wor ...
-
//particlesystem. //with mouse controlling world gravity (the 'wind') //with simple grain sounds mapped to each particle. ( s.waitForBoot{ var width= 300, height= 300, w, wgrav, world, sys, makeParticle, n= 200, mp; //--synthesis SynthDef(\ ...
-
... ype == \button).if({ el.value = 1 }, { el.value = 0}) }); // Lights' colors are controlled via velocity ( var midiout = k.device.midiOut; [ // Rows (0..8), (16..24), (32..40), (48..56), (64..72), (80..88), (96..104), (112..120) ].flatten.do ...
-
... ekingA ].keys VGTuning .pelog[ \Kenong ]; // VGTuning prepares a large nuber of control busses for all the partials of every note // of every instrument. These are only used for pelog and slendro instruments; // neutral instruments are assu ...
-
... t = 0, pan = 0, freq = 160, amp = 1, att = 0.001, rel = 0.7, crv = -2, // Other controls preamp = 20, limit = -0.2; var env, in, snd; // Envelope: env = Env.perc( attackTime: att, releaseTime: rel, level: preamp * pi/2, curve: crv).ar; // T ...
-
... ; // release them g.release(48); g.release(51); // test with MIDI if you have a controller around: MIDIdef.noteOn(\pianOn, { |note, vel, chan| g.put(note, [\freq, note.midicps, amp: (vel/127).squared * 0.25 ]); }, nil, 1); MIDIdef.noteOff(\ ...
-
... 0.01, 1.4) + Pwrand([0, 16], [0.9, 0.1], inf) ) ).play; ) // using a continuous control mapping b = Bus.control(s, 1); b.set(500); ( Pdef(\x, Pbind( \type, \dirt, \s, Prand([\bd, \hh, \cp, ], inf), \begin, Pn(Pseries(0, 0.002, 20)), \bandf, ...
-
... nstance Methods Inherited instance methods Examples ( // modal space // mouse x controls discrete pitch in dorian mode var scale, buffer; scale = FloatArray[0, 2, 3.2, 5, 7, 9, 10]; // dorian scale buffer = Buffer.alloc(s, scale.size, 1, { ...
-
... // Clocks and the convenience of .play When a routine receives a .play message, control (of the routine) is redirected to a clock. The clock uses the receiver of the .wait message as a unit of time to schedule ("play") the routine. SuperCol ...