59 void reset (
double sampleRate);
69 void addMessageToQueue (
const MidiMessage& message);
85 void removeNextBlockOfMessages (
MidiBuffer& destBuffer,
int numSamples);
90 void handleNoteOn (
MidiKeyboardState*,
int midiChannel,
int midiNoteNumber,
float velocity)
override;
92 void handleNoteOff (
MidiKeyboardState*,
int midiChannel,
int midiNoteNumber,
float velocity)
override;
98 double lastCallbackTime = 0;
101 double sampleRate = 44100.0;
103 bool hasCalledReset =
false;
Collects incoming realtime MIDI messages and turns them into blocks suitable for processing by a bloc...
Receives events from a MidiKeyboardState object.
#define JUCE_API
This macro is added to all JUCE public class declarations.
Encapsulates a MIDI message.
Holds a sequence of time-stamped midi events.
Represents a piano keyboard, keeping track of which keys are currently pressed.