CSL
6.0
|
#include <CSLMIDIComponent.h>
Public Member Functions | |
CSLMIDIComponent () | |
~CSLMIDIComponent () | |
void | update (void *arg) |
MIDI observer update method. More... | |
void | timerCallback () |
void | paint (Graphics &g) |
void | resized () |
void | buttonClicked (Button *buttonThatWasClicked) |
CSLMIDIComponent (const CSLMIDIComponent &) | |
const CSLMIDIComponent & | operator= (const CSLMIDIComponent &) |
CSLMIDIComponent () | |
~CSLMIDIComponent () | |
void | update (void *arg) |
MIDI observer update method. More... | |
void | paint (Graphics &g) |
void | resized () |
void | buttonClicked (Button *buttonThatWasClicked) |
void | sliderValueChanged (Slider *sliderThatWasMoved) |
virtual void | timerCallback () |
void | startStop () |
virtual void | audioDeviceIOCallback (const float **inputChannelData, int totalNumInputChannels, float **outputChannelData, int totalNumOutputChannels, int numSamples) |
virtual void | audioDeviceAboutToStart (AudioIODevice *device) |
virtual void | audioDeviceStopped () |
CSLMIDIComponent (const CSLMIDIComponent &) | |
const CSLMIDIComponent & | operator= (const CSLMIDIComponent &) |
Public Attributes | |
juce_UseDebuggingNewOperator csl::MIDIIn * | mIn |
MIDI input. More... | |
char * | cLin |
message to add More... | |
bool | filt |
filter note on-offs More... | |
AudioDeviceManager | mAudioDeviceManager |
JUCE audio. More... | |
bool | changed |
TextButton * | quitButton |
Label * | label |
TextEditor * | textEditor |
TextButton * | clearButton |
AudioDeviceSelectorComponent * | audioDeviceSelector |
ToggleButton * | filtButton |
std::vector< Slider * > | sliders |
list of my 16 sliders More... | |
std::vector< unsigned > | values |
list of my 16 current values More... | |
std::vector< unsigned > | nextVals |
list of my 16 update values More... | |
csl::Buffer | outBuffer |
bool | playing |
state flags More... | |
unsigned | offset |
what # is fader 0? More... | |
GThread * | playThread |
TextButton * | selButton |
Slider * | slider |
Slider * | slider2 |
Slider * | slider3 |
Slider * | slider4 |
Slider * | slider5 |
Slider * | slider6 |
Slider * | slider7 |
Slider * | slider8 |
Slider * | slider9 |
Slider * | slider10 |
Slider * | slider11 |
Slider * | slider12 |
Slider * | slider13 |
Slider * | slider14 |
Slider * | slider15 |
Slider * | slider16 |
Label * | label2 |
float | mPeriod |
virtual destructor (don't notify or delete observers in this version) More... | |
int | mKey |
key selector (e.g., MIDI chan) I receive update() mesages from my model; More... | |
[Comments] An auto-generated component, created by the Jucer.
Describe your class and how it works here! [/Comments]
Definition at line 41 of file CSLMIDIComponent.h.
CSLMIDIComponent::CSLMIDIComponent | ( | ) |
Create a MIDI in and attach a filtering listener to it
Definition at line 46 of file CSLMIDIComponent.cpp.
References csl::Model::attachObserver(), audioDeviceSelector, clearButton, cLin, CSL_STR_LEN, DEFAULT_MIDI_IN, filt, filtButton, label, csl::logMsg(), mAudioDeviceManager, mIn, csl::MIDIIn::open(), quitButton, csl::MIDIIn::start(), and textEditor.
CSLMIDIComponent::~CSLMIDIComponent | ( | ) |
Definition at line 133 of file CSLMIDIComponent.cpp.
References audioDeviceSelector, clearButton, csl::MIDIIO::close(), filtButton, label, csl::logMsg(), mIn, quitButton, csl::MIDIIn::stop(), and textEditor.
CSLMIDIComponent::CSLMIDIComponent | ( | const CSLMIDIComponent & | ) |
CSLMIDIComponent::CSLMIDIComponent | ( | ) |
CSLMIDIComponent::~CSLMIDIComponent | ( | ) |
CSLMIDIComponent::CSLMIDIComponent | ( | const CSLMIDIComponent & | ) |
|
virtual |
MIDI observer update method.
Implements csl::Observer.
Definition at line 219 of file CSLMIDIComponent.cpp.
References changed, csl::MIDIIO::clear(), cLin, filt, csl::CMIDIMessage::getNote(), csl::CMIDIMessage::getVelocity(), csl::CMIDIMessage::isNoteOnOff(), csl::CMIDIMessage::message, and mIn.
void CSLMIDIComponent::timerCallback | ( | ) |
Definition at line 232 of file CSLMIDIComponent.cpp.
References changed, cLin, and textEditor.
void CSLMIDIComponent::paint | ( | Graphics & | g | ) |
Definition at line 155 of file CSLMIDIComponent.cpp.
void CSLMIDIComponent::resized | ( | ) |
Definition at line 166 of file CSLMIDIComponent.cpp.
References clearButton, filtButton, label, quitButton, and textEditor.
void CSLMIDIComponent::buttonClicked | ( | Button * | buttonThatWasClicked | ) |
Definition at line 178 of file CSLMIDIComponent.cpp.
References clearButton, filt, filtButton, quitButton, and textEditor.
const CSLMIDIComponent& CSLMIDIComponent::operator= | ( | const CSLMIDIComponent & | ) |
|
virtual |
MIDI observer update method.
Implements csl::Observer.
void CSLMIDIComponent::paint | ( | Graphics & | g | ) |
void CSLMIDIComponent::resized | ( | ) |
void CSLMIDIComponent::buttonClicked | ( | Button * | buttonThatWasClicked | ) |
void CSLMIDIComponent::sliderValueChanged | ( | Slider * | sliderThatWasMoved | ) |
|
virtual |
void CSLMIDIComponent::startStop | ( | ) |
Definition at line 510 of file CSLMIDIFaderComponent.cpp.
References csl::IO::clearRoot(), playing, playSineMixer(), playThread, and csl::sleepMsec().
|
virtual |
Definition at line 468 of file CSLMIDIFaderComponent.cpp.
References csl::kLogError, csl::logMsg(), csl::Buffer::mBuffers, csl::IO::mGraph, outBuffer, playing, csl::IO::pullInput(), csl::Buffer::setSize(), and csl::CException::what().
|
virtual |
Definition at line 501 of file CSLMIDIFaderComponent.cpp.
|
virtual |
Definition at line 504 of file CSLMIDIFaderComponent.cpp.
const CSLMIDIComponent& CSLMIDIComponent::operator= | ( | const CSLMIDIComponent & | ) |
juce_UseDebuggingNewOperator csl::MIDIIn * CSLMIDIComponent::mIn |
MIDI input.
Definition at line 73 of file CSLMIDIComponent.h.
Referenced by CSLMIDIComponent(), update(), and ~CSLMIDIComponent().
char * CSLMIDIComponent::cLin |
message to add
Definition at line 74 of file CSLMIDIComponent.h.
Referenced by CSLMIDIComponent(), timerCallback(), and update().
bool CSLMIDIComponent::filt |
filter note on-offs
Definition at line 75 of file CSLMIDIComponent.h.
Referenced by buttonClicked(), CSLMIDIComponent(), and update().
AudioDeviceManager CSLMIDIComponent::mAudioDeviceManager |
bool CSLMIDIComponent::changed |
Definition at line 83 of file CSLMIDIComponent.h.
Referenced by timerCallback(), and update().
TextButton * CSLMIDIComponent::quitButton |
Definition at line 88 of file CSLMIDIComponent.h.
Referenced by buttonClicked(), CSLMIDIComponent(), resized(), and ~CSLMIDIComponent().
Label* CSLMIDIComponent::label |
Definition at line 89 of file CSLMIDIComponent.h.
Referenced by CSLMIDIComponent(), resized(), and ~CSLMIDIComponent().
TextEditor* CSLMIDIComponent::textEditor |
Definition at line 90 of file CSLMIDIComponent.h.
Referenced by buttonClicked(), CSLMIDIComponent(), resized(), timerCallback(), and ~CSLMIDIComponent().
TextButton * CSLMIDIComponent::clearButton |
Definition at line 91 of file CSLMIDIComponent.h.
Referenced by buttonClicked(), CSLMIDIComponent(), resized(), and ~CSLMIDIComponent().
AudioDeviceSelectorComponent * CSLMIDIComponent::audioDeviceSelector |
Definition at line 92 of file CSLMIDIComponent.h.
Referenced by CSLMIDIComponent(), and ~CSLMIDIComponent().
ToggleButton* CSLMIDIComponent::filtButton |
Definition at line 93 of file CSLMIDIComponent.h.
Referenced by buttonClicked(), CSLMIDIComponent(), resized(), and ~CSLMIDIComponent().
std::vector<Slider *> CSLMIDIComponent::sliders |
list of my 16 sliders
Definition at line 81 of file CSLMIDIFaderComponent.h.
std::vector<unsigned> CSLMIDIComponent::values |
list of my 16 current values
Definition at line 82 of file CSLMIDIFaderComponent.h.
std::vector<unsigned> CSLMIDIComponent::nextVals |
list of my 16 update values
Definition at line 83 of file CSLMIDIFaderComponent.h.
csl::Buffer CSLMIDIComponent::outBuffer |
Definition at line 85 of file CSLMIDIFaderComponent.h.
Referenced by audioDeviceIOCallback().
bool CSLMIDIComponent::playing |
state flags
Definition at line 86 of file CSLMIDIFaderComponent.h.
Referenced by audioDeviceIOCallback(), and startStop().
unsigned CSLMIDIComponent::offset |
what # is fader 0?
Definition at line 87 of file CSLMIDIFaderComponent.h.
GThread* CSLMIDIComponent::playThread |
Definition at line 88 of file CSLMIDIFaderComponent.h.
Referenced by startStop().
TextButton* CSLMIDIComponent::selButton |
Definition at line 94 of file CSLMIDIFaderComponent.h.
Slider* CSLMIDIComponent::slider |
Definition at line 97 of file CSLMIDIFaderComponent.h.
Referenced by sliderValueChanged().
Slider* CSLMIDIComponent::slider2 |
Definition at line 98 of file CSLMIDIFaderComponent.h.
Referenced by sliderValueChanged().
Slider* CSLMIDIComponent::slider3 |
Definition at line 99 of file CSLMIDIFaderComponent.h.
Referenced by sliderValueChanged().
Slider* CSLMIDIComponent::slider4 |
Definition at line 100 of file CSLMIDIFaderComponent.h.
Referenced by sliderValueChanged().
Slider* CSLMIDIComponent::slider5 |
Definition at line 101 of file CSLMIDIFaderComponent.h.
Referenced by sliderValueChanged().
Slider* CSLMIDIComponent::slider6 |
Definition at line 102 of file CSLMIDIFaderComponent.h.
Referenced by sliderValueChanged().
Slider* CSLMIDIComponent::slider7 |
Definition at line 103 of file CSLMIDIFaderComponent.h.
Referenced by sliderValueChanged().
Slider* CSLMIDIComponent::slider8 |
Definition at line 104 of file CSLMIDIFaderComponent.h.
Referenced by sliderValueChanged().
Slider* CSLMIDIComponent::slider9 |
Definition at line 105 of file CSLMIDIFaderComponent.h.
Referenced by sliderValueChanged().
Slider* CSLMIDIComponent::slider10 |
Definition at line 106 of file CSLMIDIFaderComponent.h.
Referenced by sliderValueChanged().
Slider* CSLMIDIComponent::slider11 |
Definition at line 107 of file CSLMIDIFaderComponent.h.
Referenced by sliderValueChanged().
Slider* CSLMIDIComponent::slider12 |
Definition at line 108 of file CSLMIDIFaderComponent.h.
Referenced by sliderValueChanged().
Slider* CSLMIDIComponent::slider13 |
Definition at line 109 of file CSLMIDIFaderComponent.h.
Referenced by sliderValueChanged().
Slider* CSLMIDIComponent::slider14 |
Definition at line 110 of file CSLMIDIFaderComponent.h.
Referenced by sliderValueChanged().
Slider* CSLMIDIComponent::slider15 |
Definition at line 111 of file CSLMIDIFaderComponent.h.
Referenced by sliderValueChanged().
Slider* CSLMIDIComponent::slider16 |
Definition at line 112 of file CSLMIDIFaderComponent.h.
Referenced by sliderValueChanged().
Label* CSLMIDIComponent::label2 |
Definition at line 113 of file CSLMIDIFaderComponent.h.
|
inherited |
virtual destructor (don't notify or delete observers in this version)
max update rate
Definition at line 299 of file CGestalt.h.
Referenced by csl::Model::attachObserver(), and csl::Observer::Observer().
|
inherited |
key selector (e.g., MIDI chan) I receive update() mesages from my model;
Definition at line 302 of file CGestalt.h.
Referenced by csl::Model::attachObserver(), and csl::Observer::Observer().