MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / sourceDisplayName

Method sourceDisplayName

src/core/MidiControlManager.cpp:56–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54// ── MidiBinding helpers ─────────────────────────────────────────────────────
55
56QString MidiBinding::sourceDisplayName() const
57{
58 QString typeName;
59 switch (msgType) {
60 case CC: typeName = QString("CC #%1").arg(number); break;
61 case NoteOn: typeName = QString("Note %1").arg(number); break;
62 case NoteOff: typeName = QString("NoteOff %1").arg(number); break;
63 case PitchBend: typeName = "Pitch Bend"; break;
64 }
65 if (channel >= 0)
66 return QString("Ch %1 %2").arg(channel + 1).arg(typeName);
67 return typeName;
68}
69
70// ── MidiControlManager ──────────────────────────────────────────────────────
71

Callers 3

onMidiMessageMethod · 0.80
refreshBindingTableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected