uMIDI
The swiss army knife for quick and easy developement of MIDI applications.
Data Fields
midi_event_handlers Struct Reference

Pointers to MIDI message handling callbacks. More...

#include <midi.h>

Collaboration diagram for midi_event_handlers:
Collaboration graph

Data Fields

void(* control_change )(midi_value_t controller, midi_value_t value)
 
void(* note_off )(midi_value_t note, midi_value_t velocity)
 
void(* note_on )(midi_value_t note, midi_value_t velocity)
 
void(* program_change )(midi_value_t program)
 

Detailed Description

Pointers to MIDI message handling callbacks.

These event handlers are automatically called by ISR(USARTE0_RXC_vect) whenever a MIDI message was received successfully.

See also
ISR(USARTE0_RXC_vect)

Field Documentation

◆ control_change

void(* midi_event_handlers::control_change) (midi_value_t controller, midi_value_t value)

Callback for control changes

Parameters
controllerthe changed MIDI controller's number
valuethe new MIDI controller value

◆ note_off

void(* midi_event_handlers::note_off) (midi_value_t note, midi_value_t velocity)

Callback for note off messges

Parameters
notethe MIDI note that was turned off
velocityvelocity of the key press

◆ note_on

void(* midi_event_handlers::note_on) (midi_value_t note, midi_value_t velocity)

Callback for not on messages

Parameters
notethe MIDI note that was turned on
velocityvelocity of the key press

◆ program_change

void(* midi_event_handlers::program_change) (midi_value_t program)

Callback for program changes

Parameters
notethe MIDI program to load

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