int main ()
{
int sequence[8];
for(int count = 0; count < 8; count++)
{
sequence[count] = aserveGetNote();
if(aserveGetVelocity() == 0)
{
count--;
}
printf("%d\n", sequence[count]);
}
for(int count = 0; count < 8; count++)
{
int note;
float frequency;
frequency = 440 * pow(2, (note-69) / 12.0);
aserveOscillator(0, frequency, 1.0, 0);
}
return 0;
}
I'm trying to create an 8 step sequencer that the user inputs 8 notes using a midi keyboard, then the 8 notes play over and over in a loop. Please help me out
Aucun commentaire:
Enregistrer un commentaire