[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Coerce input signal to a given scale?




On Sep 23, 2005, at 1:20 PM, Dan Stowell wrote:

Hi,

How could I coerce an input signal to a given scale? I've worked out
how to do it for a scale with all equal ratios - e.g. a whole-tone
scale in this example:


what would be really cool would be if you could sieve streaming numbers from an abstract function like you can from a simple number.

i.e.
z=([14,26,38,50,62,74, 86, 98] +.x [0, 3.16, 4.98, 7.02,8.13, 9.69]).midicps;
//(d minor just)
 realPitch = ZeroCrossing.ar(in);
then: desiredPitch = realPitch.nearestInList(z);

but it doesn't work. i guess you could stick the realPitch out a bus and poll it for values to compare to the list? or OSCResponder a trig to get values every 0.001?
_______________________________________________________
        Jonathan Segel  --  4014 Brookdale Ave. Oakland, CA 94619
                MAGNETIC -- http://www.MagneticMotorworks.com