#include <USBComposite.h>

const uint8_t notes[] = {60, 62, 64, 65, 67, 69, 71, 72, 61, 63, 66, 68, 70};
const int numNotes = sizeof(notes)/sizeof(*notes);

USBMIDI midi;

void setup() {
    USBComposite.setProductId(0x0031);
    midi.begin();
    while (!USBComposite);
}

void loop() {
  for (int i=0;i<numNotes;i++) {
    midi.sendNoteOn(0, notes[i], 127);
    delay(200);
    midi.sendNoteOff(0, notes[i], 127);
  }
}
