-
... (0.001, 1, 1), 1200, 400 ), 0, 0.3) }.play; ) // use input amplitude to control Pulse amplitude - use headphones to prevent feedback. { Pulse .ar(90, 0.3, Amplitude .kr( SoundIn .ar(0))) }.play; ( // use input amplitude to control SinOsc fr ...
-
PulseDivider pulse divider PulseDivider.ar(trig, div, startCount) Outputs one impulse each time it receives a certain number of triggers at its input. trig - trigger. Trigger can be any signal. A trigger happens when the signal changes from ...
-
... ///////// Here, a control rate SinOsc modulates the frequency of the audio rate Pulse wave. ( SynthDef ( "anExample" , { Out .ar( 0, Pulse .ar( [220, 221.5] + SinOsc .kr([7, 8], 0, 7), // the control rate conserves CPU cycles 0.35, 0.02 ) ) ...
-
... ch array in parallel. The shorter arrays will wrap. for example, the following: Pulse .ar([400, 500, 600],[0.5, 0.1], 0.2) is equivalent to: [ Pulse .ar(400,0.5,0.2), Pulse .ar(500,0.1,0.2), Pulse .ar(600,0.5,0.2) ] A more complex example b ...
-
... the desired kind of synchronization. For sysrt, external MIDI clocks output 24 pulses per quarter note. The responder should count the incoming pulses and multiply the rhythmic value into 24 to determine how many pulses to wait: 0.25 wait ...
-
PulseCount pulse counter PulseCount.ar(trig, reset) Each trigger increments a counter which is output as a signal. trig - trigger. Trigger can be any signal. A trigger happens when the signal changes from non-positive to positive. reset - r ...
-
... TWChoose *ar(trig,array) *kr(trig,array) ( { var a; a = [ SinOsc .ar, Saw .ar, Pulse .ar ]; TChoose .ar( Dust .ar( MouseX .kr(1, 1000, 1)), a) * 0.2 }.play; ) Note: all the ugens are continously running. This may not be the most efficient ...
-
... [ SampleRate .ir(0) * 0.01, 440]; SinOsc .ar(freq, 0, 0.1) }.play; ) // play a pulse chord at power of two divisions of sample rate { LFPulse .ar( SampleRate .ir * (2 ** (1..14).neg).postln).mean * 0.1 }.play;
-
... malize) *kr(trig,array,weights,normalize) ( { var a; a = [ SinOsc .ar, Saw .ar, Pulse .ar ]; TWChoose .ar( Dust.ar(MouseX.kr(1, 1000, 1)) , a, [0.99, 0.05, 0.05].normalizeSum) * 0.2 }.play; ) Note: all the ugens are continously running. Thi ...
-
... Blip .ar( Rand (32,15), 100, 0.5) }; ~s2 = { SinOsc .ar(740, 0, 0.1) }; ~s3 = { Pulse .ar(140, 0.2, 0.1) }; ~out = { Pan2 .ar(~mix.ar(1), MouseX .kr(-1,1)) }; ~mix.read(~s1); ~mix.read(~s2); ~mix.read(~s3); //resetting the source stops read ...