degreeStream

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

(

p = Instr("degreeStream.soloist");

// returns a pattern when valued

x = p.value;

Pbind(

\degree, x.trace,

\octave, 0,

\dur,0.25

).play;

)

By using a Patch you get gui sliders to try out different settings.

You should examine the source code at the same time.

(

Sheet({ arg f;

Instr.leaves('degreeStream').do({ |instr|

ActionButton(f.startRow,instr.name,{

var p;

p = Patch( instr );

Sheet({ arg f;

var esp,tf;

tf = SCTextField(f,Rect(0,0,500,350));

tf.string = instr.func.def.sourceCode;

p.gui(f.startRow);

ActionButton(f.startRow,"PLAY Pbind",{

if(esp.isPlaying,{ esp.stop });

esp = Pbind(

\degree, p.value,

\octave, 0,

\dur,0.125

).play

});

ActionButton(f.startRow,"STOP Pbind",{

esp.stop;

});

},instr.name)

},minWidth: 300);

})

})

)