music-suite / music-score

This repo has been merged into: https://github.com/music-suite/music-suite
http://music-suite.github.io
BSD 3-Clause "New" or "Revised" License
52 stars 10 forks source link

Hide repeated dynamic marks that are too close #266

Closed hanshoglund closed 10 years ago

hanshoglund commented 10 years ago

Dynamic marks are added by default at the beginning of each new phrase.

This is good after long pauses, but irritating after short ones, as in

mcatMaybes $ scat [c,rest,d,rest,e]^/8

screen shot 2014-06-28 at 16 13 43

To solve this, we need a variant of phrase traversal where the time since the last phrase is known. We can then apply this traversal after dynamics have been notated, and remove the notation if the time is lower than some treshold (say 1.5).