Академический Документы
Профессиональный Документы
Культура Документы
int i, duration;
//defining varible i
for (i = 0; i < songLength; i++) // Go through the song
{
duration = beats[i] * tempo; // the duration is the numeber of beats
}
}
{
int i;//Varible i
char names[] = { 'a', 'A', 'b', 'B', 'c', 'd', 'e', 'E', 'f', 'g', 'G'};
//Name of the note
int frequencies[] = {440, 880, 493, 466, 523, 587, 329, 659, 698, 391, 783};
//Frequencies of the notes corresponding with the char notes