music21
User’s Guide, Chapter 56: Segmented and Approximate Search
User’s Guide, Chapter 58: Understanding Sites and Contexts
To be written