cuthbertLab / music21j

Javascript port of music21 -- Toolkit for Computational Musicology
Other
148 stars 41 forks source link

Type `.notes()` as providing a NotRest iterator #111

Closed jacobtylerwalls closed 3 years ago

jacobtylerwalls commented 3 years ago

This could be tightened up to avoid so much casting to .notes() as music21.note.Note[] or NotRest[].

Noticed when working on #110, because I didn't have access to .stemDirection without specifying a better type.