* bugfix in midi editing: adding notes impossible after delete
git-svn-id: svn://localhost/ardour2/branches/3.0@3255 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
c4bdcb82af
commit
0c66131fea
|
@ -174,6 +174,7 @@ MidiRegionView::canvas_event(GdkEvent* ev)
|
|||
}
|
||||
if (delete_mod) {
|
||||
trackview.editor.set_midi_edit_mode(original_mode);
|
||||
_mouse_state = None;
|
||||
delete_mod = false;
|
||||
}
|
||||
return true;
|
||||
|
|
|
@ -523,8 +523,8 @@ MidiModel::remove_note_unlocked(const boost::shared_ptr<const Note> note)
|
|||
{
|
||||
//cerr << "MidiModel " << this << " remove note " << (int)note.note() << " @ " << note.time() << endl;
|
||||
for(Notes::iterator n = _notes.begin(); n != _notes.end(); ++n) {
|
||||
Note _n = *(*n);
|
||||
Note _note =*note;
|
||||
Note& _n = *(*n);
|
||||
const Note& _note = *note;
|
||||
cerr << "======================================= " << endl;
|
||||
cerr << int(_n.note()) << "@" << int(_n.time()) << "[" << int(_n.channel()) << "] --" << int(_n.duration()) << "-- #" << int(_n.velocity()) << endl;
|
||||
cerr << int(_note.note()) << "@" << int(_note.time()) << "[" << int(_note.channel()) << "] --" << int(_note.duration()) << "-- #" << int(_note.velocity()) << endl;
|
||||
|
|
|
@ -477,6 +477,7 @@ SMFSource::append_event_unlocked(EventTimeUnit unit, const MIDI::Event& ev)
|
|||
delta_time = (uint32_t)((ev.time() - _last_ev_time) * _ppqn);
|
||||
}
|
||||
|
||||
|
||||
const size_t stamp_size = write_var_len(delta_time);
|
||||
fwrite(ev.buffer(), 1, ev.size(), _fd);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user