Spin Semiconductor Forum Index Spin Semiconductor
Support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Asymmetric Distortion/Limiter

 
Post new topic   Reply to topic    Spin Semiconductor Forum Index -> Algorithm development
View previous topic :: View next topic  
Author Message
knutolai



Joined: 23 Nov 2016
Posts: 29
Location: Bergen, Norway

PostPosted: Fri Mar 31, 2017 12:15 am    Post subject: Asymmetric Distortion/Limiter Reply with quote

Simple and interesting distortion block:

Code:
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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Spin Semiconductor Forum Index -> Algorithm development All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group