mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
MIDI list editor: fix note-length dropdown (#9457)
This commit is contained in:
parent
6e24a409f4
commit
2d24a5fe88
1 changed files with 2 additions and 2 deletions
|
|
@ -659,7 +659,7 @@ MidiListEditor::edited (const std::string& path, const std::string& text)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (x != note_length_map.end()) {
|
if (x != note_length_map.end()) {
|
||||||
bval = x->first / Temporal::ticks_per_beat;
|
bval = Temporal::Beats::ticks (x->first);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -680,7 +680,7 @@ MidiListEditor::edited (const std::string& path, const std::string& text)
|
||||||
|
|
||||||
if (x != note_length_map.end()) {
|
if (x != note_length_map.end()) {
|
||||||
/* convert to beats */
|
/* convert to beats */
|
||||||
bval = x->first / Temporal::ticks_per_beat;
|
bval = Temporal::Beats::ticks (x->first);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue