freqStream



a small collection of Instr functions that create Patterns for \freq


(

var pattern;

pattern = Instr("freqStream.divStutter").value([ 

56, // root

Instr("scaleStream.randpenta").value, //scale

16 // cycleLength    

]);



Pbind(

\freq, pattern.trace,

\dur,0.125

).play;


)




(

// load your entire library

Instr.loadAll;


)


// choose from the degreeStream and scaleStream Instr in this package

// could be ugly or pretty

(


var pattern;


pattern = Instr("freqStream.streamByDegree").value([

Instr.choose("degreeStream").value,

Instr.choose("scaleStream").value

]);



Pbind(

\freq, pattern.trace,

\dur,0.125

).play;



)


// select from your entire library

// any instr you add that has an outputSpec == \degreeStream

(


var pattern,degreeStreams,scaleStreams;


degreeStreams = Instr.selectBySpec(\degreeStream);

scaleStreams = Instr.selectBySpec(\scaleStream);



pattern = Instr("freqStream.streamByDegree").value([

degreeStreams.choose.value,

scaleStreams.choose.value

]);


Pbind(

\freq, pattern.trace,

\dur,0.125

).play;



)


(



var pattern,degreeStreams,scaleStreams;


degreeStreams = Instr.selectBySpec(\degreeStream);

scaleStreams = Instr.selectBySpec(\scaleStream);



pattern = Instr("freqStream.streamByDegree").value([

Patch( degreeStreams.choose ).rand.value,

Patch( scaleStreams.choose ).rand.value

]);


Pbind(

\freq, pattern.trace,

\dur,0.125

).play;




)