refactored notes

This commit is contained in:
2025-07-14 17:02:16 +02:00
parent 3a1c274e83
commit b1ad3b98d2
5 changed files with 183 additions and 176 deletions

View File

@ -108,7 +108,7 @@
ctx.linked.push(p1)
ctx.linked.push(p2)
ctx.last-seq = (
elmt: seq,
seq: seq,
i: ctx.i,
p1: p1,
p2: p2
@ -138,14 +138,14 @@
note.pos = pars.last().last()
}
let seq = last-seq.note
let seq = ctx.last-seq.seq
seq.insert("linked-note", note)
ctx.elmts.at(last-seq.i) = seq
ctx.elmts.at(ctx.last-seq.i) = seq
}
if note.aligned {
let n = last-note.note
let n = ctx.last-note.note
n.aligned-with = note
ctx.elmts.at(last-note.i) = n
ctx.elmts.at(ctx.last-note.i) = n
}
if note.side == "left" {
ctx.linked.push("[")
@ -170,7 +170,7 @@
ctx.elmts.at(ctx.i) = note
ctx.last-note = (
elmt: note,
note: note,
i: ctx.i
)