#include "inttypes.h"
#include <stdio.h>
#include <util/delay.h>
#include "uart.h"
#include "midi.h"
Go to the source code of this file.
|
#define | m4(x) (x&0x0F) |
|
#define | m7(x) (x&0x7F) |
|
#define | m14(x) (x&0x3FFF) |
|
#define | up7(x) (0x7F&(x>>7)) |
|
#define | lo7(x) (0x7F&(x)) |
|
|
void | send_byte (uint8_t byte) |
|
void | send_status_byte (uint8_t cmd, uint8_t channel) |
|
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) |
|
#define lo7 |
( |
|
x | ) |
(0x7F&(x)) |
#define m14 |
( |
|
x | ) |
(x&0x3FFF) |
#define up7 |
( |
|
x | ) |
(0x7F&(x>>7)) |
void change_instrument |
( |
uint8_t |
channel, |
|
|
uint8_t |
instrument |
|
) |
| |
void change_volume |
( |
uint8_t |
chan, |
|
|
uint8_t |
vol |
|
) |
| |
void pitch_bend |
( |
uint8_t |
channel, |
|
|
int16_t |
value |
|
) |
| |
void send_byte |
( |
uint8_t |
byte | ) |
|
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 |
|
) |
| |
void send_status_byte |
( |
uint8_t |
cmd, |
|
|
uint8_t |
channel |
|
) |
| |