From a222206c9996e01962009c8d7e982c8f34d4a15f Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sun, 1 Nov 2015 12:55:08 -0800 Subject: Wrote a buggy tool for splitting VGM files by channel --- ym2612.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'ym2612.h') diff --git a/ym2612.h b/ym2612.h index 8fbeb77..3619e52 100644 --- a/ym2612.h +++ b/ym2612.h @@ -98,6 +98,31 @@ typedef struct { uint8_t part2_regs[YM_PART2_REGS]; } ym2612_context; +enum { + REG_LFO = 0x22, + REG_TIMERA_HIGH = 0x24, + REG_TIMERA_LOW, + REG_TIMERB, + REG_TIME_CTRL, + REG_KEY_ONOFF, + REG_DAC = 0x2A, + REG_DAC_ENABLE, + + REG_DETUNE_MULT = 0x30, + REG_TOTAL_LEVEL = 0x40, + REG_ATTACK_KS = 0x50, + REG_DECAY_AM = 0x60, + REG_SUSTAIN_RATE = 0x70, + REG_S_LVL_R_RATE = 0x80, + + REG_FNUM_LOW = 0xA0, + REG_BLOCK_FNUM_H = 0xA4, + REG_FNUM_LOW_CH3 = 0xA8, + REG_BLOCK_FN_CH3 = 0xAC, + REG_ALG_FEEDBACK = 0xB0, + REG_LR_AMS_PMS = 0xB4 +}; + void ym_init(ym2612_context * context, uint32_t sample_rate, uint32_t master_clock, uint32_t clock_div, uint32_t sample_limit, uint32_t options); void ym_adjust_master_clock(ym2612_context * context, uint32_t master_clock); void ym_run(ym2612_context * context, uint32_t to_cycle); -- cgit v1.2.3