This commit is contained in:
2024-03-26 21:05:48 +01:00
parent 73d2bbc730
commit 9989a52c38
5 changed files with 115 additions and 68 deletions

View File

@ -3,6 +3,7 @@
#include <stdint.h>
#include <stdbool.h>
#include "psg.h"
typedef enum {
@ -18,11 +19,13 @@ typedef struct {
t_octave octave;
t_note note;
t_noteLength length;
bool legato;
} t_tone;
typedef struct {
uint16_t idx;
uint8_t lengthCnt;
uint8_t state;
uint8_t channel;
const t_tone *tones;
} t_melody;