1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-19 19:16:34 +00:00

Make a complete attempt at ADSR.

This commit is contained in:
Thomas Harte
2025-11-11 14:25:36 -05:00
parent 8c2294fc0d
commit de5cdbf18c
2 changed files with 72 additions and 20 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ void SID::write(const Numeric::SizedInt<5> address, const uint8_t value) {
((oscillator().pitch & 0x0f'f0'00'00) | uint32_t(value << 28)) ^ 0x8000'0000;
break;
case 0x04: case 0x0b: case 0x12:
voice().control = value;
voice().set_control(value);
break;
case 0x05: case 0x0c: case 0x13:
adsr().attack = value >> 4;