Hi all,
I had a follow up question to this. I have a large array of durations of varying sizes, including tied values. I am attempting to have a bar for each duration. For example the first two notes are 19/16 and 2/16 long. So I want to have two measures of 19/16 and 2/16 to hold the, (as in the OP I believe). The problem is that the first note, 19/16, is a whole note tied to a half note. And if I look at what is in the staff this is two note objects, '1/1' and '1/8.' So if I try to also algorithmically add Time sigs after the fact, simply looping through the notes on the staff won't work - the tied notes are counted as separate and the next time sigs sneak in early. Of course I could go through each and make a bespoke list of timesigs, but I am working with v large arrays of durations... The question... is it possible to somehow identify if the note on a staff is the first note in a tied sequence?
Something like
if note is tied:
dont add time sig to this note..
Thanks in advance!
S