Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
List of all members
MIDI_Sender< Derived > Class Template Reference

#include <MIDI_Interfaces/MIDI_Sender.hpp>

Detailed Description

template<class Derived>
class MIDI_Sender< Derived >

Statically polymorphic template for classes that send MIDI messages.

Examples
MIDI-Monitor-OLED.ino.

Definition at line 11 of file MIDI_Sender.hpp.

+ Collaboration diagram for MIDI_Sender< Derived >:

Sending MIDI Channel Voice messages

void send (ChannelMessage message)
 Send a MIDI Channel Voice message.
 
void sendChannelMessage (MIDIMessageType m, Channel c, uint8_t d1, uint8_t d2, Cable cable=Cable_1)
 Send a 3-byte MIDI Channel Voice message.
 
void sendChannelMessage (MIDIMessageType m, Channel c, uint8_t d1, Cable cable=Cable_1)
 Send a 2-byte MIDI Channel Voice message.
 
void sendNoteOn (MIDIAddress address, uint8_t velocity)
 Send a MIDI Note On event.
 
void sendNoteOff (MIDIAddress address, uint8_t velocity)
 Send a MIDI Note Off event.
 
void sendKeyPressure (MIDIAddress address, uint8_t pressure)
 Send a MIDI Key Pressure event.
 
void sendControlChange (MIDIAddress address, uint8_t value)
 Send a MIDI Control Change event.
 
void sendProgramChange (MIDIAddress address)
 Send a MIDI Program Change event.
 
void sendProgramChange (MIDIChannelCable address, uint8_t value)
 Send a MIDI Program Change event.
 
void sendChannelPressure (MIDIChannelCable address, uint8_t pressure)
 Send a MIDI Channel Pressure event.
 
void sendPitchBend (MIDIChannelCable address, uint16_t value)
 Send a MIDI Pitch Bend event.
 

Sending MIDI System Common messages

void send (SysCommonMessage message)
 Send a MIDI System Common message.
 
void sendSysCommon (MIDIMessageType m, Cable cable=Cable_1)
 Send a MIDI System Common message.
 
void sendSysCommon (MIDIMessageType m, uint8_t data1, Cable cable=Cable_1)
 Send a MIDI System Common message.
 
void sendSysCommon (MIDIMessageType m, uint8_t data1, uint8_t data2, Cable cable=Cable_1)
 Send a MIDI System Common message.
 
void sendMTCQuarterFrame (uint8_t data, Cable cable=Cable_1)
 Send a MIDI Time Code Quarter Frame.
 
void sendMTCQuarterFrame (uint8_t messageType, uint8_t values, Cable cable=Cable_1)
 Send a MIDI Time Code Quarter Frame.
 
void sendSongPositionPointer (uint16_t spp, Cable cable=Cable_1)
 Send a MIDI Song Position Pointer message.
 
void sendSongSelect (uint8_t song, Cable cable=Cable_1)
 Send a MIDI Song Select message.
 
void sendTuneRequest (Cable cable=Cable_1)
 Send a MIDI Tune Request.
 

Sending MIDI System Exclusive messages

void send (SysExMessage message)
 Send a MIDI System Exclusive message.
 
template<uint16_t N>
void sendSysEx (const uint8_t(&sysexdata)[N], Cable cable=Cable_1)
 Send a MIDI System Exclusive message.
 
void sendSysEx (const uint8_t *data, uint16_t length, Cable cable=Cable_1)
 Send a MIDI System Exclusive message.
 

Sending MIDI Real-Time messages

void send (RealTimeMessage message)
 Send a MIDI Real-Time message.
 
void sendRealTime (MIDIMessageType rt, Cable cable=Cable_1)
 Send a MIDI Real-Time message.
 
void sendRealTime (uint8_t rt, Cable cable=Cable_1)
 Send a MIDI Real-Time message.
 
void sendTimingClock (Cable cable=Cable_1)
 Send a MIDI Timing Clock message.
 
void sendStart (Cable cable=Cable_1)
 Send a MIDI Start message.
 
void sendContinue (Cable cable=Cable_1)
 Send a MIDI Continue message.
 
