51 audioDeviceSelector (0),
54 addAndMakeVisible (
quitButton =
new TextButton (T(
"new button")));
58 addAndMakeVisible (
label =
new Label (T(
"new label"),
59 T(
"CSL MIDI Input Dump")));
60 label->setFont (Font (24.0000f, Font::plain));
61 label->setJustificationType (Justification::centredLeft);
62 label->setEditable (
false,
false,
false);
63 label->setColour (TextEditor::textColourId, Colours::black);
64 label->setColour (TextEditor::backgroundColourId, Colour (0x0));
66 addAndMakeVisible (
textEditor =
new TextEditor (T(
"new text editor")));
75 addAndMakeVisible (
clearButton =
new TextButton (T(
"new button")));
82 addAndMakeVisible (
filtButton =
new ToggleButton (T(
"new toggle button")));
83 filtButton->setButtonText (T(
"Filter Note On/Off"));
115 true,
true,
false,
false));
126 logMsg(
"Start MIDI listener");
128 this->startTimer(100);
144 deleteAndZero (
label);
160 g.fillAll (Colour (0xff829bb1));
169 label->setBounds (16, 288, 224, 24);
187 JUCEApplication::quit();
236 const MessageManagerLock mmLock;
void logMsg(const char *format,...)
These are the public logging messages.
virtual void clear()
stop MIDI stream
AdditiveInstrument.h – Sum-of-sines synthesis instrument class.
AudioDeviceManager * gAudioDeviceManager
bool filt
filter note on-offs
MIDIIn class is-a MidiInputCallback too, and an "input-ready" flag.
AudioDeviceSelectorComponent * audioDeviceSelector
void update(void *arg)
MIDI observer update method.
void buttonClicked(Button *buttonThatWasClicked)
virtual void stop()
stop MIDI stream
AudioDeviceManager mAudioDeviceManager
JUCE audio.
void VoidFcnPtrN(void)
the truly void fcn pointer
IO – the abstract I/O scheduling class; subclasses interface to specific I/O APIs.
char * cLin
message to add
ToggleButton * filtButton
void attachObserver(Observer *)
(possibly notify obersvers on my death)
#define CSL_STR_LEN
default long string length
Component * createCSLComponent()
CMIDIMessage class (mapped to juce::MidiMessage)
CMIDIMessageType message
event type
virtual void open(int deviceID)
open a device
virtual void close()
closing MIDI stream
virtual void start()
start MIDI stream
juce_UseDebuggingNewOperator csl::MIDIIn * mIn
MIDI input.