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

Function getName

Source/Core/CtrlrUtilities.cpp:512–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

510}
511
512const String getName(const MidiMessage &m)
513{
514 if (m.isActiveSense())
515 {
516 return (" [Active Sense]");
517 }
518
519 if (m.isAftertouch())
520 {
521 return (" [Aftertouch]");
522 }
523
524 if (m.isAllNotesOff())
525 {
526 return (" [All notes off]");
527 }
528
529 if (m.isAllSoundOff())
530 {
531 return (" [All sound off]");
532 }
533
534 if (m.isChannelPressure())
535 {
536 return (" [Channel pressure]");
537 }
538
539 if (m.isController())
540 {
541 return (" [Controller]");
542 }
543
544 if (m.isFullFrame())
545 {
546 return (" [Full frame]");
547 }
548
549 if (m.isMetaEvent())
550 {
551 return (" [Meta event]");
552 }
553
554 if (m.isMidiClock())
555 {
556 return (" [MIDI Clock]");
557 }
558
559 if (m.isMidiContinue())
560 {
561 return (" [MIDI Continue]");
562 }
563
564 if (m.isMidiStart())
565 {
566 return (" [MIDI Start]");
567 }
568
569 if (m.isMidiStop())

Callers 12

removeMethod · 0.50
setCodeInternalMethod · 0.50
openDeviceMethod · 0.50
createEditorComponentMethod · 0.50
createEditorComponentMethod · 0.50
CtrlrPanelResourceMethod · 0.50
canCloseMethod · 0.50
restoreStateMethod · 0.50
setReferenceMethod · 0.50
getLuaNameMethod · 0.50

Calls 15

isActiveSenseMethod · 0.80
isAftertouchMethod · 0.80
isAllNotesOffMethod · 0.80
isAllSoundOffMethod · 0.80
isChannelPressureMethod · 0.80
isControllerMethod · 0.80
isFullFrameMethod · 0.80
isMetaEventMethod · 0.80
isMidiClockMethod · 0.80
isMidiContinueMethod · 0.80
isMidiStartMethod · 0.80
isMidiStopMethod · 0.80

Tested by

no test coverage detected