FastLED 3.9.7
Loading...
Searching...
No Matches
Output

Detailed Description

Functions

void MidiInterface< Transport, _Settings, _Platform >::send (const MidiMessage &)
 Send a MIDI message.
 
void MidiInterface< Transport, _Settings, _Platform >::send (MidiType inType, DataByte inData1, DataByte inData2, Channel inChannel)
 Generate and send a MIDI message from the values given.
 
void MidiInterface< Transport, _Settings, _Platform >::sendNoteOn (DataByte inNoteNumber, DataByte inVelocity, Channel inChannel)
 Send a Note On message.
 
void MidiInterface< Transport, _Settings, _Platform >::sendNoteOff (DataByte inNoteNumber, DataByte inVelocity, Channel inChannel)
 Send a Note Off message.
 
void MidiInterface< Transport, _Settings, _Platform >::sendProgramChange (DataByte inProgramNumber, Channel inChannel)
 Send a Program Change message.
 
void MidiInterface< Transport, _Settings, _Platform >::sendControlChange (DataByte inControlNumber, DataByte inControlValue, Channel inChannel)
 Send a Control Change message.
 
void MidiInterface< Transport, _Settings, _Platform >::sendPolyPressure (DataByte inNoteNumber, DataByte inPressure, Channel inChannel)
 Send a Polyphonic AfterTouch message (applies to a specified note)
 
void MidiInterface< Transport, _Settings, _Platform >::sendAfterTouch (DataByte inPressure, Channel inChannel)
 Send a MonoPhonic AfterTouch message (applies to all notes)
 
void MidiInterface< Transport, _Settings, _Platform >::sendAfterTouch (DataByte inNoteNumber, DataByte inPressure, Channel inChannel)
 Send a Polyphonic AfterTouch message (applies to a specified note)
 
void MidiInterface< Transport, _Settings, _Platform >::sendPitchBend (int inPitchValue, Channel inChannel)
 Send a Pitch Bend message using a signed integer value.
 
void MidiInterface< Transport, _Settings, _Platform >::sendPitchBend (double inPitchValue, Channel inChannel)
 Send a Pitch Bend message using a floating point value.
 
void MidiInterface< Transport, _Settings, _Platform >::sendSysEx (unsigned inLength, const byte *inArray, bool inArrayContainsBoundaries=false)
 Generate and send a System Exclusive frame.
 
void MidiInterface< Transport, _Settings, _Platform >::sendTuneRequest ()
 Send a Tune Request message.
 
void MidiInterface< Transport, _Settings, _Platform >::sendTimeCodeQuarterFrame (DataByte inTypeNibble, DataByte inValuesNibble)
 Send a MIDI Time Code Quarter Frame.
 
void MidiInterface< Transport, _Settings, _Platform >::sendTimeCodeQuarterFrame (DataByte inData)
 Send a MIDI Time Code Quarter Frame.
 
void MidiInterface< Transport, _Settings, _Platform >::sendSongPosition (unsigned inBeats)
 Send a Song Position Pointer message.
 
void MidiInterface< Transport, _Settings, _Platform >::sendSongSelect (DataByte inSongNumber)
 Send a Song Select message.
 
void MidiInterface< Transport, _Settings, _Platform >::sendCommon (MidiType inType, unsigned=0)
 Send a Common message. Common messages reset the running status.
 
void MidiInterface< Transport, _Settings, _Platform >::sendRealTime (MidiType inType)
 Send a Real Time (one byte) message.
 
void MidiInterface< Transport, _Settings, _Platform >::beginRpn (unsigned inNumber, Channel inChannel)
 Start a Registered Parameter Number frame.
 
void MidiInterface< Transport, _Settings, _Platform >::sendRpnValue (unsigned inValue, Channel inChannel)
 Send a 14-bit value for the currently selected RPN number.
 
void MidiInterface< Transport, _Settings, _Platform >::sendRpnValue (byte inMsb, byte inLsb, Channel inChannel)
 Send separate MSB/LSB values for the currently selected RPN number.
 
void MidiInterface< Transport, _Settings, _Platform >::sendRpnIncrement (byte inAmount, Channel inChannel)
 
void MidiInterface< Transport, _Settings, _Platform >::sendRpnDecrement (byte inAmount, Channel inChannel)
 
