Diff from wiard noise ring variation using a ringbuffer instead of bitshifting, language implementation (task-based) by LFSaw (20 Mar'13 21:02) to wiard noise ring variation using a ringbuffer instead of bitshifting, language implementation (pattern-based) by LFSaw (22 Mar'13 19:56)

name
wiard noise ring variation using a ringbuffer instead of bitshifting, language implementation (taskpattern-based)
description
wiard noise ring variation using a ringbuffer instead of bitshifting. ReimplementedRe-implemented according to Julian Parker's m4l patch. Derived from an answer by Sergio Luque to a mail to the sc-users SuperCollider mailing list on 2013/03/22
code
q// =derived (); q.registerSizefrom =an 16; q.rbufanswer =by RingBuffer(q.registerSize); //Sergio parameters,Luque canto bea changedmail whileto playingthe sc-users SuperCollider mailing list on 2013/03/22 q.min ( var registerSize = 16; var min ="C2".namemidi.asInteger; q.var max = "C6".namemidi.asInteger; q.var waitTime = 0.05; // in seconds q.//var chance = 0.1; q.changevar chance = 10; // step size Pseq( // initialise q.registerSize.do{ q.rbuf.overwrite[Pseries(rrand(q.min0, q0.max)); }; // do one step q.step = {|q1, rbuf10), chancePseries(1, step-0.1, min10)], max|inf); var item; itemchange = rbuf.pop10; (chance.coin).if{ // apply brown noise, bounce back from constraints. //"+++++++ change! % >> ".postf(item); item = (item + step.xrand2).fold(min, max); size item; //.postln; }; rbuf.addPbind(item); item;\midinote, // return Pswitch1(altered) { item }; Pbrown( Tdef(\stepprmin, { varmax, midinote; loopPif(Prout({ midinote = qchance.step(qtrace.rbuf, qcoin.chanceembedInStream }), q.change, q.min, q.max0); ) //} debug! output // q.rbuf.asArray.postln; // play the current noteregisterSize, can be basically everything Pseq( midinote: midinoteArray.iota(registerSize), inf) sustain: 0.05 ), \dur: 0.2, amp: 0.2 ).play; q.waitTime.wait; } }) ); ) // start Tdef(\steppr).play // stop Tdef(\steppr).stop
category tags
code fork, sequencer, algorithmic composing
ancestors
1-4SD4SE