-
... de, except that the step and len arguments need not be constants. If you supply patterns or streams for these arguments, they will be evaluated once per segment so that step and len can be variable. p = Pslide ((1..10), inf , 3, 1, 0).asStr ...
-
( Alga.boot({ //Pattern to modify a = AP(( def: { SinOsc.ar * EnvPerc.ar(release: 0.1) * 0.1 }, dur: 0.5 )).play(chans:2); //Metronome b = AP(( def: { EnvPerc.ar(release: SampleDur.ir); Impulse.ar(0) }, dur: 1 )).play(chans:2); }) ) //Using ...
-
Peuclid : Pattern { var <>numHits, <>numBeats, <>repeats; *new { |numHits = 7, numBeats = 12, repeats = 1| ^super.newCopyArgs(numHits, numBeats, repeats) } embedInStream { |inval| var currval = 0, lastval = -1; var repStream = repeats.asStr ...
-
+ Pattern { endless { arg default; ^if(default.isNil) { Prout { arg inval; var outval, stream, previous; stream = this.asStream; loop { outval = stream.next(inval); if(outval.notNil) { previous = outval } {Êoutval = previous }; inval = outv ...
-
/* If you have limited RAM, you may not want to preload all samples. Then you can use this script to dynamically try and load them. */ ( // keep track of what we have tried to load var failed = Set.new; // try to laod var autoLoad = { |soun ...
-
/* FILENAME: Pbernoulli2 DESCRIPTION: A variant of Pbernoulli: Stacked coin tossed with random weight. AUTHOR: Marinus Klaassen (2012, 2021Q3) EXAMPLE: a = Pbernoulli2(5,0.1,inf).asStream; b = a.nextN(200); b.plot; b.histo(100,0,1.0).plot; ...
-
( Alga.maxIO = 2; Alga.initSynthDefs; Alga.boot({ AlgaSynthDef(\test, { SinOsc.ar(\freq.ar([440, 441]).poll) * EnvGen.ar(Env.perc(0.01, 0.1), doneAction:2) * DC.ar(0.5) }).add; AlgaSynthDef(\testImpulse, { //FreeSelf.kr(Impulse.kr(0)); EnvG ...
-
/* A CV models a value constrained by a ControlSpec. The value can be a single Float or an array of Floats. Whenever the CV's value changes, it sends a changed message labeled 'synch'. This way dependants (such as GUI objects or server valu ...
-
... ----------------------------// // Add custom event types to control Reaper with patterns *addEventTypes{ /* // \reaperTrack // Example: ( r = ReaperControl.start(9292); Pdef(\r, Pbind( \type, \reaperTrack, \reaperControl, r, \reaperTrack, 1 ...
-
/* \p_line Creates an pattern UMap making a line steps between two values over time. New values are generated each time the chain is started, or in a UPattern for each of the generated events. a: the start value b: the end value curve: a cu ...