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;
)
Links to this Page
- Public Library 3 last edited on 27 October 2006 at 9:41 pm by host81-159-217-15.range81-159.btcentralplus.com
- enter. last edited on 29 January 2003 at 10:46 pm by 203.14.169.19
- recent contributions (2003-2004) last edited on 14 March 2005 at 3:50 pm by max1-207.dialin.uni-hamburg.de
- scale economies last edited on 9 April 2002 at 10:15 am by c-80-88.cvx2-munchen.ipdial.viaginterkom.de
- Public Library SC2 last edited on 2 March 2005 at 2:20 pm by max2-223.dialin.uni-hamburg.de