smallpond

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

commit b2311766c53af8985914855ec5d4ebb82113d5dc
parent 6d80e008a0435cd42016a3a4b80ff52c0c9e8d3e
Author: Nihal Jere <nihal@nihaljere.xyz>
Date:   Sat, 22 Oct 2022 00:11:28 -0500

render simultaneous notes

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

diff --git a/smallpond.lua b/smallpond.lua @@ -568,9 +568,12 @@ for _, time in ipairs(points) do for staff, vals in pairs(todraw) do if #vals.on == 0 then goto nextstaff end - local el = vals.on[1] - local diff = staff3ify(el, staff) - if el.beamref then staff3ify(el.beamref, staff) end + local diff + print(#vals.on) + for _, el in ipairs(vals.on) do + diff = staff3ify(el, staff) + if el.beamref then staff3ify(el.beamref, staff) end + end if xdiff < diff then xdiff = diff end ::nextstaff:: end