MIDI: fix list editor display of note length (names) (#9371)
Triplets are still not handled well.
This commit is contained in:
parent
50232a23a7
commit
04b728fb38
@ -54,14 +54,14 @@ static map<int32_t,std::string> note_length_map;
|
||||
static void
|
||||
fill_note_length_map ()
|
||||
{
|
||||
note_length_map.insert (make_pair<int32_t,string> (Temporal::ticks_per_beat/1, _("Whole")));
|
||||
note_length_map.insert (make_pair<int32_t,string> (Temporal::ticks_per_beat/2, _("Half")));
|
||||
note_length_map.insert (make_pair<int32_t,string> (Temporal::ticks_per_beat/3, _("Triplet")));
|
||||
note_length_map.insert (make_pair<int32_t,string> (Temporal::ticks_per_beat/4, _("Quarter")));
|
||||
note_length_map.insert (make_pair<int32_t,string> (Temporal::ticks_per_beat/8, _("Eighth")));
|
||||
note_length_map.insert (make_pair<int32_t,string> (Temporal::ticks_per_beat/16, _("Sixteenth")));
|
||||
note_length_map.insert (make_pair<int32_t,string> (Temporal::ticks_per_beat/32, _("Thirty-second")));
|
||||
note_length_map.insert (make_pair<int32_t,string> (Temporal::ticks_per_beat/64, _("Sixty-fourth")));
|
||||
note_length_map.insert (make_pair<int32_t,string> (Temporal::ticks_per_beat*4, _("Whole")));
|
||||
note_length_map.insert (make_pair<int32_t,string> (Temporal::ticks_per_beat*2, _("Half")));
|
||||
note_length_map.insert (make_pair<int32_t,string> (Temporal::ticks_per_beat*2/3 , _("Triplet")));
|
||||
note_length_map.insert (make_pair<int32_t,string> (Temporal::ticks_per_beat/1, _("Quarter")));
|
||||
note_length_map.insert (make_pair<int32_t,string> (Temporal::ticks_per_beat/2, _("Eighth")));
|
||||
note_length_map.insert (make_pair<int32_t,string> (Temporal::ticks_per_beat/4, _("Sixteenth")));
|
||||
note_length_map.insert (make_pair<int32_t,string> (Temporal::ticks_per_beat/8, _("Thirty-second")));
|
||||
note_length_map.insert (make_pair<int32_t,string> (Temporal::ticks_per_beat/16, _("Sixty-fourth")));
|
||||
}
|
||||
|
||||
MidiListEditor::MidiListEditor (Session* s, std::shared_ptr<MidiRegion> r, std::shared_ptr<MidiTrack> tr)
|
||||
|
Loading…
Reference in New Issue
Block a user