Page 4 of 7
Re: Wave folding pedal?
Posted: Mon Aug 07, 2017 5:06 pm
by DRodriguez
No wonder I loved it so much, haha. Been looking for a pedal to do this for me for about 6 months now.
Re: Wave folding pedal?
Posted: Mon Aug 07, 2017 5:32 pm
by multi_s
you can make wave folder with an absolute value circuit. it is the same thing no?
split the signal into 2 paths, one path half wave rectifies... the other inverts then half wave rectifies. then recombine the 2 signals in a mixer/adder. the end. the wave is folded around 0. you can play with offsets to make it fold not at 0 etc. easily done with opamps. look up "absolute value circuit opamp" or something like that on google im sure you will find it.
Re: Wave folding pedal?
Posted: Mon Aug 07, 2017 5:48 pm
by JonnyAngle
it sounded amazing
Re: Wave folding pedal?
Posted: Mon Aug 07, 2017 11:58 pm
by crochambeau
That's a pretty scope trace.
Re: Wave folding pedal?
Posted: Tue Aug 08, 2017 2:28 pm
by Pladask
Didn't read the whole thread, but basic clipping, folding and wrapping distortion is very easy to program. If anyone's interested I could write basic SPIN FV-1 sketches for all three methods and add them here.
Quick article outlining clip/fold/wrap:
http://www.tankonyvtar.hu/en/tartalom/t ... /ch12.html
Re: Wave folding pedal?
Posted: Tue Aug 08, 2017 7:19 pm
by D.o.S.
I mean you should probably charge Cooper for the R&D.
Re: Wave folding pedal?
Posted: Tue Aug 08, 2017 7:20 pm
by D.o.S.
[Cheeky baby jpg here]
Re: Wave folding pedal?
Posted: Tue Aug 08, 2017 7:40 pm
by Inconuucl
Don't worry, if we push this thread far enough you'll see a bunch of them at namm in a year or two, it worked with plls.

Re: Wave folding pedal?
Posted: Tue Aug 08, 2017 8:43 pm
by crochambeau
Inconuucl wrote:Don't worry, if we push this thread far enough you'll see a bunch of them at namm in a year or two, it worked with plls.

Yeah, I've got an analog solution on my mind that employs CV for threshold definition, It'll probably just be a curiosity if it comes to fruition though as it's not a budget conscientious approach.

Re: Wave folding pedal?
Posted: Tue Aug 08, 2017 9:46 pm
by Jwar
Your pedal gave me a boner. Just saying.
Re: Wave folding pedal?
Posted: Wed Aug 09, 2017 2:57 am
by Pladask
D.o.S. wrote:I mean you should probably charge Cooper for the R&D.
I don't get it.
Anyway codes are below (untested). Probably not the most effective approach. Also if the threshold is set low enough it might be interesting to add the fold or wrap limiter more than once in series.
; Clipping Effect
; POT0 : clipping threshold
equ temp1 reg0
equ limit reg1
; POT0 preparation
ldax POT0 ; read pot
mulx POT0 ; square response
wrax limit, 0 ; store, 0
; Positive flank
ldax ADCL ; read Audio
wrax temp1, 1 ; store, keep
skp NEG, positive ; if GEZ : test pos limit
rdax limit, -1 ; Audio - limit
skp NEG, clip1 ; if GEZ : clip wave
ldax limit ; acc = limit
wrax temp1, 0 ; set temp, clr
clip1:
clr
skp ZRO, done ; unconditional skip
positive:
; Negative flank
rdax limit, 1 ; Audio + limit
skp GEZ, clip2 ; if NEG : clip wave
ldax limit ; acc = limit
wrax temp1, 0 ; set temp, clr
clip2:
done:
; Output
ldax temp1 ; read clipped audio
wrax DACL, 0 ; output, clr
; Folding Effect
; POT0 : folding threshold
equ temp1 reg0
equ limit reg1
; POT0 preparation
ldax POT0 ; read pot
mulx POT0 ; square response
wrax limit, 0 ; store, clr
; Positive flank
ldax ADCL ; read Audio
wrax temp1, 1 ; store, keep
skp NEG, positive ; if GEZ : test pos limit
rdax limit, -1 ; Audio - limit
skp NEG, clip1 ; if GEZ : fold wave
sof -1, 0 ; invert to negative
rdax limit, 1 ; add offset
wrax temp1, 0 ; store, clr
clip1:
clr
skp ZRO, done ; unconditional skip
positive:
; Negative flank
rdax limit, 1 ; Audio + limit
skp GEZ, clip2 ; if NEG : fold wave
sof -1, 0 ; invert to pos
rdax limit, -1 ; sub offset
wrax temp1, 0 ; store, clr
clip2:
done:
; Output
ldax temp1 ; read folded audio
wrax DACL, 0 ; output, clr
; Wrapping Effect
; POT0 : wrapping threshold
equ temp1 reg0
equ limit reg1
; POT0 preparation
ldax POT0 ; read pot
mulx POT0 ; square response
wrax limit, 0 ; store, 0
; Positive flank
ldax ADCL ; read Audio
wrax temp1, 1 ; store, keep
skp NEG, positive ; if GEZ : test pos limit
rdax limit, -1 ; Audio - limit
skp NEG, clip1 ; if GEZ : wrap wave
rdax limit, -1 ; sub offset
wrax temp1, 0 ; store, clr
clip1:
clr
skp ZRO, done ; unconditional skip
positive:
; Negative flank
rdax limit, 1 ; Audio + limit
skp GEZ, clip2 ; if NEG : clip wave
rdax limit, 1 ; add offset
wrax temp1, 0 ; store, clr
clip2:
done:
; Output
ldax temp1 ; read wrapped audio
wrax DACL, 0 ; output, clr
Re: Wave folding pedal?
Posted: Wed Aug 09, 2017 9:57 am
by Teej212
I believe he's implying that I'm going to take your code and sell it as my own. I'm always doing That sort of thing

Re: Wave folding pedal?
Posted: Wed Aug 09, 2017 10:11 am
by D.o.S.
Just call it a secret mode.

Re: Wave folding pedal?
Posted: Wed Aug 09, 2017 4:26 pm
by Pladask
Re: Wave folding pedal?
Posted: Wed Aug 09, 2017 4:44 pm
by $harkToootth
I am not equipped to do do anything with the code nor do I understand it but just want to say "Thank you!" for going through the time and effort to write up and share

.
Also, have to say, your pedals sound great! Ugly Casanova has done them great justice in his demo videos.