Is is possible to use tradicional tremolos? #86
Answered
by
ajyoon
charlesneimog
asked this question in
Q&A
|
Is is possible to use tradicional tremolos? |
Answered by
ajyoon
Dec 22, 2022
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 |
1 reply
Answer selected by
charlesneimog
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


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…