[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] degreeToKey
there still was a mistake in the suggested degreeToKey
implementation. I've committed this as degreeToKey2, for testing
purpose.
degreeToKey2 { arg scale, stepsPerOctave=12;
var size, scaleDegree, z, d, last;
size = scale.size;
scaleDegree = this % size;
z = size - scaleDegree;
d = (stepsPerOctave * (this div: size));
last = scale.last;
^if(z < 1)
{ (1-z) * (stepsPerOctave - last) + last + d }
{ scale.blendAt(scaleDegree) + d }
}
--
.