void MidiInterface< Transport, _Settings, _Platform >::endRpn (Channel inChannel)
 Terminate an RPN frame. This will send a Null Function to deselect the currently selected RPN.
 
void MidiInterface< Transport, _Settings, _Platform >::beginNrpn (unsigned inNumber, Channel inChannel)
 Start a Non-Registered Parameter Number frame.
 
void MidiInterface< Transport, _Settings, _Platform >::sendNrpnValue (unsigned inValue, Channel inChannel)
 Send a 14-bit value for the currently selected NRPN number.
 
void MidiInterface< Transport, _Settings, _Platform >::sendNrpnValue (byte inMsb, byte inLsb, Channel inChannel)
 Send separate MSB/LSB values for the currently selected NRPN number.
 
void MidiInterface< Transport, _Settings, _Platform >::sendNrpnIncrement (byte inAmount, Channel inChannel)
 
void MidiInterface< Transport, _Settings, _Platform >::sendNrpnDecrement (byte inAmount, Channel inChannel)
 
void MidiInterface< Transport, _Settings, _Platform >::endNrpn (Channel inChannel)
 Terminate an NRPN frame. This will send a Null Function to deselect the currently selected NRPN.
 

Function Documentation

◆ beginNrpn()

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::beginNrpn ( unsigned inNumber,
Channel inChannel )
inline

Start a Non-Registered Parameter Number frame.

Parameters
inNumberThe 14-bit number of the NRPN you want to select.
inChannelThe channel on which the message will be sent (1 to 16).

Definition at line 603 of file MIDI.hpp.

◆ beginRpn()

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::beginRpn ( unsigned inNumber,
Channel inChannel )
inline

Start a Registered Parameter Number frame.

Parameters
inNumberThe 14-bit number of the RPN you want to select.
inChannelThe channel on which the message will be sent (1 to 16).

Definition at line 523 of file MIDI.hpp.

◆ endNrpn()

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::endNrpn ( Channel inChannel)
inline

Terminate an NRPN frame. This will send a Null Function to deselect the currently selected NRPN.

Parameters
inChannelThe channel on which the message will be sent (1 to 16).

Definition at line 669 of file MIDI.hpp.

◆ endRpn()

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::endRpn ( Channel inChannel)
inline

Terminate an RPN frame. This will send a Null Function to deselect the currently selected RPN.

Parameters
inChannelThe channel on which the message will be sent (1 to 16).

Definition at line 589 of file MIDI.hpp.

◆ send() [1/2]

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::send ( const MidiMessage & inMessage)
inline

Send a MIDI message.

Parameters
inMessageThe message

This method is used when you want to send a Message that has not been constructed by the library, but by an external source. This method does not check against any of the constraints. Typically this function is use by MIDI Bridges taking MIDI messages and passing them thru.

Definition at line 118 of file MIDI.hpp.

◆ send() [2/2]

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::send ( MidiType inType,
DataByte inData1,
DataByte inData2,
Channel inChannel )

Generate and send a MIDI message from the values given.

Parameters
inTypeThe message type (see type defines for reference)
inData1The first data byte.
inData2The second data byte (if the message contains only 1 data byte, set this one to 0).
inChannelThe output channel on which the message will be sent (values from 1 to 16). Note: you cannot send to OMNI.

This is an internal method, use it only if you need to send raw data from your code, at your own risks.

Definition at line 160 of file MIDI.hpp.

◆ sendAfterTouch() [1/2]

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendAfterTouch ( DataByte inNoteNumber,
DataByte inPressure,
Channel inChannel )
inline

Send a Polyphonic AfterTouch message (applies to a specified note)

Parameters
inNoteNumberThe note to apply AfterTouch to (0 to 127).
inPressureThe amount of AfterTouch to apply (0 to 127).
inChannelThe channel on which the message will be sent (1 to 16).
See also
Replaces sendPolyPressure (which is now deprecated).

Definition at line 310 of file MIDI.hpp.

◆ sendAfterTouch() [2/2]

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendAfterTouch ( DataByte inPressure,
Channel inChannel )
inline

Send a MonoPhonic AfterTouch message (applies to all notes)

Parameters
inPressureThe amount of AfterTouch to apply to all notes.
inChannelThe channel on which the message will be sent (1 to 16).

Definition at line 297 of file MIDI.hpp.

