// Audio ShaderToy // Drag a .mp3 .m4a or .ogg file into your browser! #define smoothing .75 #define num_bands 256 #define pixel_scale 2 uniform sampler2D u_frequencies; uniform float u_aspect, u_time; varying vec2 v_texcoord; void main(){ float freq = texture2D(u_frequencies, v_texcoord).x; vec3 color = vec3(freq > v_texcoord.y) * (v_texcoord.y / freq); gl_FragColor = vec4(color, 1.); }