Random plugin question?

• Mar 27, 2016 - 16:54

Hi,
I'm learning how to write notes from a plugin. Therefore I studied the "random" plugin.
What I just don't understand: where come the rest(s) from, it inserts at the end of each measure?
If I remove the cursor.next() commands, no rests will be created.
Obviously addNote() advances the cursor and cursor.next() advances it too. In a real example: when would I do cursor.next() and when not?

Best regards

Michael


Comments

In reply to by MichaelNbg

Its not, it's this one #100181: cursor.addNote doesn't update internal segment reference

We're currently working through the current plugin list to see which plugins would break when we include the fix for it. I'm currently about 1/3rd through that list and hope I can finish this before 2.0.3 is ready.

Note that random.qml will be updated with the corrected functionality as well (see the linked Pull Request there)

Do you still have an unanswered question? Please log in first to post your question.