CSL
6.0
|
CMIDIMessage class (mapped to juce::MidiMessage) More...
#include <MIDIIOJ.h>
Public Member Functions | |
CMIDIMessage () | |
CMIDIMessage (CMIDIMessageType t, unsigned ch, unsigned d1, unsigned d2) | |
bool | isNoteOn () |
bool flags for events More... | |
bool | isNoteOff () |
bool | isNoteOnOff () |
bool | isPolyTouch () |
bool | isControlChange () |
bool | isProgramChange () |
bool | isAftertouch () |
bool | isPitchWheel () |
bool | isSysEX () |
unsigned | getCommand () |
note accessors More... | |
unsigned | getNote () |
unsigned | getVelocity () |
unsigned | getPolyAftertouch () |
unsigned | getControlFunction () |
unsigned | getControlValue () |
unsigned | getProgramNumber () |
unsigned | getAftertouch () |
unsigned | getPitchWheel () |
float | getFrequency () |
float | getVelocityFloat () |
has range of [0.0 1.0] mapped to [0 127] Data fields More... | |
Public Attributes | |
CMIDIMessageType | message |
event type More... | |
unsigned | command |
unsigned | channel |
0-indexed, so from 0 to 15 More... | |
unsigned | data1 |
unsigned | data2 |
float | time |
timestamp in sec More... | |
CMIDIMessage class (mapped to juce::MidiMessage)
CMIDIMessage::CMIDIMessage | ( | ) |
Definition at line 15 of file MIDIIOJ.cpp.
csl::CMIDIMessage::CMIDIMessage | ( | CMIDIMessageType | t, |
unsigned | ch, | ||
unsigned | d1, | ||
unsigned | d2 | ||
) |
bool CMIDIMessage::isNoteOn | ( | ) |
bool flags for events
Definition at line 19 of file MIDIIOJ.cpp.
References command, and csl::kNoteOn.
Referenced by csl::MIDIPlayer::start().
bool CMIDIMessage::isNoteOff | ( | ) |
Definition at line 20 of file MIDIIOJ.cpp.
References command, and csl::kNoteOff.
bool CMIDIMessage::isNoteOnOff | ( | ) |
Definition at line 21 of file MIDIIOJ.cpp.
References command, csl::kNoteOff, and csl::kNoteOn.
Referenced by CSLMIDIComponent::update().
bool CMIDIMessage::isPolyTouch | ( | ) |
Definition at line 23 of file MIDIIOJ.cpp.
References command, and csl::kPolyTouch.
bool CMIDIMessage::isControlChange | ( | ) |
Definition at line 24 of file MIDIIOJ.cpp.
References command, and csl::kControlChange.
bool CMIDIMessage::isProgramChange | ( | ) |
Definition at line 25 of file MIDIIOJ.cpp.
References command, and csl::kProgramChange.
bool CMIDIMessage::isAftertouch | ( | ) |
Definition at line 26 of file MIDIIOJ.cpp.
References command, and csl::kAftertouch.
bool CMIDIMessage::isPitchWheel | ( | ) |
Definition at line 27 of file MIDIIOJ.cpp.
References command, and csl::kPitchWheel.
bool CMIDIMessage::isSysEX | ( | ) |
Definition at line 28 of file MIDIIOJ.cpp.
References command, and csl::kSysEX.
unsigned CMIDIMessage::getCommand | ( | ) |
unsigned CMIDIMessage::getNote | ( | ) |
Definition at line 31 of file MIDIIOJ.cpp.
References data1.
Referenced by CSLMIDIComponent::update().
unsigned CMIDIMessage::getVelocity | ( | ) |
Definition at line 32 of file MIDIIOJ.cpp.
References data2.
Referenced by CSLMIDIComponent::update().
unsigned CMIDIMessage::getPolyAftertouch | ( | ) |
Definition at line 33 of file MIDIIOJ.cpp.
References data2.
unsigned CMIDIMessage::getControlFunction | ( | ) |
Definition at line 34 of file MIDIIOJ.cpp.
References data1.
unsigned CMIDIMessage::getControlValue | ( | ) |
Definition at line 35 of file MIDIIOJ.cpp.
References data2.
unsigned CMIDIMessage::getProgramNumber | ( | ) |
Definition at line 36 of file MIDIIOJ.cpp.
References data1.
unsigned CMIDIMessage::getAftertouch | ( | ) |
Definition at line 37 of file MIDIIOJ.cpp.
References data1.
unsigned CMIDIMessage::getPitchWheel | ( | ) |
Definition at line 38 of file MIDIIOJ.cpp.
float CMIDIMessage::getFrequency | ( | ) |
Definition at line 39 of file MIDIIOJ.cpp.
References data1, and csl::keyToFreq().
float CMIDIMessage::getVelocityFloat | ( | ) |
has range of [0.0 1.0] mapped to [0 127] Data fields
Definition at line 40 of file MIDIIOJ.cpp.
References data2.
CMIDIMessageType csl::CMIDIMessage::message |
event type
Definition at line 73 of file MIDIIOJ.h.
Referenced by csl::MIDIIO::clear(), csl::MIDIIO::copyMessage(), csl::MIDIIn::evaluate(), csl::MIDIIO::MIDIIO(), and CSLMIDIComponent::update().
unsigned csl::CMIDIMessage::command |
Definition at line 74 of file MIDIIOJ.h.
Referenced by csl::MIDIIO::copyMessage(), getCommand(), isAftertouch(), isControlChange(), isNoteOff(), isNoteOn(), isNoteOnOff(), isPitchWheel(), isPolyTouch(), isProgramChange(), and isSysEX().
unsigned csl::CMIDIMessage::channel |
0-indexed, so from 0 to 15
Definition at line 75 of file MIDIIOJ.h.
Referenced by csl::MIDIIO::copyMessage(), and csl::MIDIPlayer::start().
unsigned csl::CMIDIMessage::data1 |
Definition at line 76 of file MIDIIOJ.h.
Referenced by csl::MIDIIO::copyMessage(), getAftertouch(), getControlFunction(), getFrequency(), getNote(), getPitchWheel(), getProgramNumber(), and csl::MIDIPlayer::start().
unsigned csl::CMIDIMessage::data2 |
Definition at line 77 of file MIDIIOJ.h.
Referenced by csl::MIDIIO::copyMessage(), getControlValue(), getPitchWheel(), getPolyAftertouch(), getVelocity(), getVelocityFloat(), and csl::MIDIPlayer::start().
float csl::CMIDIMessage::time |
timestamp in sec
Definition at line 78 of file MIDIIOJ.h.
Referenced by csl::MIDIIO::copyMessage(), and csl::MIDIIn::handleIncomingMidiMessage().