CSL  6.0
csl::CMIDIMessage Class Reference

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...
 

Detailed Description

CMIDIMessage class (mapped to juce::MidiMessage)

Definition at line 46 of file MIDIIOJ.h.

Constructor & Destructor Documentation

CMIDIMessage::CMIDIMessage ( )

Definition at line 15 of file MIDIIOJ.cpp.

csl::CMIDIMessage::CMIDIMessage ( CMIDIMessageType  t,
unsigned  ch,
unsigned  d1,
unsigned  d2 
)

Member Function Documentation

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 ( )

note accessors

Definition at line 30 of file MIDIIOJ.cpp.

References command.

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.

References data1, and data2.

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.

Member Data Documentation

CMIDIMessageType csl::CMIDIMessage::message
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::data2
float csl::CMIDIMessage::time

timestamp in sec

Definition at line 78 of file MIDIIOJ.h.

Referenced by csl::MIDIIO::copyMessage(), and csl::MIDIIn::handleIncomingMidiMessage().


The documentation for this class was generated from the following files: