diff options
author | Hans Baier <hansfbaier@googlemail.com> | 2008-04-23 02:15:57 +0000 |
---|---|---|
committer | Hans Baier <hansfbaier@googlemail.com> | 2008-04-23 02:15:57 +0000 |
commit | 53f3b407bb4080722cc8a7e1c42b99eca8e90bcd (patch) | |
tree | 952f17f5786dc0dc28bdde906fa8b4bf16a2d85a /libs/ardour/midi_track.cc | |
parent | b81fd9415ee07e90254c3bf23bfbf395adfa7995 (diff) |
* refactored MidiControlIterator to improve readability of code
* commented out crashing section (control iterator stuff in MidiModel::const_iterator::operator++)
* added midi_panic() on no_roll in midi tracks so that all notes stop when pressing stop
* mark midi model edited on all changes so that recorded tracks get saved
git-svn-id: svn://localhost/ardour2/branches/3.0@3281 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/midi_track.cc')
-rw-r--r-- | libs/ardour/midi_track.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/ardour/midi_track.cc b/libs/ardour/midi_track.cc index cbd9c52bf6..9cdf36144b 100644 --- a/libs/ardour/midi_track.cc +++ b/libs/ardour/midi_track.cc @@ -428,6 +428,9 @@ MidiTrack::no_roll (nframes_t nframes, nframes_t start_frame, nframes_t end_fram passthru (start_frame, end_frame, nframes, offset, 0, (_meter_point == MeterInput)); } + // stop all sounds + midi_panic(); + return 0; } |