Closed alexandermorgan closed 8 years ago
I remember we considered this already but ruled it out. Do you remember why? I don't...
As I was coding this up, I had the same vague recollection of a previous conversation about this. I think it was just that what we had worked, so we didn't want to mess with it. It's a little more problematic in VIS 3 though, so I'm planning on going ahead with this change.
This has been implemented on alex_devel as of commit f5d0ea1c398f6aacd3a89790099e3b6fbfe503f7.
It's pretty messy to calculate durations by actually using the .duration attribute of a note, rest, or chord. This is because it's kind of a hassle to find all the notes that are tied together, then add up all their durations and assign this value to the position of the first note in the group. Let's use pandas instead. The code for a single part would look something like this:
Just throw that in a little loop for each part and you're set!