Skip to content

Commit

Permalink
Make tanh krunchier by default
Browse files Browse the repository at this point in the history
This commit scales the user input to allow for a krunchier default
setting of tanh. Given the mathematical sounding name, the default
effect was quite subtle which I imagine would lead people to wonder what
it was supposed to be doing. This commit scales the user choice by 2x
resulting in a more noticable default. Aesthetically, this is a breaking
change from v2.9 but I would argue that its not a massive one.

Generated pdf to follow as I'm on a plane and don't have graphviz
installed.
  • Loading branch information
xavriley committed Jan 24, 2016
1 parent fa67aba commit 544e21c
Show file tree
Hide file tree
Showing 3 changed files with 163 additions and 158 deletions.
Binary file modified etc/synthdefs/compiled/sonic-pi-fx_tanh.scsyndef
Binary file not shown.
3 changes: 2 additions & 1 deletion etc/synthdefs/designs/sonic_pi/synths/fx.clj
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,9 @@
pre_amp (varlag pre_amp pre_amp_slide pre_amp_slide_curve pre_amp_slide_shape)
krunch (varlag krunch krunch_slide krunch_slide_curve krunch_slide_shape)
krunch (select:kr (= 0 krunch) [krunch 0.0001])
krunch_mul 2 ;; for a krunchier default sound
[in-l in-r] (* pre_amp (in in_bus 2))
[new-l new-r] (* (/ (tanh (* krunch [in-l in-r])) krunch) (+ 1 (/ krunch 8)))
[new-l new-r] (* (/ (tanh (* (* krunch krunch_mul) [in-l in-r])) (* krunch krunch_mul)) (+ 1 (/ krunch (* krunch_mul 8))))

fin-l (x-fade2 in-l new-l (- (* mix 2) 1) amp)
fin-r (x-fade2 in-r new-r (- (* mix 2) 1) amp)]
Expand Down
Loading

0 comments on commit 544e21c

Please sign in to comment.