1
0
Fork 0
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:
Tom Poole 2018-05-17 12:02:37 +01:00
parent 5b9a07ec2e
commit a99cac4af4

View file

@ -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 {}