//Cursor.tick() inconsistent when expandRepeat = true //Repro example by Matthew Szczepankiewicz 9/30/2013 function print(txt) { var mb = new QMessageBox(); mb.text = txt; mb.exec(); } function run() { // -- EXAMPLE 1: Prints -1 for c1.tick() and 0 for c2.tick() - Possible bug? -- c1 = new Cursor(curScore, true); c1.staff = 0; c1.rewind(); c2 = new Cursor(curScore, true); c2.staff = 0; c2.rewind(); print("Cursor 1 Tick: " + c1.tick() + "\nCursor 2 Tick: " + c2.tick()); // -- EXAMPLE 2: Prints 0 for c1.tick() and 0 for c2.tick() as expected -- c1 = new Cursor(curScore); c1.staff = 0; c1.rewind(); c2 = new Cursor(curScore); c2.staff = 0; c2.rewind(); print("Cursor 1 Tick: " + c1.tick() + "\nCursor 2 Tick: " + c2.tick()); // -- EXAMPLE 3: Prints 0 for c1.tick() and 0 for c2.tick() as expected c1 = new Cursor(curScore, true); c2 = new Cursor(curScore, true); c1.staff = 0; c2.staff = 0; c1.rewind(); c2.rewind(); print("Cursor 1 Tick: " + c1.tick() + "\nCursor 2 Tick: " + c2.tick()); } function init() { //nothing to be done } var mscorePlugin = { menu: 'Plugins.Cursor Tick Repro', init: init, run: run }; mscorePlugin;