From b11d4e8244ff20e715875f510c097b8c1db88fa5 Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Sun, 2 Jun 2013 21:52:42 -0700 Subject: Fix key scaling --- ym2612.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ym2612.c') diff --git a/ym2612.c b/ym2612.c index e8e9055..ea95bc2 100644 --- a/ym2612.c +++ b/ym2612.c @@ -549,7 +549,7 @@ void ym_data_write(ym2612_context * context, uint8_t value) operator->total_level = (value & 0x7F) << 5; break; case REG_ATTACK_KS: - operator->key_scaling = value >> 6; + operator->key_scaling = 3 - (value >> 6); operator->rates[PHASE_ATTACK] = value & 0x1F; break; case REG_DECAY_AM: -- cgit v1.2.3