Comment by btown

9 years ago

Musescore (open-source music notation software) uses this pattern, for those interested... but not in a particularly DRY or stable way (so much duplicated logic!). I'm sure other open-source examples exist, but this should give you an idea:

https://github.com/musescore/MuseScore/blob/master/libmscore...

https://github.com/musescore/MuseScore/blob/master/libmscore...

https://github.com/musescore/MuseScore/blob/c4af0c22bc90a6ba...