◆ sendCommon()

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendCommon ( MidiType inType,
unsigned inData1 = 0 )
inline

Send a Common message. Common messages reset the running status.

Parameters
inTypeThe available Common types are: TimeCodeQuarterFrame, SongPosition, SongSelect and TuneRequest.
See also
MidiType
Parameters
inData1The byte that goes with the common message.

Definition at line 443 of file MIDI.hpp.

◆ sendControlChange()

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendControlChange ( DataByte inControlNumber,
DataByte inControlValue,
Channel inChannel )
inline

Send a Control Change message.

Parameters
inControlNumberThe controller number (0 to 127).
inControlValueThe value for the specified controller (0 to 127).
inChannelThe channel on which the message will be sent (1 to 16).
See also
MidiControlChangeNumber

Definition at line 270 of file MIDI.hpp.

◆ sendNoteOff()

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendNoteOff ( DataByte inNoteNumber,
DataByte inVelocity,
Channel inChannel )
inline

Send a Note Off message.

Parameters
inNoteNumberPitch value in the MIDI format (0 to 127).
inVelocityRelease velocity (0 to 127).
inChannelThe channel on which the message will be sent (1 to 16).

Note: you can send NoteOn with zero velocity to make a NoteOff, this is based on the Running Status principle, to avoid sending status messages and thus sending only NoteOn data. sendNoteOff will always send a real NoteOff message. Take a look at the values, names and frequencies of notes here: http://www.phys.unsw.edu.au/jw/notes.html

Definition at line 245 of file MIDI.hpp.

◆ sendNoteOn()

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendNoteOn ( DataByte inNoteNumber,
DataByte inVelocity,
Channel inChannel )
inline

Send a Note On message.

Parameters
inNoteNumberPitch value in the MIDI format (0 to 127).
inVelocityNote attack velocity (0 to 127). A NoteOn with 0 velocity is considered as a NoteOff.
inChannelThe channel on which the message will be sent (1 to 16).

Take a look at the values, names and frequencies of notes here: http://www.phys.unsw.edu.au/jw/notes.html

Definition at line 226 of file MIDI.hpp.

◆ sendNrpnDecrement()

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendNrpnDecrement ( byte inAmount,
Channel inChannel )
inline

Definition at line 658 of file MIDI.hpp.

◆ sendNrpnIncrement()

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendNrpnIncrement ( byte inAmount,
Channel inChannel )
inline

Definition at line 648 of file MIDI.hpp.

◆ sendNrpnValue() [1/2]

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendNrpnValue ( byte inMsb,
byte inLsb,
Channel inChannel )
inline

Send separate MSB/LSB values for the currently selected NRPN number.

Parameters
inMsbThe MSB part of the value to send. Meaning depends on NRPN number.
inLsbThe LSB part of the value to send. Meaning depends on NRPN number.
inChannelThe channel on which the message will be sent (1 to 16).

Definition at line 636 of file MIDI.hpp.

◆ sendNrpnValue() [2/2]

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendNrpnValue ( unsigned inValue,
Channel inChannel )
inline

Send a 14-bit value for the currently selected NRPN number.

Parameters
inValueThe 14-bit value of the selected NRPN.
inChannelThe channel on which the message will be sent (1 to 16).

Definition at line 621 of file MIDI.hpp.

◆ sendPitchBend() [1/2]

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendPitchBend ( double inPitchValue,
Channel inChannel )
inline

Send a Pitch Bend message using a floating point value.

Parameters
inPitchValueThe amount of bend to send (in a floating point format), between -1.0f (maximum downwards bend) and +1.0f (max upwards bend), center value is 0.0f.
inChannelThe channel on which the message will be sent (1 to 16).

Definition at line 339 of file MIDI.hpp.

◆ sendPitchBend() [2/2]

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendPitchBend ( int inPitchValue,
Channel inChannel )
inline

Send a Pitch Bend message using a signed integer value.

Parameters
inPitchValueThe amount of bend to send (in a signed integer format), between MIDI_PITCHBEND_MIN and MIDI_PITCHBEND_MAX, center value is 0.
inChannelThe channel on which the message will be sent (1 to 16).

Definition at line 324 of file MIDI.hpp.

◆ sendPolyPressure()

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendPolyPressure ( DataByte inNoteNumber,
DataByte inPressure,
Channel inChannel )
inline