void sendStop (Cable cable=Cable_1)
 Send a MIDI Stop message.
 
void sendActiveSensing (Cable cable=Cable_1)
 Send a MIDI Active Sensing message.
 
void sendSystemReset (Cable cable=Cable_1)
 Send a MIDI System Reset message.
 

Flushing the MIDI send buffer

void sendNow ()
 Causes all buffered messages to be sent immediately.
 

Deprecated

void sendKP (MIDIAddress address, uint8_t pressure)
 Send a MIDI Key Pressure event.
 
void sendCC (MIDIAddress address, uint8_t value)
 Send a MIDI Control Change event.
 
void sendPC (MIDIAddress address)
 Send a MIDI Program Change event.
 
void sendPC (MIDIChannelCable address, uint8_t value)
 Send a MIDI Program Change event.
 
void sendCP (MIDIChannelCable address, uint8_t pressure)
 Send a MIDI Channel Pressure event.
 
void sendPB (MIDIChannelCable address, uint16_t value)
 Send a MIDI Pitch Bend event.
 

Member Function Documentation

◆ send() [1/4]

template<class Derived >
void send ( ChannelMessage message)

Send a MIDI Channel Voice message.

Examples
MIDI-Monitor-OLED.ino.

◆ sendChannelMessage() [1/2]

template<class Derived >
void sendChannelMessage ( MIDIMessageType m,
Channel c,
uint8_t d1,
uint8_t d2,
Cable cable = Cable_1 )

Send a 3-byte MIDI Channel Voice message.

Parameters
mMIDI message type. [0x80, 0xE0]
cThe MIDI channel. [1, 16]
d1The first data byte. [0, 127]
d2The second data byte. [0, 127]
cableThe MIDI Cable Number. [Cable_1, Cable_16]

◆ sendChannelMessage() [2/2]

template<class Derived >
void sendChannelMessage ( MIDIMessageType m,
Channel c,
uint8_t d1,
Cable cable = Cable_1 )

Send a 2-byte MIDI Channel Voice message.

Parameters
mMIDI message type. [0x80, 0xE0]
cThe MIDI channel. [1, 16]
d1The first data byte. [0, 127]
cableThe MIDI Cable Number. [1, 16]

◆ sendNoteOn()

template<class Derived >
void sendNoteOn ( MIDIAddress address,
uint8_t velocity )

Send a MIDI Note On event.

◆ sendNoteOff()

template<class Derived >
void sendNoteOff ( MIDIAddress address,
uint8_t velocity )

Send a MIDI Note Off event.

◆ sendKeyPressure()

template<class Derived >
void sendKeyPressure ( MIDIAddress address,
uint8_t pressure )

Send a MIDI Key Pressure event.

◆ sendControlChange()

template<class Derived >
void sendControlChange ( MIDIAddress address,
uint8_t value )

Send a MIDI Control Change event.

◆ sendProgramChange() [1/2]

template<class Derived >
void sendProgramChange ( MIDIAddress address)

Send a MIDI Program Change event.

◆ sendProgramChange() [2/2]

template<class Derived >
void sendProgramChange ( MIDIChannelCable address,
uint8_t value )

Send a MIDI Program Change event.

◆ sendChannelPressure()

template<class Derived >
void sendChannelPressure ( MIDIChannelCable address,
uint8_t pressure )

Send a MIDI Channel Pressure event.

◆ sendPitchBend()

template<class Derived >
void sendPitchBend ( MIDIChannelCable address,
uint16_t value )

Send a MIDI Pitch Bend event.

◆ send() [2/4]

template<class Derived >
void send ( SysCommonMessage message)

Send a MIDI System Common message.

◆ sendSysCommon() [1/3]

template<class Derived >
void sendSysCommon ( MIDIMessageType m,
Cable cable = Cable_1 )

Send a MIDI System Common message.

◆ sendSysCommon() [2/3]

template<class Derived >
void sendSysCommon ( MIDIMessageType m,
uint8_t data1,
Cable cable = Cable_1 )

Send a MIDI System Common message.

◆ sendSysCommon() [3/3]

