13
0

use new midi-note-name API

This commit is contained in:
Robin Gareus 2016-07-12 23:00:31 +02:00
parent 6b5be3d892
commit 7ed6dab340
2 changed files with 2 additions and 2 deletions

View File

@ -760,7 +760,7 @@ MidiListEditor::redisplay_model ()
for (MidiModel::Notes::iterator i = notes.begin(); i != notes.end(); ++i) {
row = *(model->append());
row[columns.channel] = (*i)->channel() + 1;
row[columns.note_name] = Evoral::midi_note_name ((*i)->note());
row[columns.note_name] = ParameterDescriptor::midi_note_name ((*i)->note());
row[columns.note] = (*i)->note();
row[columns.velocity] = (*i)->velocity();

View File

@ -4061,7 +4061,7 @@ MidiRegionView::get_note_name (boost::shared_ptr<NoteType> n, uint8_t note_value
char buf[128];
snprintf (buf, sizeof (buf), "%d %s\nCh %d Vel %d",
(int) note_value,
name.empty() ? Evoral::midi_note_name (note_value).c_str() : name.c_str(),
name.empty() ? ParameterDescriptor::midi_note_name (note_value).c_str() : name.c_str(),
(int) n->channel() + 1,
(int) n->velocity());