View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide

KeyToDegree

(jrh, tested for sc2.2.11) [scale economies]

KeyToDegree

converts midinote to an array of scaledegree and offset

RoundToScale

converts a frequency input i.e. from a Pitch ugen to a rounded frquency value
(this is a little bit redundant internally, I'll improve that sometime)

DegreeToKey2

works like DegreeToKey, only that you can specify the interval of the step repetition
instead of the fixed octave interval. (quick hack after the idea of AdC)

KeyToDegree.hqx



(
{
Resonz.ar(
                GrayNoise.ar(SinOsc.kr(2, [0, LFNoise1.kr(0.5, pi)], 4, 10)),
                        RoundToScale.kr(FloatArray[0, 1, 2, 5, 7], LFNoise1.kr(1, 160, [1, 1.3]*MouseX.kr(200, 1300))),
                0.001)
}.play;
)

(
{

        Resonz.ar(
                GrayNoise.ar(SinOsc.kr(4, [0, LFNoise1.kr(0.5, pi)], 4, 10)),
                        RoundToScale.kr(FloatArray[0, 1, 5, 6, 10], LFNoise1.kr([1,2], 160, [1, 1.3]*MouseX.kr(200, 1300))),
                0.001)
}.play;
)





























Uploaded Image: scale.gif

Links to this Page