Skip to content

Commit

Permalink
set velocity to 1
Browse files Browse the repository at this point in the history
so the playback cursors keeps moving though the cue notes rather than
jump over them. Alsi adding code to check for an open score.
  • Loading branch information
Jojo-Schmitz committed Jun 23, 2012
1 parent febf07d commit 746e782
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions cue.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@
function init () {
}

// loop through music making all notes and rests small and silent
// loop through selection making all notes and rests small and silent

function cue () {
function run () {
if (typeof curScore === 'undefined')
return;

var cursor = new Cursor(curScore);
var selectionEnd = new Cursor(curScore);
Expand Down Expand Up @@ -68,7 +70,7 @@ function cue () {
var notes = chord.notes;
for (var i = 0; i < notes; ++i) {
var note = chord.note(i);
note.velocity = 0;
note.velocity = 1; // so the playback cursor keeps moving
}
chord.small = true;
}
Expand All @@ -89,10 +91,6 @@ function cue () {

}

function run () {
cue();
}

//---------------------------------------------------------
// menu: defines where the function will be placed
// in the menu structure
Expand Down

0 comments on commit 746e782

Please sign in to comment.