This repository has been archived by the owner on Sep 16, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fiddle with replayer headers a bit in preparation for exporter
- Loading branch information
Showing
2 changed files
with
45 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#ifndef AXIOM_COMMON_H | ||
#define AXIOM_COMMON_H | ||
|
||
#include <stdbool.h> | ||
#include <stdint.h> | ||
|
||
typedef struct { | ||
float left; | ||
float right; | ||
uint8_t form; | ||
} AxiomNum; | ||
|
||
typedef enum : uint8_t { | ||
AXIOM_EVENT_NOTE_ON, | ||
AXIOM_EVENT_NOTE_OFF, | ||
AXIOM_EVENT_POLYPHONIC_AFTERTOUCH, | ||
AXIOM_EVENT_CHANNEL_AFTERTOUCH, | ||
AXIOM_EVENT_PITCH_WHEEL | ||
} AxiomMidiEventType; | ||
|
||
typedef struct { | ||
AxiomMidiEventType type; | ||
uint8_t channel; | ||
uint8_t note; | ||
uint8_t param; | ||
} AxiomMidiEvent; | ||
|
||
typedef struct { | ||
uint8_t event_count; | ||
AxiomMidiEvent events[16]; | ||
} AxiomMidi; | ||
|
||
#endif |