Small utility library for MIDI functions.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
344 B

  1. #ifndef MIDI_UTILS_H
  2. #define MIDI_UTILS_H
  3. #include <stdio.h>
  4. #include <string.h>
  5. #define MIDI_MESSAGE_NOTEON 0x90u
  6. #define MIDI_MESSAGE_NOTEOFF 0x80u
  7. #define MIDI_CC_SUSTAIN 0x40u
  8. #define MIDI_CC_SOSTENUTO 0x42u
  9. #define MIDI_CC_UNACORDA 0x43u
  10. char* MIDI_GetNoteName(unsigned char);
  11. unsigned char MIDI_GetNoteFromName(const char*);
  12. #endif