Rewind problem
Hi guys I want to rewind to previous note but when I use line cursor.prev(); it rewinds to previous segment and it happens to be a rest. I want some line which skips the rests and rewinds to a previous note.
Thank you.
Hi guys I want to rewind to previous note but when I use line cursor.prev(); it rewinds to previous segment and it happens to be a rest. I want some line which skips the rests and rewinds to a previous note.
Thank you.
Do you still have an unanswered question? Please log in first to post your question.
Comments
Cursor's purpose is to move by segments; you can .filter on segment types, but ChordRest is the combining type for rests and chords.
So you'll need to loop it:
In reply to Cursor's purpose is to move… by jeetee
Thank you.. but the cursor now rewinds in front of last detected note but I want it to rewinded behind the last detected note. (the duration of last detected note can vary so i cannot just use cursor.rewindToTick).
In reply to Thank you.. but the cursor… by kamilio141414
got it