Skip to content

Commit bcee740

Browse files
committed
change default font, don't allow multiple holes
1 parent 2844a33 commit bcee740

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

harmonica_hohner_highlander_D.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//=============================================================================
1919

2020
// 54F# G G# A A# B C C# D D# E F
21-
var holes = ["+1", "", "", "-2/+3", "", "", "", "-4", "+5", "", "-6", "",
21+
var holes = ["+1", "", "", "-2", "", "", "", "-4", "+5", "", "-6", "",
2222
"+7", "-8", "", "+9", "", "-10", "", "-12", "+11", "", "-14", "",
2323
"+13", "-16", "", "+15", "", "-18", "", "-20", "+17", "", "", "",
2424
"+19"

harmonica_master_hohner_highlander_A.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ function applyFingerings(score, fingerings, shift)
3333
cursor.staff = 0;
3434
cursor.voice = 0;
3535
cursor.rewind(); // set cursor to first chord/rest
36+
var font = new QFont("Courier New", 8);
3637
while (!cursor.eos()) {
3738
if (cursor.isChord()) {
3839
var pitch = cursor.chord().topNote().pitch;
@@ -42,8 +43,9 @@ function applyFingerings(score, fingerings, shift)
4243
if (textString.length > 0) {
4344
var text = new Text(curScore);
4445
text.text = textString;
46+
text.defaultFont = font;
4547
text.yOffset = 6;
46-
text.xOffset = -1;
48+
text.xOffset = -1.5;
4749
cursor.putStaffText(text);
4850
}
4951
}

0 commit comments

Comments
 (0)