| 54 | // ── MidiBinding helpers ───────────────────────────────────────────────────── |
| 55 | |
| 56 | QString 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 |
no outgoing calls
no test coverage detected