template<class Derived >
void sendSysCommon ( MIDIMessageType m,
uint8_t data1,
uint8_t data2,
Cable cable = Cable_1 )

Send a MIDI System Common message.

◆ sendMTCQuarterFrame() [1/2]

template<class Derived >
void sendMTCQuarterFrame ( uint8_t data,
Cable cable = Cable_1 )

Send a MIDI Time Code Quarter Frame.

◆ sendMTCQuarterFrame() [2/2]

template<class Derived >
void sendMTCQuarterFrame ( uint8_t messageType,
uint8_t values,
Cable cable = Cable_1 )

Send a MIDI Time Code Quarter Frame.

◆ sendSongPositionPointer()

template<class Derived >
void sendSongPositionPointer ( uint16_t spp,
Cable cable = Cable_1 )

Send a MIDI Song Position Pointer message.

◆ sendSongSelect()

template<class Derived >
void sendSongSelect ( uint8_t song,
Cable cable = Cable_1 )

Send a MIDI Song Select message.

◆ sendTuneRequest()

template<class Derived >
void sendTuneRequest ( Cable cable = Cable_1)

Send a MIDI Tune Request.

◆ send() [3/4]

template<class Derived >
void send ( SysExMessage message)

Send a MIDI System Exclusive message.

◆ sendSysEx() [1/2]

template<class Derived >
template<uint16_t N>
void sendSysEx ( const uint8_t(&) sysexdata[N],
Cable cable = Cable_1 )

Send a MIDI System Exclusive message.

◆ sendSysEx() [2/2]

template<class Derived >
void sendSysEx ( const uint8_t * data,
uint16_t length,
Cable cable = Cable_1 )

Send a MIDI System Exclusive message.

◆ send() [4/4]

template<class Derived >
void send ( RealTimeMessage message)

Send a MIDI Real-Time message.

◆ sendRealTime() [1/2]

template<class Derived >
void sendRealTime ( MIDIMessageType rt,
Cable cable = Cable_1 )

Send a MIDI Real-Time message.

◆ sendRealTime() [2/2]

template<class Derived >
void sendRealTime ( uint8_t rt,
Cable cable = Cable_1 )

Send a MIDI Real-Time message.

◆ sendTimingClock()

template<class Derived >
void sendTimingClock ( Cable cable = Cable_1)

Send a MIDI Timing Clock message.

◆ sendStart()

template<class Derived >
void sendStart ( Cable cable = Cable_1)

Send a MIDI Start message.

◆ sendContinue()

template<class Derived >
void sendContinue ( Cable cable = Cable_1)

Send a MIDI Continue message.

◆ sendStop()

template<class Derived >
void sendStop ( Cable cable = Cable_1)

Send a MIDI Stop message.

◆ sendActiveSensing()

template<class Derived >
void sendActiveSensing ( Cable cable = Cable_1)

Send a MIDI Active Sensing message.

◆ sendSystemReset()

template<class Derived >
void sendSystemReset ( Cable cable = Cable_1)

Send a MIDI System Reset message.

◆ sendNow()

template<class Derived >
void sendNow ( )

Causes all buffered messages to be sent immediately.

Note
Doesn't necessarily wait until all data has been sent, it just triggers the transmission, so everything will be transmitted as soon as possible.

◆ sendKP()

template<class Derived >
void sendKP ( MIDIAddress address,
uint8_t pressure )

Send a MIDI Key Pressure event.

◆ sendCC()

template<class Derived >
void sendCC ( MIDIAddress address,
uint8_t value )

Send a MIDI Control Change event.

◆ sendPC() [1/2]

template<class Derived >
void sendPC ( MIDIAddress address)

Send a MIDI Program Change event.

◆ sendPC() [2/2]

template<class Derived >
void sendPC ( MIDIChannelCable address,
uint8_t value )

Send a MIDI Program Change event.

◆ sendCP()

template<class Derived >
void sendCP ( MIDIChannelCable address,
uint8_t pressure )

Send a MIDI Channel Pressure event.

◆ sendPB()

template<class Derived >
void sendPB ( MIDIChannelCable address,
uint16_t value )

Send a MIDI Pitch Bend event.


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