Class: Spectrogram

Spectrogram(audioContext, bufferPlayer, options)

A Spectrogram visual represents the frequency domain of the specified audio.

Constructor

new Spectrogram(audioContext, bufferPlayer, options)

Create an spectrogram visual.
Parameters:
Name Type Description
audioContext Object An array of data.
bufferPlayer Object An array of data.
options Object Configuration options.
Author:
  • Lawrence Fyfe
Source:
To Do:
  • Do an actual implementation for this class.

Methods

addProperty(name, value)

Add the specified property to this visual. The property is stored as [name, value].
Parameters:
Name Type Description
name string The name of the property.
value string The value of the property.
Source:

draw()

Draw this visual.
Source:

erase()

Erase this visual.
Source:

initialize(parentElement, width, height, timeScale)

Initialize this visual.
Parameters:
Name Type Description
parentElement Element The parent element.
width number The parent width.
height number The parent height.
timeScale d3.scaleLinear The time scale.
Source: