Make MidiModel::write_section_to able to offset event times
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Tue, 19 Jul 2016 23:17:58 +0000 (01:17 +0200)
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Wed, 20 Jul 2016 00:01:40 +0000 (02:01 +0200)
commit728e6027d19d7c8f180187a27c8cc744917dc83f
treeb9a1d80831ccf37d1c3a67ed600bea80162335cc
parent2bad0e5c55f7ce021092ed27245f1d87168d1279
Make MidiModel::write_section_to able to offset event times

MidiModel::write_section_to() only wrote events to the given source if
those events had a time in the given range. Make it able to optionally
offset event times so that the start of the written range corresponds to
time 0 in the source.
libs/ardour/ardour/midi_model.h
libs/ardour/midi_model.cc