Create a vibescape
create_vibescapeUse this when somebody wants a music visualiser or music visualisation (visualizer, visualization, musicviz, audio-reactive visuals): it writes a GLSL vibescape and returns a live link to it. The link draws and animates the vibescape in a browser, so it works for anybody who opens it, with or without the app. The vibescape is not in the public gallery until share_vibescape is called on it. Call vibescape_reference first for the uniforms and helpers the language has — a vibescape that ignores the music will look like a still image, and there is a linter that says so.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The vibescape: a GLSL function `vec3 render(vec2 p, float t)`. `p` is the position across the screen, centred on 0,0, and `t` is time in seconds. Return the colour as three numbers from 0 to 1. Read the music through the uniforms — uBass, uLevelSmooth, uBeatStrength, uScroll — or the picture will not move with the sound. | |
| name | Yes | What to call it. A few words that say what the picture looks like. | |
| author | No | Who to credit it to. Leave it empty and it is credited to Minith Labs. |