ECE 4760 Final Project
 All Files Functions Variables Enumerations Enumerator Macros
Macros | Functions
midi.h File Reference

Go to the source code of this file.


#define NOTE_ON   (0b1001)
#define NOTE_OFF   (0b1000)
#define PITCH   (0b1110)
#define INSTRUMENT   (0b1100)
#define CONTROL   (0b1011)
#define VOLUME   (0x07)
#define MODULO   (0x01)
#define PAN   (0x0A)
#define BALANCE   (0x08)


void write_test_note (void)
void send_byte (uint8_t byte)
void pitch_bend (uint8_t channel, int16_t value)
void change_instrument (uint8_t channel, uint8_t instrument)
void change_volume (uint8_t chan, uint8_t vol)
void send_controller_command (uint8_t channel, uint8_t controller, uint8_t value)
void send_note (uint8_t channel, uint8_t vel, uint8_t pitch)
void send_note_off (uint8_t channel, uint8_t vel, uint8_t pitch)

Macro Definition Documentation

#define BALANCE   (0x08)

Definition at line 11 of file midi.h.

#define CONTROL   (0b1011)

Definition at line 6 of file midi.h.

#define INSTRUMENT   (0b1100)

Definition at line 5 of file midi.h.

#define MODULO   (0x01)

Definition at line 9 of file midi.h.

#define NOTE_OFF   (0b1000)

Definition at line 3 of file midi.h.

#define NOTE_ON   (0b1001)

Definition at line 2 of file midi.h.

#define PAN   (0x0A)

Definition at line 10 of file midi.h.

#define PITCH   (0b1110)

Definition at line 4 of file midi.h.

#define VOLUME   (0x07)

Definition at line 8 of file midi.h.

Function Documentation

void change_instrument ( uint8_t  channel,
uint8_t  instrument 

Definition at line 37 of file midi.c.

void change_volume ( uint8_t  chan,
uint8_t  vol 

Definition at line 42 of file midi.c.

void pitch_bend ( uint8_t  channel,
int16_t  value 

Definition at line 29 of file midi.c.

void send_byte ( uint8_t  byte)

Definition at line 20 of file midi.c.

void send_controller_command ( uint8_t  channel,
uint8_t  controller,
uint8_t  value 

Definition at line 46 of file midi.c.

void send_note ( uint8_t  channel,
uint8_t  vel,
uint8_t  pitch 

Definition at line 52 of file midi.c.

void send_note_off ( uint8_t  channel,
uint8_t  vel,
uint8_t  pitch 

Definition at line 58 of file midi.c.

void write_test_note ( void  )