Unwanted Distortion in Delay
Posted: Fri Feb 05, 2016 4:42 pm
I am experiencing some weird distortion that I cannot track down on the delay tails. I feel like my gain on something is too high but I cant figure out what. Instead of a clean blend I am adding an octave blend. Thoughts?
Code: Select all
; Guitar Echo
; HK July 2009
; version 2.0
; modified by Christian Terjesen / Adventure Audio Feb 2016
;
; mono in mono out
; pot0 = feedback amount (from no feedback = slap back to infinite feedback)
; pot1 = delay time (50 ms to 1 second with 32 kHz x-tal)
; pot2 = octave mix
;
; only 20 thicks
;declare memory spaces:
mem del 32767
;declare register equates:
equ dout reg0
equ kfbk reg1
equ dry_in reg2
equ oct reg3
equ octreg reg4
;get feedback value from pot0:
wrax kfbk,0
rdax pot0,1
wrax kfbk,0
;get address pointer from pot1:
rdax pot1,1
and %01111110_00000000_00000000 ;don't make jumps too small
sof 61/64,3/64 ;50 ms to 1 second
wrax addr_ptr,0
;get output from delay:
rmpa 1
wrax dout,0
;put input signals into delay, allowing for feedback:
rdax dout,1
mulx kfbk
rdax adcl,0.5
wrax dry_in,1
wra del,0
;octave
rdax dout,1
absa
wrax oct,1
rdax oct,1
mulx kfbk
rdax adcl,0.5
wrax octreg,1
wra del,0
; mix octave using pot2
rdax dout,1
rdax octreg,-1
mulx pot2
rdax octreg,1
;form mono output:
wrax dacl, 0