Note Names - Vertical

• Feb 9, 2014 - 06:50

I modified the display direction of Note Names plugin.

C-E-G
to
G
E
C

Vertical display is more suitable than horizontal.


var CrLf = '\r\n';
while (!cursor.eos()) {
if (cursor.isChord()){
var text = new Text(curScore);
text.defaultFont = font;
text.yOffset = 6;
text.xOffset = 0;
var chordlength = cursor.chord().notes;
var len = 0;
while (len < chordlength){ // from Bottom to Top
text.text += cursor.chord().note(len).name+CrLf; // set CRLF code between note names.
len += 1;
cursor.putStaffText(text);
}
}
cursor.next();
}

Hiroshi Tachibana

Attachment Size
NoteNames-Vertical.js_.zip 2.46 KB

Comments

Hi guys. Is there a way to name notes and chords in a vertical way as opposed to horizontally? I'm an improvisation teacher in Cape Town South Africa and really need the names of the notes in the left hand to appear on the right of each note iro the left hand. I don't want it in noteheads. Any advice?

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