avr-musicbox

A simple yet powerful musicbox built on tinyAVR0

WIP

Features

Build and flash

Requires serialupdi to flash

PlatformIO

pio run

Makefile (Linux only?)

Install following and add to PATH

avr-gcc avr-libc avrdude

then, run make

seq format

header cmd cmd...

header

struct Header{
	uint8_t ntrks;
	uint16_t[ntrks] offset;
}

cmd

NNNNOOLL: play
	NNNN: note number 0~11
	OO: octave
	LL: length index

110000LL: rest
	LL: length index

110001XX
11001XXX
1101XXXX
111XXXXX