Detect system measures one at a time
Clean up staves to use SciPy's clustering