X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fmidi_list_editor.cc;h=047dcf27a7697d272dcbbb776a2056f6cd8137f0;hb=aabc5108f34058d466d1e7451694193a08379ce2;hp=ab282f2a235e19da284a5cf04239b7365d4efae6;hpb=64fa63212f7e79bab16147817211a33a3f7c8fba;p=ardour.git diff --git a/gtk2_ardour/midi_list_editor.cc b/gtk2_ardour/midi_list_editor.cc index ab282f2a23..047dcf27a7 100644 --- a/gtk2_ardour/midi_list_editor.cc +++ b/gtk2_ardour/midi_list_editor.cc @@ -292,7 +292,7 @@ MidiListEditor::scroll_event (GdkEventScroll* ev) if (note->time() + fdelta >= 0) { cmd->change (note, prop, note->time() + fdelta); } else { - cmd->change (note, prop, Evoral::MusicalTime()); + cmd->change (note, prop, Evoral::Beats()); } break; case MidiModel::NoteDiffCommand::Velocity: @@ -300,10 +300,10 @@ MidiListEditor::scroll_event (GdkEventScroll* ev) break; case MidiModel::NoteDiffCommand::Length: if (note->length().to_double() + fdelta >= - Evoral::MusicalTime::tick().to_double()) { + Evoral::Beats::tick().to_double()) { cmd->change (note, prop, note->length() + fdelta); } else { - cmd->change (note, prop, Evoral::MusicalTime::tick()); + cmd->change (note, prop, Evoral::Beats::tick()); } break; case MidiModel::NoteDiffCommand::Channel: @@ -335,7 +335,7 @@ MidiListEditor::scroll_event (GdkEventScroll* ev) if (note->time() + fdelta >= 0) { cmd->change (note, prop, note->time() + fdelta); } else { - cmd->change (note, prop, Evoral::MusicalTime()); + cmd->change (note, prop, Evoral::Beats()); } break; case MidiModel::NoteDiffCommand::Velocity: @@ -343,10 +343,10 @@ MidiListEditor::scroll_event (GdkEventScroll* ev) break; case MidiModel::NoteDiffCommand::Length: if (note->length() + fdelta >= - Evoral::MusicalTime::tick().to_double()) { + Evoral::Beats::tick().to_double()) { cmd->change (note, prop, note->length() + fdelta); } else { - cmd->change (note, prop, Evoral::MusicalTime::tick()); + cmd->change (note, prop, Evoral::Beats::tick()); } break; case MidiModel::NoteDiffCommand::Channel: @@ -773,11 +773,11 @@ MidiListEditor::redisplay_model () row[columns.start] = ss.str(); bbt.bars = 0; - const Evoral::MusicalTime dur = (*i)->end_time() - (*i)->time(); + const Evoral::Beats dur = (*i)->end_time() - (*i)->time(); bbt.beats = dur.get_beats (); bbt.ticks = dur.get_ticks (); - int len_ticks = (*i)->length().to_ticks(); + uint64_t len_ticks = (*i)->length().to_ticks(); std::map::iterator x = note_length_map.find (len_ticks); if (x != note_length_map.end()) {