Entropy Piano Tuner  1.1.3 (documentation not yet complete) An open-source experimental software for piano tuning by entropy minimization

Structure of the data associated with a MIDI event. More...

#include <midiadapter.h>

## Public Attributes

MidiEvent event
Midi event, encoded by the enumeration MidiEvent. More...

int byte1
Data byte, usually representing the MIDI key index. More...

int byte2
Data byte, usually representing the keystroke intensity. More...

double deltatime
Time elapsed since the last MIDI event. More...

## Detailed Description

Structure of the data associated with a MIDI event.

MIDI commands consist of three bytes (see e.g. https://ccrma.stanford.edu/~craig/articles/linuxmidi/misc/essenmidi.html) The first byte represents a command, which is translated into one of the enums listed in MidiEvent (see above). The second byte usually represents the key index while the third byte represents the velocity (intensity) of the keystroke.

Definition at line 88 of file midiadapter.h.

## Member Data Documentation

Data byte, usually representing the MIDI key index.

Definition at line 91 of file midiadapter.h.

Data byte, usually representing the keystroke intensity.

Definition at line 92 of file midiadapter.h.

Time elapsed since the last MIDI event.

Definition at line 93 of file midiadapter.h.