Class: Cloud5Shader

Cloud5Shader()

Presents visuals generated by a GLSL shader. These visuals can show a visualization of the music, or be sampled to generate notes for Csound to perform.

The SWSS glsl function accepts a dictionary of parameters, documented here: https://github.com/google/swissgl/blob/main/docs/API.md. The most often used of these parameters have setters in this class.

Constructor

new Cloud5Shader()

Source:

Members

audio_visualizer_hook

The user may define a function that will be called at intervals to receive an FFT analysis of the performance; the function should use these to compute GLSL uniforms that will in some way control the appearance and behavior of the shader visuals. The user-defined function must be assigned to this property.

Source:

cloud5_piece

Back reference to the piece, which can be used e.g. to get a reference to Csound.

Source:

glsl_parameters

The user may define a vertex shader in GLSL code for generating visuals, and assign a string containing the code to this property.

Source:

shader_parameters_addon

Several objects must be defined at the same time before creating the shader. These objects are passed in these options.

Source:

shader_sampler_hook

The user may define a function that will be called at intervals to receive a real-time FFT analysis of the audio; the function should downsample and/or otherwise process the analysis to generate CsoundAC Notes, which must be returned in a CsoundAC Score. The user-defined function must be assigned to this property.

Source:

Methods

connectedCallback()

Called by the browser whenever this element is added to the document.

Source: