WaveformMesh Op


Outputs the waveform of an audio file as a geometry

Edit Documentation

Full Name
  • Ops.WebAudio.WaveformMesh
  • Core Op - Official cables op
  • MIT
AuthorTest PatchesJavascript Libraries
  • Webaudio Peaks (extract peaks from audio samples or a webaudio AudioBuffer)



Render (Trigger)

Renders the waveform and triggers Next when done

Audio Buffer (Object:audioBuffer)

Connect this to an Ops.WebAudio.AudioBuffer op, which loads and holds an audio sample

Render Options

Render Active (Number:boolean )

if true mesh is rendered

Show bottom half (Number:boolean )

When enabled the top half of the waveform will be mirrored, when disabled only the upper half is drawn

Center Origin (Number:boolean )

When enabled the waveform will be centered around the origin, e.g. useful when using OrbitControls and rotating around the origin. When disabled the waveform will start at the origin.

Waveform Settings

Width (Number)

The width of the waveform

Samples Per Pixel (Number:integer )

Controls how detailled the waveform is, the smaller the value the more detail and the wider the output.

Mesh Options

Calculate Tex Coords (Number:boolean )

check to calculate texture coordinates


Next (Trigger)

Called after Render was called, triggers the next op

Geometry (Object)

The geometry of the waveform, can be drawn e.g. with RenderGeometry

Patches using WaveformMesh

  • Examples
  • Public
  • My Patches


cloned op from Ops.WebAudio.Waveformuser avatarcables - 2020-12-07 11:48
Ops.User.cables.WaveformMesh renamed to Ops.WebAudio.WaveformMeshuser avatarcables - 2020-12-07 16:04