Fixed some issues with calculating rhythms in output.ml, fixed my cascade test