xwsxethan / MusicScoring

Code and paper for automatically generating a difficulty score for a piece of music.
7 stars 1 forks source link

Dotted and tied notes are currently treated as separate individual notes. #14

Closed xwsxethan closed 9 years ago

xwsxethan commented 9 years ago

I need to parse for whether the tag is present, and if so, increase the length of the note by 0.5.

Ties are similarly ignored. To handle them, I'll need an on/off boolean for whether the note is part of a tie. If so, keep adding note lengths together. Once off, finish the previous note and reset for a new one.

These situations are NOT mutually exclusive, so the code should be able to handle infinitely many dotted notes tied together (even if a song is comprised entirely of one note). I'll need to check some corner cases to ensure that this eventually works as intended.