smallpond

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/smallpond
Log | Files | Refs

commit 7bd39a1354bc5dffce82910d36890a492877bd0b
parent 5fd211f7147e06609b5b66e065fdf437338d1f44
Author: Nihal Jere <nihal@nihaljere.xyz>
Date:   Thu,  8 Sep 2022 01:26:12 -0500

8th note flags

Diffstat:
Msmallpond.lua | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/smallpond.lua b/smallpond.lua @@ -4,7 +4,8 @@ local em = 8 local Glyph = { ["noteheadWhole"] = 0xE0A2, ["noteheadHalf"] = 0xE0A3, - ["noteheadBlack"] = 0xE0A4 + ["noteheadBlack"] = 0xE0A4, + ["flag8thDown"] = 0xE241, } local gClef = 0xE050 @@ -151,12 +152,12 @@ for i, el in ipairs(staff) do glyph = Glyph["noteheadBlack"] elseif el.length == 8 then glyph = Glyph["noteheadBlack"] + table.insert(drawables, {kind="glyph", glyph=Glyph["flag8thDown"], x=rx, y=ry + 3.5*em}) end table.insert(drawables, {kind="glyph", glyph=glyph, x=rx, y=ry}) if el.length > 1 then table.insert(drawables, {kind="line", t=1, x1=rx + 0.5, y1=ry + .188*em, x2=rx + 0.5, y2=ry + 3.5*em}) end - print(el.time, x) x = x + 100 / el.length lasttime = el.time elseif el.kind == "barline" then