cursor.next() and nextMeasure()

• Jan 18, 2016 - 12:07

Can anybody explain, please, why next plugin code

cursor.rewind(0); cursor.setDuration(1, 4); cursor.addNote(60);
cursor.next(); cursor.setDuration(1, 8); cursor.addNote(64);
cursor.next(); cursor.setDuration(1, 8); cursor.addNote(64);

generates such score (see image)?

It looks like last “next()” works like “nextMeasure()” isn’t it?
And what to do to add third note just after second?

Attachment Size
cursor_next-1.JPG 12.5 KB

Comments

Try this:

{syntaxhighlighter JAVASCRIPT}
cursor.rewind(0);

cursor.setDuration(1, 4);
cursor.addNote(60);
cursor.setDuration(1, 8);
cursor.addNote(64);
cursor.addNote(64);
{/syntaxhighlighter}

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