Trouble getting Song Position information
Brought to you by:
franky47
I've been having trouble trying to get the Song Position handler to work for me. I need to perform an action at the beginning of a sequence (beat 0). However it doesn't respond. Am I missing something? Or am I completely misunderstanding how a Song Position Pointer works?
MIDI.setHandleSongPosition (SgPs);
.....
void SgPs(unsigned int beats) {
if (beats == 0) {
doThing;
}
else {
doOtherThing;
}
}
Hi,
What are you using to send these messages? Song Position are usually sent by a DAW or a powerful song sequencer (with rewind, looping abilities etc).
If you want to repeat an action at the beginning of a looped sequence, you should count Clock messages (24 per quarter note).
Hope this helps.
I'm using Renoise v2.8. It does send out Song Position Pointer information.
If I just count Clock messages how will the program know when a sequencer loops back to the beginning? I have been successful counting Clock messages in order to give a tempo read-out, but I don't see how it would help in a looped sequence.
Hello,
I'm moving this ticket to GitHub, here's the new address:
https://github.com/FortySevenEffects/arduino_midi_library/issues/14
Best regards,
Francois.