#include <MIDIReader.h>
#include <MIDIPlayer.h>
#include "music.h"
MIDIPlayerSoft p(2);
MIDIPlayer* nema17_arr[] = {
new MIDIPlayerSoft(2),
new MIDIPlayerSoft(3),
new MIDIPlayerSoft(4),
new MIDIPlayerSoft(5),
new MIDIPlayerSoft(6),
new MIDIPlayerSoft(7),
new MIDIPlayerSoft(8),
new MIDIPlayerSoft(9),
};
const uint8_t nema17_len = sizeof(nema17_arr) / sizeof(nema17_arr[0]);
MIDIPlayerMulti nema17(nema17_arr, nema17_len);
MIDIReader r(&nema17, music, sizeof(music) / sizeof(music[1]));
void setup() {
// put your setup code here, to run once:
r.start();
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
if(r.tick()) Serial.println("stop");
}