 #include <Tone.h>
 #include "Notes.cpp"
 
+#define MAX_MUSIC_LEN 9
 
 
 // Create two tone controllers

// The "cursor" for each of the buzzers
unsigned int music_pos[2] = { 0, 0 };
// Holds the length of the music
unsigned int music_length[2] = { 9, 9 };


// Defines the music
Note Music[2][9] = {
  {
    { NOTE_C4, 10 },
    { NOTE_D4, 10 },
    { NOTE_E4, 10 },
    { NOTE_F4, 10 },
    { NOTE_G4, 10 },
    { NOTE_A4, 10 },
    { NOTE_B4, 10 },
    { NOTE_C5, 20 },
    { NOTE_RST, 20 }
  },
  {
    { NOTE_RST, 10 },
    { NOTE_RST, 10 },
    { NOTE_RST, 10 },
    { NOTE_RST, 10 },
    { NOTE_RST, 10 },
    { NOTE_RST, 10 },
    { NOTE_RST, 10 },
    { NOTE_RST, 20 },
    { NOTE_RST, 20 }
  }
};




  }



  // If there is incoming Serial communication
  if (Serial.available())
  {
    
    // Check the start of the transmission
    byte opcode = 0;
    byte dat[2] = { 0, 0 };  // Some bytes to store temporary data in
    Serial.readBytes(&opcode, 1);

    // Check to see if it's the opening of a music transfer
    if (opcode == OP_MUSIC)
    {
      // Once the opcode is verified, send data about the arduino
      Serial.println(MAX_MUSIC_LEN);
      
      // Immediately following the opening OPcode should be a short detailing
      // how many notes there are for the first buzzer
      Serial.readBytes(dat, 2);
      
      // Get the length of the music and buffer that many x2 bytes (one byte
      // for pitch, one for duration) into the music array
      music_length[0] = *(unsigned short*)&dat[0];
      Serial.readBytes((byte*)&Music[0][0], music_length[0]*2);


      // After loading all the music, reset the buzzers and internal cursors
