Glitch/power off at minimum pot value?
Posted: Fri Jun 30, 2017 6:39 am
Background: I've got a momentary switch that bypasses POT0 to send the ref voltage and 'max' the pot for momentary weirdness.
Now, it might be the case that a) I'm making assumptions or b) I've made a hardware mistake, but for an example like this (generated from DL's SpinCAD) I find that if POT0 is turned fully counter-clockwise and I hit the momentary, I get a click, the 'clip' LED lights and the pedal returns to functioning only when I let go of the switch. Do I need to include a minimum value or an offset or something?
Alternatively is it something else that I'm not considering?
This only seems to happen on a couple of patches that I've written or generated, so I'm not 100% sure what the pattern is.
Now, it might be the case that a) I'm making assumptions or b) I've made a hardware mistake, but for an example like this (generated from DL's SpinCAD) I find that if POT0 is turned fully counter-clockwise and I hit the momentary, I get a click, the 'clip' LED lights and the pedal returns to functioning only when I let go of the switch. Do I need to include a minimum value or an offset or something?
Alternatively is it something else that I'm not considering?
This only seems to happen on a couple of patches that I've written or generated, so I'm not 100% sure what the pattern is.
Code: Select all
; Pot 0: pitch of dry signal
; Pot 1: pitch of wet signal (-1/+1)
; Pot 2: mix of wet signal
;
;
; ----------------------------
;------ Input
;------ Pot 0
;------ Pitch Shift
SKP RUN ,1
WLDR 0, 25455, 4096
LDAX ADCL
WRA 0,0.0
RDAX POT0,0.7768249512
WRAX RMP0_RATE,0.0000000000
CHO RDA,2,REG | COMPC,0
CHO RDA,2,0,1
WRA 4097,0.0
CHO RDA,2,COMPC | RPTR2,0
CHO RDA,2,RPTR2,1
CHO SOF,2,COMPC | NA,0.0
CHO RDA,2,NA,4097
WRAX REG0,0.0000000000
;------ Pot 1
;------ Pot 2
;------ Pitch Shift
SKP RUN ,1
WLDR 1, 8192, 4096
LDAX ADCL
WRA 4099,0.0
RDAX POT1,1.0000000000
SOF 1.0000000000,-0.5000000000
SKP GEZ,1
SOF 0.5000000000,0.0000000000
WRAX RMP1_RATE,0.0000000000
CHO RDA,3,REG | COMPC,4099
CHO RDA,3,0,4100
WRA 8196,0.0
CHO RDA,3,COMPC | RPTR2,4099
CHO RDA,3,RPTR2,4100
CHO SOF,3,COMPC | NA,0.0
CHO RDA,3,NA,8196
WRAX REG1,0.0000000000
;------ Mixer 2:1
RDAX REG0,1.0000000000
WRAX REG2,0.0000000000
RDAX REG1,1.0000000000
MULX POT2
RDAX REG2,1.0000000000
WRAX REG2,0.0000000000
;------ Output
RDAX REG2,1.0000000000
WRAX DACL,0.0000000000