4-echo autofade

Algorithm development and general DSP issues

Moderator: frank

Post Reply
Digital Larry
Posts: 279
Joined: Mon Nov 12, 2012 12:12 pm
Contact:

4-echo autofade

Post by Digital Larry » Sun Jul 20, 2014 11:08 am

This one uses the same crossfade structure and LFOs as the 4-distortion patch. However, instead of distortions it mixes 4 different delays and then mixes them with the dry signal:

249 msec multi-tap
98 msec single tap
250 msec single delay with feedback
350 msec delay with feedback

It's a bit more subtle than the distortion patch.

[update, I found a bug in my MN3011a code, which I fixed last night Sunday July 20 2014]

Code: Select all

;  Program: Render Block exported from SpinCAD Designer
;------ Input
;------ Pot 0
;------ Pot 2
;------ Feedback Output
;------ Servo Delay
RDAX ADCL,1.0000000000
WRA 0,0.0
CLR
OR $007FFF00
SOF 0.1349792480,0.0000305176
WRAX ADDR_PTR,0.0000000000
RMPA 1.0
WRAX REG1,0.0000000000
;------ MN3011a
RDAX ADCL,0.9000000000
WRA 4424,0.0
RDA 5238,0.5
RDA 5785,0.5
RDA 6880,0.5
RDA 7975,0.5
RDA 10164,0.5
RDA 11271,0.5
WRAX REG2,0.0000000000
RDA 11271,1.0
WRAX REG3,0.0000000000
;------ Mixer 2-1
RDAX ADCL,0.5000000000
WRAX REG4,0.0000000000
RDAX REG0,0.5000000000
RDAX REG4,1.0000000000
WRAX REG4,0.0000000000
;------ Servo Delay
RDAX REG4,1.0000000000
WRA 11272,0.0
CLR
OR $007FFF00
SOF 0.2500000000,0.3439636230
WRAX ADDR_PTR,0.0000000000
RMPA 1.0
WRAX REG5,0.0000000000
;------ FB In 2
RDAX REG5,0.7600000000
WRAX REG0,0.0000000000
;------ LFO 0
SKP RUN ,1
WLDS 0,13,32767
RDAX POT0,0.0254403131
WRAX SIN0_RATE,0.0000000000
CHO RDAL,0
WRAX REG6,0.0000000000
CHO RDAL,8
WRAX REG7,0.0000000000
;------ Scale/Offset
RDAX REG6,1.0000000000
SOF 0.2000000000,0.0500000000
WRAX REG8,0.0000000000
;------ Scale/Offset
RDAX REG7,1.0000000000
SOF 0.5000000000,0.5000000000
WRAX REG9,0.0000000000
;------ Single Delay
RDAX ADCL,0.5000000000
WRAX REG12,0.0000000000
SOF 0.0000000000,0.4500000000
WRAX REG12,0.0000000000
SOF 0.0000000000,0.9990000000
SOF 0.3290000000,0.5939636230
WRAX ADDR_PTR,0.0000000000
RMPA 1.0
WRAX REG11,1.0000000000
MULX REG12
RDAX ADCL,0.5000000000
WRA 19465,0.0
RDAX REG11,1.0000000000
WRAX REG11,0.0000000000
;------ Pot 1
;------ LFO 1
SKP RUN ,1
WLDS 1,15,32767
RDAX POT1,0.0293542074
WRAX SIN1_RATE,0.0000000000
CHO RDAL,1
WRAX REG14,0.0000000000
CHO RDAL,9
WRAX REG15,0.0000000000
;------ Scale/Offset
RDAX REG14,1.0000000000
SOF -0.2500000000,0.7500000000
WRAX REG16,0.0000000000
;------ Crossfade
RDAX REG1,1.0000000000
RDAX REG2,-1.0000000000
MULX REG8
RDAX REG2,1.0000000000
WRAX REG17,0.0000000000
;------ Scale/Offset
RDAX POT2,1.0000000000
SOF 0.6600000000,0.3400000000
WRAX REG18,0.0000000000
;------ Crossfade
RDAX REG11,1.0000000000
RDAX REG5,-1.0000000000
MULX REG9
RDAX REG5,1.0000000000
WRAX REG19,0.0000000000
;------ Crossfade
RDAX REG19,1.0000000000
RDAX REG17,-1.0000000000
MULX REG16
RDAX REG17,1.0000000000
WRAX REG20,0.0000000000
;------ Servo Delay
RDAX REG20,1.0000000000
WRA 30246,0.0
CLR
OR $007FFF00
MULX REG16
RDFX REG22,0.0012500000
WRAX REG22,1.0000000000
SOF 0.0199890137,0.9229431152
WRAX ADDR_PTR,0.0000000000
RMPA 1.0
WRAX REG21,0.0000000000
;------ Mixer 3-1
RDAX ADCL,0.3333333333
WRAX REG23,0.0000000000
RDAX REG20,0.3333333333
RDAX REG23,1.0000000000
WRAX REG23,0.0000000000
RDAX REG21,0.3333333333
MULX REG18
RDAX REG23,1.0000000000
WRAX REG23,0.0000000000
;------ Output
RDAX REG23,1.0000000000
WRAX DACL,0.0000000000
RDAX REG23,1.0000000000
WRAX DACR,0.0000000000

Post Reply