WaveformMesh Op
Outputs the waveform of an audio file as a geometry
Summary (oneliner)
- Ops.WebAudio.WaveformMesh
- Core Op - Official cables op
- MIT
- Webaudio Peaks (extract peaks from audio samples or a webaudio AudioBuffer)
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch WaveformMesh example
INPUT PORTS
<p>Renders the waveform and triggers <code>Next</code> when done</p>
<p>Connect this to an Ops.WebAudio.AudioBuffer op, which loads and holds an audio sample</p>
Render Options
<i>boolean</i>
)<p>if true mesh is rendered</p>
<i>boolean</i>
)<p>When enabled the top half of the waveform will be mirrored, when disabled only the upper half is drawn</p>
<i>boolean</i>
)<p>When enabled the waveform will be centered around the origin, e.g. useful when using <code>OrbitControls</code> and rotating around the origin. When disabled the waveform will start at the origin.</p>
Waveform Settings
<p>The width of the waveform</p>
<i>integer</i>
)<p>Controls how detailled the waveform is, the smaller the value the more detail and the wider the output. </p>
Mesh Options
<i>boolean</i>
)<p>check to calculate texture coordinates</p>
OUTPUT PORTS
<p>Called after <code>Render</code> was called, triggers the next op</p>
<p>The geometry of the waveform, can be drawn e.g. with <code>RenderGeometry</code></p>