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

Function getMidiValue

Source/Core/CtrlrUtilities.cpp:424–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424const String getMidiValue(const MidiMessage &m)
425{
426 if (m.isAftertouch())
427 {
428 return (String::formatted (" Val:[%4d]", m.getAfterTouchValue()));
429 }
430
431 if (m.isController())
432 {
433 return (String::formatted (" Val:[%4d]", m.getControllerValue()));
434 }
435
436 if (m.isNoteOnOrOff())
437 {
438 return (String::formatted (" Val:[%4d]", m.getVelocity()));
439 }
440
441 if (m.isPitchWheel())
442 {
443 return (String::formatted (" Val:[%4d]", m.getPitchWheelValue()));
444 }
445
446 if (m.isChannelPressure())
447 {
448 return (String::formatted (" Val:[%4d]", m.getChannelPressureValue()));
449 }
450
451 return (" Val:[----]");
452}
453
454const String getRawDataSize(const MidiMessage &m)
455{

Callers 1

Calls 11

formattedFunction · 0.85
isAftertouchMethod · 0.80
getAfterTouchValueMethod · 0.80
isControllerMethod · 0.80
getControllerValueMethod · 0.80
isNoteOnOrOffMethod · 0.80
getVelocityMethod · 0.80
isPitchWheelMethod · 0.80
getPitchWheelValueMethod · 0.80
isChannelPressureMethod · 0.80

Tested by

no test coverage detected