Menu

#15 Trouble getting Song Position information

version 3.1
closed
nobody
None
5
2014-04-20
2013-06-25
Skye Brown
No

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;
}
}

Discussion

  • Francois BEST

    Francois BEST - 2013-06-25

    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.

     
  • Skye Brown

    Skye Brown - 2013-06-25

    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.

     
  • Francois BEST

    Francois BEST - 2014-04-20
    • status: open --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.