Pitch envelope fixes.

This commit is contained in:
Bobbi Webber-Manners
2022-10-15 23:04:43 -04:00
parent 55cca2ea25
commit fc05237d37
2 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@@ -516,9 +516,11 @@ PITCHENV LDA CHANENV,X ; Set envelope number
* Update pitch value. Called by PITCHENV. * Update pitch value. Called by PITCHENV.
* On entry: A - Change of pitch/step, X is audio channel # * On entry: A - Change of pitch/step, X is audio channel #
* X is preserved * X is preserved
UPDPITCH CLC UPDPITCH STX OSCNUM
CLC
ADC CURRPITCH,X ; Add change to current ADC CURRPITCH,X ; Add change to current
STA CURRPITCH,X ; Update STA CURRPITCH,X ; Update
TAY
JSR ENSQFREQ ; Update Ensoniq regs JSR ENSQFREQ ; Update Ensoniq regs
RTS RTS