lenmus / lomse

A C++ library for rendering, editing and playing back music scores.
MIT License
117 stars 28 forks source link

Support arpeggiated chords in playback #305

Closed cecilios closed 3 years ago

cecilios commented 3 years ago

This PR fixes #304.

I had doubts about how to compute the delay between arpeggio notes, as this is something that, to me, depends on tempo, chord note type and perhaps other factors. For now, I have set the total delay (on set time difference between first and last arpeggiated notes) to be the shortest time of (0.7 * chord duration) and one sixteenth note. In the tests with a few scores the arpeggios sound acceptable. But ideas for improving this computation are always welcome.