Changed printRhythmFromDurations to output only the coordinates corresponding to the beats