This code is supposed to repeatedly check the state of the D9 slider on an Axiom keyboard and use its value to control the pitch of a frequency.
int main()
{
int note;
int modwheel;
float frequency;
while (modwheel != 0)
{
note = aserveGetControl(74);
modwheel = aserveGetControl(01);
frequency = 440 * pow(2, (note-69) /12.0);
aserveOscillator(1,frequency,1.0,0);
aserveSleep(100);
}
return 0;
}