|
|
| AppleMidiServer () |
| | Default constructor: define the MidiAction with setMidiAction() if you want to receive messages.
|
| |
|
| AppleMidiServer (MidiAction *action, int midiPort=-1) |
| | Constructor with the MidiAction which receives the messages; midiPort is an optional channel filter (-1 = all)
|
| |
|
virtual void | allNotesOff (int8_t channel=-1) |
| | Sends a allNotesOff MIDI command (control change 120) to the output.
|
| |
|
bool | begin (int control_port=APPLEMIDI_DEFAULT_PORT) |
| | Starts the server and waits for a remote session: the data port is control_port+1.
|
| |
|
bool | begin (IPAddress adress, int control_port=APPLEMIDI_DEFAULT_PORT, int data_port_opt=-1) |
| | Starts the server and invites the remote Apple Midi peer at the indicated address and control port.
|
| |
|
virtual void | channelPressure (uint8_t value, int8_t channel=-1) |
| | Sends a channelPressure (aftertouch for the whole channel) MIDI command to the output.
|
| |
|
virtual void | controlChange (uint8_t msg, uint8_t value, int8_t channel=-1) |
| | Sends a control change MIDI command to the output: see MidiControlChange.h for the controller numbers.
|
| |
|
void | end () |
| | Stops the UDP communication.
|
| |
|
virtual ConnectionStatus | getConnectionStatus () |
| | Determines the connection status.
|
| |
|
virtual void | localControl (bool active, int8_t channel=-1) |
| | Sends a localControl MIDI command (control change 122) to the output.
|
| |
|
bool | loop () |
| | Processes the received packets and flushes the output: call it in the Arduino loop(). Returns true if data was received.
|
| |
|
virtual void | noteOff (uint8_t note, uint8_t velocity, int8_t channel=-1) |
| | Sends a noteOff MIDI command to the output.
|
| |
|
virtual void | noteOn (uint8_t note, uint8_t velocity, int8_t channel=-1) |
| | Sends a noteOn MIDI command to the output.
|
| |
|
virtual void | pitchBend (uint16_t value, int8_t channel=-1) |
| | Sends a pitchBend MIDI command to the output: value 0..16383, center 8192.
|
| |
|
virtual void | polyPressure (uint8_t note, uint8_t value, int8_t channel) |
| | Sends a polyPressure (polyphonic aftertouch) MIDI command to the output.
|
| |
|
virtual void | polyPressure (uint8_t valuePar, int8_t channel=-1) |
| | Deprecated: poly pressure needs a note - use polyPressure(note, value, channel)
|
| |
|
virtual void | programChange (uint8_t program, int8_t channel=-1) |
| | Sends a programChange MIDI command to the output: program 0..127.
|
| |
|
virtual void | resetAllControllers (int8_t channel=-1) |
| | Sends a resetAllControllers MIDI command (control change 121) to the output.
|
| |
|
virtual void | setDefaultSendingChannel (int8_t channel) |
| | Sets the default channel (0..15) for the sending commands: the default is 0.
|
| |
|
virtual void | setFilterReceivingChannel (int channel) |
| | Activates a filter on receiving messages to the indicated channel.
|
| |
|
virtual void | setMidiAction (MidiAction &MidiAction) |
| | Defines the MidiAction which receives the events of the inbound processing.
|
| |
|
void | setName (const char *name) |
| | Defines the mDNS name (default "AppleMidi")
|
| |
|
void | write (MidiMessage *msg, int len) |
| | write multiple MidiMessage objects to final output
|
| |
template<
class UDPClass = WiFiUDP>
class midi::AppleMidiServer< UDPClass >
A Sender and Receiver which supports Apple Midi using the implementation from midibox. Apple midi uses UDP on a control and a data port. https://github.com/midibox/esp32-idf-applemidi.
by Phil Schatzmann