Created
January 9, 2018 00:12
-
-
Save jarcode-foss/6c22e3686d40d968186d0dff442c3b32 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* center radius (pixels) */ | |
#define C_RADIUS 128 | |
/* center line thickness (pixels) */ | |
#define C_LINE 1 | |
/* outline color */ | |
#define OUTLINE vec4(0.30, 0.30, 0.30, 1) | |
/* number of bars (use even values for best results) */ | |
#define NBARS 140 | |
/* width (in pixels) of each bar*/ | |
#define BAR_WIDTH 4.5 | |
/* outline color */ | |
#define BAR_OUTLINE OUTLINE | |
/* outline width (in pixels, set to 0 to disable outline drawing) */ | |
#define BAR_OUTLINE_WIDTH 0 | |
/* Amplify magnitude of the results each bar displays */ | |
#define AMPLIFY 600 | |
/* Bar color */ | |
#define COLOR (vec4(0.2, 0.4, 0.7, 1) * ((d / 60) + 1)) | |
/* Angle (in radians) for how much to rotate the visualizer */ | |
#define ROTATE (-PI / 2) | |
/* Whether to switch left/right audio buffers */ | |
#define INVERT 0 | |
/* Smoothing factor, in normalized width */ | |
#define SMOOTH 0.025 | |
/* How many frames to queue and run through the average function */ | |
#request setavgframes 6 | |
/* Whether to window frames ran through the average function (new & old frames | |
are weighted less). This massively helps smoothing out spikes 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment