added auto participant creation for notes

This commit is contained in:
Louis Heredero 2024-10-06 15:14:34 +02:00
parent a198708743
commit 9275169e8c
Signed by: HEL
GPG Key ID: 8D83DE470F8544E7

View File

@ -130,6 +130,21 @@
} else if elmt.side == "right" { } else if elmt.side == "right" {
linked.push("]") linked.push("]")
} }
let pars = none
if type(elmt.pos) == str {
pars = (elmt.pos,)
} else if type(elmt.pos) == array {
pars = elmt.pos
}
if pars != none {
for par in pars {
if not participant._exists(participants, par) {
participants.push(_par(par).first())
}
}
}
last-note = ( last-note = (
elmt: elmt, elmt: elmt,
i: i i: i