#include <cs_glue.hpp>
Inherited by CsoundMidiInputStream.
Public Member Functions
- CsoundMidiInputBuffer (unsigned char *buf, int bufSize)
- void SendChannelPressure (int channel, int value)
- void SendControlChange (int channel, int ctl, int value)
- void SendMessage (int status, int channel, int data1, int data2)
- void SendMessage (int msg)
- void SendNoteOff (int channel, int key, int velocity)
- void SendNoteOff (int channel, int key)
- void SendNoteOn (int channel, int key, int velocity)
- void SendPitchBend (int channel, int value)
- void SendPolyphonicPressure (int channel, int key, int value)
- void SendProgramChange (int channel, int pgm)
- ~CsoundMidiInputBuffer ()
Protected Member Functions
Private Attributes
Friends
Constructor & Destructor Documentation
CsoundMidiInputBuffer::CsoundMidiInputBuffer |
( |
unsigned char * |
buf, |
|
|
int |
bufSize | |
|
) |
| | |
CsoundMidiInputBuffer::~CsoundMidiInputBuffer |
( |
|
) |
|
Member Function Documentation
int CsoundMidiInputBuffer::GetMidiData |
( |
unsigned char * |
buf, |
|
|
int |
nBytes | |
|
) |
| | [protected] |
Copies at most 'nBytes' bytes of MIDI data from the buffer to 'buf'. Returns the number of bytes copied.
void CsoundMidiInputBuffer::SendChannelPressure |
( |
int |
channel, |
|
|
int |
value | |
|
) |
| | |
Sets channel pressure to 'value' (0 to 127) on 'channel' (1 to 16).
void CsoundMidiInputBuffer::SendControlChange |
( |
int |
channel, |
|
|
int |
ctl, |
|
|
int |
value | |
|
) |
| | |
Sets controller 'ctl' (0 to 127) to 'value' (0 to 127) on 'channel' (1 to 16).
void CsoundMidiInputBuffer::SendMessage |
( |
int |
status, |
|
|
int |
channel, |
|
|
int |
data1, |
|
|
int |
data2 | |
|
) |
| | |
Sends a MIDI message; 'channel' should be in the range 1 to 16, and data1 and data2 should be in the range 0 to 127.
void CsoundMidiInputBuffer::SendMessage |
( |
int |
msg |
) |
|
Sends a MIDI message, 'msg' is calculated as follows: STATUS + DATA1 * 256 + DATA2 * 65536
void CsoundMidiInputBuffer::SendNoteOff |
( |
int |
channel, |
|
|
int |
key, |
|
|
int |
velocity | |
|
) |
| | |
Sends a note-off message on 'channel' (1 to 16) for 'key' (0 to 127) with 'velocity' (0 to 127).
void CsoundMidiInputBuffer::SendNoteOff |
( |
int |
channel, |
|
|
int |
key | |
|
) |
| | |
Sends a note-off message on 'channel' (1 to 16) for 'key', using a 0x90 status with zero velocity.
void CsoundMidiInputBuffer::SendNoteOn |
( |
int |
channel, |
|
|
int |
key, |
|
|
int |
velocity | |
|
) |
| | |
Sends a note-on message on 'channel' (1 to 16) for 'key' (0 to 127) with 'velocity' (0 to 127).
void CsoundMidiInputBuffer::SendPitchBend |
( |
int |
channel, |
|
|
int |
value | |
|
) |
| | |
Sets pitch bend to 'value' (-8192 to 8191) on 'channel' (1 to 16).
void CsoundMidiInputBuffer::SendPolyphonicPressure |
( |
int |
channel, |
|
|
int |
key, |
|
|
int |
value | |
|
) |
| | |
Sets polyphonic pressure on 'channel' (1 to 16) to 'value' (0 to 127) for 'key' (0 to 127).
void CsoundMidiInputBuffer::SendProgramChange |
( |
int |
channel, |
|
|
int |
pgm | |
|
) |
| | |
Sends program change to 'pgm' (1 to 128) on 'channel' (1 to 16).
Friends And Related Function Documentation
Field Documentation