| 510 | } |
| 511 | |
| 512 | const 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()) |
no test coverage detected