#include "gtkmm2ext/keyboard.h"
#include "gtkmm2ext/actions.h"
+#include "ardour_ui.h"
#include "midi_list_editor.h"
#include "note_player.h"
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:
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:
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:
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:
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<int,string>::iterator x = note_length_map.find (len_ticks);
if (x != note_length_map.end()) {
void
MidiListEditor::selection_changed ()
{
- if (!Config->get_sound_midi_notes()) {
+ if (!ARDOUR_UI::config()->get_sound_midi_notes()) {
return;
}