Override Notehead on Beam? #1416
-
I'm trying to render the Raindrop Prelude and am running into a problem. I can't figure out how to render a half note on the beam (see image below). Any suggestions? Would it be possible to create it with all eighth notes and then override the glyphs somehow to render as a half note? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Perhaps you can use glyphnote |
Beta Was this translation helpful? Give feedback.
-
There's no way to set the head directly? We could add the 'normal' note heads to btw @nicholasjconn what is the interpretation of this custom note head? I've not seen it before. I've seen diamond note heads for tremolo. |
Beta Was this translation helpful? Give feedback.
-
I went down the rabbit hole and was able to get it to work. In EasyScore, creating a new 'valid code' and then adding it to Tables.durationCodes. This table is kind of a mess - you have to add it for each duration. IMO there should be a more general way of handling note heads. beam_tests.ts const voice = score.voice(
[
...
beam(notes('(cb4 e#4 a4)/8/z, (d4 f4 a4)/8, (ebb4 g##4 b4)/8, (f4 a4 c5)/8', { stem: 'up' })), tables.ts: const durationCodes: Record<string, any> = {
...
'8': { // just for eighth notes
type: {
...
z: {code_head: 'noteheadHalf'} |
Beta Was this translation helpful? Give feedback.
I went down the rabbit hole and was able to get it to work. In EasyScore, creating a new 'valid code' and then adding it to Tables.durationCodes. This table is kind of a mess - you have to add it for each duration. IMO there should be a more general way of handling note heads.
beam_tests.ts
tables.ts: