Posted on

Intro to Arrays

Use your Array notes in class to complete the following exercises

//Musical Notes
#define NOTE_B0 31
#define NOTE_C1 33
#define NOTE_CS1 35
#define NOTE_A3 45
#define NOTE_G3 67
#define NOTE_B3 1100
#define NOTE_C4 467

// Melody
int melody[] = {

1. What does the number next to each of the notes above mean?
2. Follow the model above and write a new note.
3. Examine the code above and explain what you would need to do in order to play three notes.
4. Look at the above code and write the code needed to place the melody into a loop