CSL 5.2

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

Classes | Namespaces | Macros | Enumerations | Functions
MIDIIOP.h File Reference
`#include "CSL_Types.h"`
`#include "CGestalt.h"`
`#include "math.h"`
`#include "portmidi.h"`
`#include "porttime.h"`

Go to the source code of this file.

## Classes
class | csl::CSL_MIDIMessage
| CSL_MIDIMessage. More...
class | csl::MIDIIO
| MIDIIO class: superclass of in and out; has a message buffer and current messages It's a model so you can observe it. Uses mMsg.CMIDIMessageType as a status flag. More...
class | csl::MIDIIn
| MIDIIn class is-a MidiInputCallback too, and an "input-ready" flag. More...
class | csl::MIDIOut
| MIDIOut class write msgs out to a device (or file) More...

## Namespaces
namespace | csl
| AdditiveInstrument.h – Sum-of-sines synthesis instrument class.

## Macros
#define | OUTPUT_BUFFER_SIZE 0
| MIDIIO.h – MIDI IO using PortMIDI.
#define | DRIVER_INFO NULL
#define | TIME_PROC Pt_Time
#define | TIME_INFO NULL
#define | TIME_START Pt_Start(1, 0, 0) /* timer started w/millisecond accuracy */
#define | MIDI_THRU NULL

## Enumerations
enum | csl::CSL_MIDIMessageType { csl::kNone = 0, csl::kNoteOff = 8, csl::kNoteOn = 9, csl::kPolyTouch = 10, csl::kControlChange = 11, csl::kProgramChange = 12, csl::kAftertouch = 13, csl::kPitchWheel = 14, csl::kSysEX = 15 }
| CSL_MIDIMessageType. More...

## Functions
void | csl::copy_CSL_MIDIMessage (CSL_MIDIMessage *source, CSL_MIDIMessage *dest)
| copy_CSL_MIDIMessage – copies CSL_MIDIMessage
void | csl::CSL_MIDIMessageToPmEvent (CSL_MIDIMessage *cslMIDI, PmEvent *event)
| CSL_MIDIMessageToPmEvent – converts CSL_MIDIMessage to PmEvent.
void | csl::PmEventToCSL_MIDIMessage (PmEvent *event, CSL_MIDIMessage *cslMIDI)
| PmEventToCSL_MIDIMessage – converts PmEvent to CSL_MIDIMessage.
unsigned | csl::Message_ChannelToStatus (CSL_MIDIMessageType message, unsigned channel)
| Message_ChannelToStatus – converts from message and channel to status byte.

## Macro Definition Documentation

#define OUTPUT_BUFFER_SIZE 0

MIDIIO.h – MIDI IO using PortMIDI.

See the copyright notice and acknowledgment of authors in the file COPYRIGHT

Definition at line 19 of file MIDIIOP.h.

#define DRIVER_INFO NULL

Definition at line 20 of file MIDIIOP.h.

Referenced by csl::MIDIIn::open(), and csl::MIDIOut::open().

#define TIME_PROC Pt_Time

Definition at line 21 of file MIDIIOP.h.

Referenced by csl::MIDIIn::open(), csl::MIDIOut::open(), csl::MIDIOut::write_Aftertouch(), csl::MIDIOut::write_ControlChange(), csl::MIDIOut::write_NoteOff(), csl::MIDIOut::write_NoteOn(), csl::MIDIOut::write_PitchWheel(), csl::MIDIOut::write_PolyTouch(), and csl::MIDIOut::write_ProgramChange().

#define TIME_INFO NULL

Definition at line 22 of file MIDIIOP.h.

Referenced by csl::MIDIIn::open(), and csl::MIDIOut::open().

#define TIME_START Pt_Start(1, 0, 0) /* timer started w/millisecond accuracy */

Definition at line 23 of file MIDIIOP.h.

Referenced by csl::MIDIIn::open(), and csl::MIDIOut::open().

#define MIDI_THRU NULL

Definition at line 24 of file MIDIIOP.h.