Testing and refactoring

- Fix bug where empty measures are ignored (should be treated as extension of previous chord)