Making piece and part ranges generally available in the metadata about a piece would be really useful for a number of analyses. Note that to do this it is probably best to use music21's analyze() method that you can run on streams. For example (taken from music21 documentation here):
s = corpus.parse('bach/bwv66.6')
s.analyze('ambitus')
Making piece and part ranges generally available in the metadata about a piece would be really useful for a number of analyses. Note that to do this it is probably best to use music21's analyze() method that you can run on streams. For example (taken from music21 documentation here):
This should probably go in indexed_piece.py.