beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
op id:70504b10-8db9-40d9-8e9f-9bfe2de081f9
Extracts FFT or Waveform data from the incoming signal

summary (oneliner)

Tone.js wrapper around the native Web Audio's AnalyserNode. Extracts FFT or Waveform data from the incoming signal. Can be used to visualise sound.

doc

issues

youtube id

collections

related ops

Inputs

Audio In (Object)

The audio signal you want to analyse


Refresh (Function)

Does the analysis, mostly you want to connect this to MainLoop


Size (string Number)

The size of analysis


Type (string Number)

The analysis function to use, either "fft" or "waveform"


Smoothing (Number)

0 represents no time averaging with the last analysis frame. If your want smoother values increase it


Max Decibels (Number)

The largest decibel value which is analysed by the FFT


Min Decibels (Number)

The smallest decibel value which is analysed by the FFT


Return Type (string Number)

The data type of the elements in the array, either byte or float


Outputs

Audio Out (Object)

The same audio signal as in Audio In (pass through)


Analyser Array (Array)

The array containing the audio analysis data


Web Audio Waveform Visualizer:

Visualizes a Web Audio signal.
You need to set the Type-port of the Ops.WebAudio.Lib.Tonejs.Component.Analyser op to waveform. Also the Ops.Gl.Matrix.ScaleXYZ op is needed, if you don’t add it, you won’t see anything because the values are too big.



Credits

  • Uses library: Tone.js (Webaudio Library)
  • Op author: tim

Caught a mistake or want to contribute to the documentation?


Edit this documentcancel save

Examples using Analyser

Public Patches using Analyser