Adds foldMusic etc, fixes tuplet scaling

Closes #1