diff options
author | Hans Baier <hansfbaier@googlemail.com> | 2008-05-06 05:17:51 +0000 |
---|---|---|
committer | Hans Baier <hansfbaier@googlemail.com> | 2008-05-06 05:17:51 +0000 |
commit | cb88f8cce97658ad3c990850104feca9fb0138ef (patch) | |
tree | a2e97cdbc45d89975c5c5fc767afb877180d5b04 /libs/ardour/midi_model.cc | |
parent | e55e3fde7cec89c49e01046a2db276b2d8f30958 (diff) |
* fixed end of track at beginning-problem when writing MIDI files (also the EOT event was written multiple times)
git-svn-id: svn://localhost/ardour2/branches/3.0@3317 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/midi_model.cc')
-rw-r--r-- | libs/ardour/midi_model.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/ardour/midi_model.cc b/libs/ardour/midi_model.cc index 3e009bcb8f..8545e7cd95 100644 --- a/libs/ardour/midi_model.cc +++ b/libs/ardour/midi_model.cc @@ -483,8 +483,8 @@ void MidiModel::append(const MIDI::Event& ev) write_lock(); _edited = true; - /*cerr << "MidiModel append event type: " - << hex << "0x" << (int)ev.type() << endl;*/ + cerr << "MidiModel append event type: " + << hex << "0x" << (int)ev.type() << endl; assert(_notes.empty() || ev.time() >= _notes.back()->time()); assert(_writing); @@ -891,10 +891,10 @@ bool MidiModel::write_to(boost::shared_ptr<MidiSource> source) const NoteMode old_note_mode = _note_mode; _note_mode = Sustained; - + for (const_iterator i = begin(); i != end(); ++i) source->append_event_unlocked(Frames, *i); - + _note_mode = old_note_mode; read_unlock(); |