Luke-Poeppel / decitala

Rhythmic Search and Alignment Tools for Computational Musicology. Catered to ethnological rhythmic analysis of Olivier Messiaen's music.
https://luke-poeppel.github.io/decitala/
MIT License
6 stars 0 forks source link

Phrase iterator #104

Closed Luke-Poeppel closed 3 years ago

Luke-Poeppel commented 3 years ago

This would be useful for rhythm experiments on the birdsongs.

Luke-Poeppel commented 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.

Luke-Poeppel commented 3 years ago

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.

Luke-Poeppel commented 3 years ago

Done in d89bee8ddabf309aa1cf5e8a609cdb8d465f618f.