Also is this an ok thing to do:
from pattern_edit.c
Code: Select all
void start_runwrite_mode() {
//putstring("start runwrite\n\r");
curr_pattern_index = 0;
in_runwrite_mode = 1;
set_led(LED_RS);
note_off(0);
if (sync==INTERNAL_SYNC){
turn_on_tempo();
while (note_counter & 0x1); // wait for the tempo interrupt
} else if (sync ==MIDI_SYNC){
turn_off_tempo();
while (midi_recv_cmd() != MIDI_START);
}
play_loaded_pattern = 1;
}
I should be sending a midi start message from my external sequencer but is it possible the midi_cmd buffer already has a bunch of messages waiting that I need to parse before I get to MIDI_START?
-jason[/code]