MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / getMidiNumber

Function getMidiNumber

Source/Core/CtrlrUtilities.cpp:459–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457}
458
459const String getMidiNumber(const MidiMessage &m)
460{
461 if (m.isAftertouch())
462 {
463 return (String::formatted (" No:[%4d]", m.getNoteNumber()));
464 }
465
466 if (m.isController())
467 {
468 return (String::formatted (" No:[%4d]", m.getControllerNumber()));
469 }
470
471 if (m.isNoteOnOrOff())
472 {
473 return (String::formatted (" No:[%4d]", m.getNoteNumber()));
474 }
475
476 if (m.isProgramChange())
477 {
478 return (String::formatted (" No:[%4d]", m.getProgramChangeNumber()));
479 }
480 return (" No:[----]");
481}
482
483const String getRawData(const MidiMessage &m, const bool rawInDecimal)
484{

Callers 1

Calls 8

formattedFunction · 0.85
isAftertouchMethod · 0.80
getNoteNumberMethod · 0.80
isControllerMethod · 0.80
getControllerNumberMethod · 0.80
isNoteOnOrOffMethod · 0.80
isProgramChangeMethod · 0.80

Tested by

no test coverage detected