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()) {