Entropy Piano Tuner  1.1.3 (documentation not yet complete)
An open-source experimental software for piano tuning by entropy minimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
MidiAdapter::Data Struct Reference

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

int MidiAdapter::Data::byte1

Data byte, usually representing the MIDI key index.

Definition at line 91 of file midiadapter.h.

int MidiAdapter::Data::byte2

Data byte, usually representing the keystroke intensity.

Definition at line 92 of file midiadapter.h.

double MidiAdapter::Data::deltatime

Time elapsed since the last MIDI event.

Definition at line 93 of file midiadapter.h.

MidiEvent MidiAdapter::Data::event

Midi event, encoded by the enumeration MidiEvent.

Definition at line 90 of file midiadapter.h.


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