I'm playing around with STK and have noticed this bit of code
Code: Select all
register StkFloat value1 = data->message.floatValues[0];
register StkFloat value2 = data->message.floatValues[1];
....
StkFloat frequency = 220.0 * pow( 2.0, (value1 - 57.0) / 12.0 );
data->instrument->noteOn( frequency, value2 * ONE_OVER_128 );
i'm guessing that 57.0 represents the note numbers? if that's the case, i would usualy test (value1 - 60.0), and if i remember correctly, i'd end up changing that value to 59.0 sinc note number 60 is middle C?
i hope this is making sense. just wondering if anyone recognizes and has an explaination for this?
thanks for your help
