Skip to content

Commit

Permalink
tremolo separation to notehead increased
Browse files Browse the repository at this point in the history
  • Loading branch information
rvilarl committed Apr 5, 2023
1 parent 88810b4 commit dd9a7d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/fonts/common_metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,15 @@ export const CommonMetrics = {
tremolo: {
default: {
spacing: 7,
offsetYStemUp: -3,
offsetYStemDown: 3,
offsetYStemUp: -8,
offsetYStemDown: 8,
offsetXStemUp: 11,
offsetXStemDown: 1,
},
grace: {
spacing: (7 * 3) / 5,
offsetYStemUp: -3,
offsetYStemDown: 3,
offsetYStemUp: -(8 * 3) / 5,
offsetYStemDown: (8 * 3) / 5,
offsetXStemUp: 7,
offsetXStemDown: 1,
},
Expand Down
4 changes: 2 additions & 2 deletions tests/percussion_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ const snare2 = createSingleMeasureTest((f) => {
f.StaveNote({ keys: ['c/5'], duration: '4', stem_direction: -1 }).addModifier(new Tremolo(1), 0),
f.GraceNote({ keys: ['c/5'], duration: '4', stem_direction: -1 }).addModifier(new Tremolo(1), 0),
f.StaveNote({ keys: ['c/5'], duration: '4', stem_direction: -1 }).addModifier(new Tremolo(3), 0),
f.StaveNote({ keys: ['c/5'], duration: '4', stem_direction: -1 }).addModifier(new Tremolo(5), 0),
f.StaveNote({ keys: ['c/5'], duration: '4', stem_direction: -1 }).addModifier(new Tremolo(4), 0),
]);
});

Expand All @@ -229,7 +229,7 @@ const snare3 = createSingleMeasureTest((factory) => {
factory.StaveNote({ keys: ['c/5'], duration: '4', stem_direction: 1 }).addModifier(new Tremolo(2), 0),
factory.GraceNote({ keys: ['c/5'], duration: '4', stem_direction: 1 }).addModifier(new Tremolo(2), 0),
factory.GraceNote({ keys: ['c/5'], duration: '4', stem_direction: 1 }).addModifier(new Tremolo(3), 0),
factory.StaveNote({ keys: ['c/5'], duration: '4', stem_direction: 1 }).addModifier(new Tremolo(5), 0),
factory.StaveNote({ keys: ['c/5'], duration: '4', stem_direction: 1 }).addModifier(new Tremolo(4), 0),
]);
});

Expand Down

0 comments on commit dd9a7d9

Please sign in to comment.