View Single Post
Old 02-24-2020, 12:47 PM   #34
SaulT
Human being with feelings
 
Join Date: Oct 2013
Location: Seattle, WA
Posts: 876
Default

This is correct.

Code:
os0.y3 = process(os0.y3,slider1);
This is not. Process() needs two arguments.

Code:
  os0.y2 = process(os0.y2);
  os0.y1 = process(os0.y1);
  os0.y0 = process(os0.y0);
Once you change that, the code compiles correctly. I copy/pasted the code from your code boxes above, made the change I mentioned, and it ran. jsfx-inc files I think just need to be somewhere in the effects folder, although I often put them in the same folder as the effect itself just to make sure that if I zip it, the jsfx-inc file won't get lost.

You'll notice that your code can radically change the volume level, which I strongly suggest is something you don't want to do. This is because it's just scaling a sin() function. I talk about that in earlier posts and suggest one or two alternatives.
SaulT is offline   Reply With Quote