Closed Luke-Poeppel closed 3 years ago
One way to attack this would be to write a function that's similar to utils.get_object_indices
, but splits it into regions divided by a fermata. See https://web.mit.edu/music21/doc/moduleReference/moduleExpressions.html
This is much simpler if the fermata appears on a rest. That way you can simply split the objects. If it appears on a note, however, I'm not entirely sure what the best approach would be. Will give it some thought.
Music21 appears to have some difficulties with fermatas (see https://groups.google.com/g/music21list/c/7EGmjytBhZc/m/6VCnRBTxxtQJ) ... I'm not sure if these have been fully resolved, so I may have to file an issue. For now, it might be better to just look at clusters of notes/chords between rests.
Done in d89bee8ddabf309aa1cf5e8a609cdb8d465f618f.
This would be useful for rhythm experiments on the birdsongs.