represent rhythms as strings and write them to midi