Is is possible to use tradicional tremolos? #86
-
|
Is is possible to use tradicional tremolos? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hmm.. we don't have automatic support for this, but it's certainly possible. I just threw together this hacky manual placement of a tremolo, though I didn't have time to work out the alignment (whole note positioning is kind of weird since it doesn't have the usual stem attachment point). Robust support for this would be a reasonable thing to include directly in Chordrest for sure. from neoscore.common import *
neoscore.setup()
staff = Staff((Mm(10), Mm(10)), None, Mm(150))
clef = Clef(ZERO, staff, "treble")
c = Chordrest(Mm(10), staff, ["a"], (1, 1))
target_notehead = c.highest_notehead
MusicText(
(ZERO, staff.unit(-2)),
target_notehead,
"tremolo3",
)
neoscore.show()I'm explicitly grabbing glyphs from SMuFL's tremolo section which you can see more on here https://w3c.github.io/smufl/latest/tables/tremolos.html |
Beta Was this translation helpful? Give feedback.


Hmm.. we don't have automatic support for this, but it's certainly possible. I just threw together this hacky manual placement of a tremolo, though I didn't have time to work out the alignment (whole note positioning is kind of weird since it doesn't have the usual stem attachment point). Robust support for this would be a reasonable thing to include directly in Chordrest for sure.
I'm…