commit 5652d858ff03e60f0f04a5798d39e3e8cb2c50ab
parent 6e29e5870544ab7ceac7b4a7af805a9c77a76c68
Author: Nihal Jere <nihal@nihaljere.xyz>
Date: Wed, 7 Dec 2022 17:14:49 -0600
HACK: fix stem when you cross from high to low after first note in beam group
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/smallpond.lua b/smallpond.lua
@@ -815,6 +815,9 @@ for _, notes in ipairs(beams) do
if notes[1].note.stemdir == -1 then
notes[1].note.stem.y2 = notes[1].note.stem.y2 - beamspace * (notes.maxbeams - 1) + beamheight
end
+ if notes[1].note.stemdir == 1 and notes[2] and notes[2].note.stemdir == -1 then
+ notes[1].note.stem.y2 = notes[1].note.stem.y2 + beamspace * notes.maxbeams
+ end
end
for i, entry in ipairs(notes) do