WaveformMesh Op

WaveformMesh

Outputs the waveform of an audio file as a geometry



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



INPUT PORTS


Render (Trigger)

<p>Renders the waveform and triggers <code>Next</code> when done</p>

Audio Buffer (Object:audioBuffer)

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

Render Options

Render Active (Number:

<i>boolean</i>

)

<p>if true mesh is rendered</p>

Show bottom half (Number:

<i>boolean</i>

)

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

Center Origin (Number:

<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

Width (Number)

<p>The width of the waveform</p>

Samples Per Pixel (Number:

<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

Calculate Tex Coords (Number:

<i>boolean</i>

)

<p>check to calculate texture coordinates</p>

OUTPUT PORTS


Next (Trigger)

<p>Called after <code>Render</code> was called, triggers the next op</p>

Geometry (Object)

<p>The geometry of the waveform, can be drawn e.g. with <code>RenderGeometry</code></p>


Patches using WaveformMesh

  • Examples
  • Public
  • My Patches

Changelog


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