mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 21:26:26 +01:00
various minor MIDI fixes: prevent duplicate note entry with mouse, show note info more often with verbose cursor, fix some crashes from click+move on notes ... lots more where this comes from
git-svn-id: svn://localhost/ardour2/branches/3.0@7128 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
e58f6752af
commit
a196405da9
9 changed files with 90 additions and 21 deletions
|
|
@ -250,7 +250,11 @@ MidiSource::clone (Evoral::MusicalTime begin, Evoral::MusicalTime end)
|
|||
newsrc->set_timeline_position(_timeline_position);
|
||||
|
||||
if (_model) {
|
||||
_model->write_to (newsrc, begin, end);
|
||||
if (begin == Evoral::MinMusicalTime && end == Evoral::MaxMusicalTime) {
|
||||
_model->write_to (newsrc);
|
||||
} else {
|
||||
_model->write_section_to (newsrc, begin, end);
|
||||
}
|
||||
} else {
|
||||
error << string_compose (_("programming error: %1"), X_("no model for MidiSource during ::clone()"));
|
||||
return boost::shared_ptr<MidiSource>();
|
||||
|
|
@ -290,3 +294,9 @@ MidiSource::set_note_mode(NoteMode mode)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
MidiSource::drop_model ()
|
||||
{
|
||||
cerr << name() << " drop model\n";
|
||||
_model.reset();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue