Can't loop the midi file
Hey, I'm trying to make a MIDI to DMX solution. Usually I use my arduino leonardo as a MIDI device in order to receive MIDI messages from ableton live, then translating those MIDI frames into DMX frames to control RGB LED stripes, this way I can make realtime secuences. But now I came up with the idea of exporting the clip as a midi file, so I can playback the notes and send them to the arduino in OF for raspberry pi, with a no window application. Everything works fine, but it doesn't loop, not even in OS X. The console some times throws this messages:
void ofxThreadedMidiPlayer::clean() numMidiTracks: 1 midiFormat: 0 reader parsed!:
MidiOutAlsa::sendMessage: event parsing error!
channel: 0 pitch: 0 vel: 0 control: 0 value: 0
MidiOutAlsa::sendMessage: event parsing error!
channel: 0 pitch: 0 vel: 0 control: 0 value: 0 channel: 1 pitch: 0 vel: 0 control: 19 value: 0 channel: 1 pitch: 0 vel: 0 control: 19 value: 127 channel: 1 pitch: 0 vel: 100 control: 0 value: 0 channel: 1 pitch: 1 vel: 100 control: 0 value: 0 channel: 1 pitch: 2 vel: 100 control: 0 value: 0 channel: 1 pitch: 3 vel: 100 control: 0 value: 0 channel: 1 pitch: 4 vel: 100 control: 0 value: 0 channel: 1 pitch: 5 vel: 100 control: 0 value: 0 channel: 1 pitch: 6 vel: 100 control: 0 value: 0 channel: 1 pitch: 0 vel: 0 control: 17 value: 0 channel: 1 pitch: 0 vel: 0 control: 19 value: 127
and so on until the end of the midi file, but when it gets to the end of the file, the program just stops, but doesn't loop. please help, I'm so close!!
Sorry I can't really be of more help. I created this a long time ago for a project and haven't needed to use it
anyone solved this issue? @osBP?