Send a Polyphonic AfterTouch message (applies to a specified note)

Parameters
inNoteNumberThe note to apply AfterTouch to (0 to 127).
inPressureThe amount of AfterTouch to apply (0 to 127).
inChannelThe channel on which the message will be sent (1 to 16). Note: this method is deprecated and will be removed in a future revision of the library,
See also
sendAfterTouch to send polyphonic and monophonic AfterTouch messages.

Definition at line 285 of file MIDI.hpp.

◆ sendProgramChange()

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendProgramChange ( DataByte inProgramNumber,
Channel inChannel )
inline

Send a Program Change message.

Parameters
inProgramNumberThe Program to select (0 to 127).
inChannelThe channel on which the message will be sent (1 to 16).

Definition at line 257 of file MIDI.hpp.

◆ sendRealTime()

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendRealTime ( MidiType inType)
inline

Send a Real Time (one byte) message.

Parameters
inTypeThe available Real Time types are: Start, Stop, Continue, Clock, ActiveSensing and SystemReset.
See also
MidiType

Definition at line 492 of file MIDI.hpp.

◆ sendRpnDecrement()

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendRpnDecrement ( byte inAmount,
Channel inChannel )
inline

Definition at line 578 of file MIDI.hpp.

◆ sendRpnIncrement()

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendRpnIncrement ( byte inAmount,
Channel inChannel )
inline

Definition at line 568 of file MIDI.hpp.

◆ sendRpnValue() [1/2]

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendRpnValue ( byte inMsb,
byte inLsb,
Channel inChannel )
inline

Send separate MSB/LSB values for the currently selected RPN number.

Parameters
inMsbThe MSB part of the value to send. Meaning depends on RPN number.
inLsbThe LSB part of the value to send. Meaning depends on RPN number.
inChannelThe channel on which the message will be sent (1 to 16).

Definition at line 556 of file MIDI.hpp.

◆ sendRpnValue() [2/2]

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendRpnValue ( unsigned inValue,
Channel inChannel )
inline

Send a 14-bit value for the currently selected RPN number.

Parameters
inValueThe 14-bit value of the selected RPN.
inChannelThe channel on which the message will be sent (1 to 16).

Definition at line 541 of file MIDI.hpp.

◆ sendSongPosition()

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendSongPosition ( unsigned inBeats)
inline

Send a Song Position Pointer message.

Parameters
inBeatsThe number of beats since the start of the song.

Definition at line 423 of file MIDI.hpp.

◆ sendSongSelect()

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendSongSelect ( DataByte inSongNumber)
inline

Send a Song Select message.

Definition at line 430 of file MIDI.hpp.

◆ sendSysEx()

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendSysEx ( unsigned inLength,
const byte * inArray,
bool inArrayContainsBoundaries = false )
inline

Generate and send a System Exclusive frame.

Parameters
inLengthThe size of the array to send
inArrayThe byte array containing the data to send
inArrayContainsBoundariesWhen set to 'true', 0xf0 & 0xf7 bytes (start & stop SysEx) will NOT be sent (and therefore must be included in the array). default value for ArrayContainsBoundaries is set to 'false' for compatibility with previous versions of the library.

Definition at line 357 of file MIDI.hpp.

◆ sendTimeCodeQuarterFrame() [1/2]

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendTimeCodeQuarterFrame ( DataByte inData)
inline

Send a MIDI Time Code Quarter Frame.

See MIDI Specification for more information.

Parameters
inDataif you want to encode directly the nibbles in your program, you can send the byte here.

Definition at line 414 of file MIDI.hpp.

◆ sendTimeCodeQuarterFrame() [2/2]

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendTimeCodeQuarterFrame ( DataByte inTypeNibble,
DataByte inValuesNibble )
inline

Send a MIDI Time Code Quarter Frame.

Parameters
inTypeNibbleMTC type
inValuesNibbleMTC data See MIDI Specification for more information.

Definition at line 400 of file MIDI.hpp.

◆ sendTuneRequest()

template<class Transport , class Settings , class Platform >
void MidiInterface< Transport, Settings, Platform >::sendTuneRequest ( )
inline

Send a Tune Request message.

When a MIDI unit receives this message, it should tune its oscillators (if equipped with any).

Definition at line 388 of file MIDI.hpp.