-
... the threshold value. // A little hard to listen to at first: try and identify a pitch at which the best sort of // detection is happening. // You'll hear "bobbling" at low pitches where the threshold is definitely too low. ( var threshes = ...
-
... )); x = c.asStream; 24.do({ x.next.postln; }); ) Pswitch used as a sequence of pitches: ( SynthDef ( \help_sinegrain , { arg out=0, freq=440, sustain=0.05; var env; env = EnvGen .kr( Env .perc(0.01, sustain, 0.2), doneAction:2); Out .ar(ou ...
-
... ream; 9.do({ x.next( Event .default).postln; }); ) Pconst used as a sequence of pitches ( SynthDef ( \help_sinegrain , { arg out=0, freq=440, sustain=0.05; var env; env = EnvGen .kr( Env .perc(0.01, sustain, 0.2), doneAction:2); Out .ar(out ...
-
... repeat b = a.asStream; 10.do({ b.next.postln; }); ) Pseq used as a sequence of pitches Remember that math operations like midicps can be used on streams. The alternative Pseq(...).midicps.asStream is also possible because both pattern and ...
-
... values and functions for different aspects of note generation (timing, volume, pitch, server to use, etc) Creation / Class Methods *new(n, proto, parent, know = true) create an event with initial size n . proto may be provided as another e ...
-
... ). See also atan2 . In this example, hypot is used to calculate a doppler shift pitch and amplitude based on distance. ( { var x, y, distance, velocity, pitchRatio, amplitude; // object travels 200 meters in 6 secs (=120kph) passing 10 mete ...
-
... ary octave divisions and ratios, and (in conjunction with Tuning ) can generate pitch information in various ways, including as input to Patterns. s.boot; a = Scale .major; a.degrees; // [ 0, 2, 4, 5, 7, 9, 11 ] a.semitones; // [ 0, 2, 4, 5 ...
-
... inf ).asStream; 30.do({ x.next.postln }); ) Plazy used to produce a sequence of pitches: ( SynthDef ( \help_sinegrain , { arg out=0, freq=440, sustain=0.05; var env; env = EnvGen .kr( Env .perc(0.01, sustain, 0.2), doneAction:2); Out .ar(ou ...
-
... cycles x = c.asStream; 8.do({ x.next.postln; }); ) Ptuple used as a sequence of pitches (chords) ( SynthDef ( \help_sinegrain , { arg out=0, freq=440, sustain=0.05; var env; env = EnvGen .kr( Env .perc(0.01, sustain, 0.2), doneAction:2); Ou ...
-
... repeat b = a.asStream; 10.do({ b.next.postln; }); ) Pseq used as a sequence of pitches: ( SynthDef ( \help_sinegrain , { arg out=0, freq=440, sustain=0.05; var env; env = EnvGen .kr( Env .perc(0.01, sustain, 0.2), doneAction:2); Out .ar(ou ...