use new midi-note-name API
authorRobin Gareus <robin@gareus.org>
Tue, 12 Jul 2016 21:00:31 +0000 (23:00 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 12 Jul 2016 21:02:46 +0000 (23:02 +0200)
gtk2_ardour/midi_list_editor.cc
gtk2_ardour/midi_region_view.cc

index e0eda7a53647737105762ca2ec20ce3f08242cdb..7771dc50cd463aae831d36a2926a05857c4a8602 100644 (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();
 
index 987a9fff35ef0c40ace7f6ed160f3c190cf49e97..14e39dd625fbcfaed84c417bfb0b9e441e2ecc05 100644 (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());