From ff7d87958c8e7d20a9044b0c8cf378ec6603c391 Mon Sep 17 00:00:00 2001 From: Jarcode Date: Fri, 12 Jan 2018 17:20:56 -0800 Subject: [PATCH] added fft scaling requests to smoothing_parameters.glsl --- shaders/smooth_parameters.glsl | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/shaders/smooth_parameters.glsl b/shaders/smooth_parameters.glsl index 83894ed..fcc7fcd 100644 --- a/shaders/smooth_parameters.glsl +++ b/shaders/smooth_parameters.glsl @@ -1,5 +1,6 @@ -/* Settings for smoothing functions commonly used to display FFT output */ +/* Settings for smoothing functions and transformations commonly + used to display FFT output */ /* The type of formula to use for weighting values when smoothing. Possible values: @@ -28,3 +29,19 @@ Higher values cause more of the bass frequencies to be skipped when scaling. */ #request setfftcutoff 0.3 + +/* How many frames to queue and run through the average function. + Increasing this value will create latency between the audio and the + animation, but will make for much smoother results. */ +#request setavgframes 6 + +/* Whether to window frames ran through the average function (new & old + frames are weighted less). This massively helps smoothing out + spontaneous values in the animation. */ +#request setavgwindow true + +/* Gravity step, higher values means faster drops. The step is applied + in a rate independant method like so: + + val -= (gravitystep) * (seconds per update) */ +#request setgravitystep 4.2