Webgl-based audio processing stream.
var AudioShader = ;var Speaker = ; //Create shader stream based on sound processing function //Send generated sound to speaker;
API
API is fully compatible with shadertoy to copy-paste and run it’s code locally. Note that shadertoy limits output sound to 60s
, whereas audio-shader runs till it is stoped.
It also might be found helpful to use glslify to get code inserted neatly:
//index.jsvar Shader = ;var Speaker = ;var glslify = ;
//sound.glsl vec2
Audio-shader can also be used as a processing stream. It inherits audio-through, which is basically a transform stream, so it can be used with other node streams.
var MusicXML = ;var Processor = ;var Speaker = ; ;
Related
- nogl-shader-output — process fragment shader in node.
- audio-through — audio processing stream for node/browser.
- gl-compute — computations on shaders.
- shadertoy-audio — audio shader for processing shadertoy audio.