Asymmetric Distortion/Limiter

Algorithm development and general DSP issues

Moderator: frank

Post Reply
knutolai
Posts: 33
Joined: Wed Nov 23, 2016 8:43 am
Location: Bergen, Norway

Asymmetric Distortion/Limiter

Post by knutolai » Fri Mar 31, 2017 1:15 am

Simple and interesting distortion block:

Code: Select all

rdax	adcl, -1		; Read & invert input
skp	GEZ,	1	; If neg
sof	0.01, 0		; Soft cut negative wave segment
sof	-2, 0		; Make up gain loss, fix phase
;
rdax	adcl, -1		; Crossmixer
mulx	pot0
rdax	adcl, 1
;
wrax	dacl, 0		; output, clear acc
Only one phase of the sound is clipped. Could need some sort of offset to retain headroom, but works fine for me.

Post Reply