Skip to content

Instantly share code, notes, and snippets.

@jpcima
Created October 12, 2019 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpcima/ce6d1b8e283862d7589ff2f0b6d161ff to your computer and use it in GitHub Desktop.
Save jpcima/ce6d1b8e283862d7589ff2f0b6d161ff to your computer and use it in GitHub Desktop.
Adjust the volume level
diff --git a/faust/chorus3.dsp b/faust/chorus3.dsp
index b48fa53..70ed07a 100644
--- a/faust/chorus3.dsp
+++ b/faust/chorus3.dsp
@@ -50,8 +50,8 @@ process = chorus with {
/**/
chorus(x) =
- ba.if(enabled, x + (x : line(lfo1)), x),
- ba.if(enabled, x + (x : line(lfo2)), x)
+ ba.if(enabled, (1./sqrt(2.)) * (x + (x : line(lfo1))), x),
+ ba.if(enabled, (1./sqrt(2.)) * (x + (x : line(lfo2))), x)
with {
/* Capacity of delay */
delaycap = 10e-3; // seconds, must be >> delay time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment