mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fixed some MIDI message descriptions in the MIDI example code
This commit is contained in:
parent
5b9a07ec2e
commit
a99cac4af4
1 changed files with 1 additions and 8 deletions
|
|
@ -157,14 +157,7 @@ public:
|
|||
// This is called on the message loop
|
||||
|
||||
auto& mm = dynamic_cast<const MidiCallbackMessage&> (msg).message;
|
||||
String midiString;
|
||||
midiString << (mm.isNoteOn() ? String ("Note on: ") : String ("Note off: "));
|
||||
midiString << (MidiMessage::getMidiNoteName (mm.getNoteNumber(), true, true, true));
|
||||
midiString << (String (" vel = "));
|
||||
midiString << static_cast<int> (mm.getVelocity());
|
||||
midiString << "\n";
|
||||
|
||||
midiMonitor.insertTextAtCaret (midiString);
|
||||
midiMonitor.insertTextAtCaret (mm.getDescription() + "\n");
|
||||
}
|
||||
|
||||
void paint (Graphics&) override {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue