Class: Needles

Visualization.Needles()

needles moving by different frequency groups

Constructor

new Needles()

Source:

Extends

Members

dialRadius :number

dial radius
Type:
  • number
Source:

name :string

the name of the visualization
Type:
  • string
Overrides:
Source:

onResize

resize the plots sizes when the screen is resized. readjust pad, plotWidth, plotHeight, and dialRadius.
Source:

pad :number

pad
Type:
  • number
Source:

plotHeight :number

plot height
Type:
  • number
Source:

plotWidth :number

pad width
Type:
  • number
Source:

Methods

(amplitude, centreX, bottomY)

draws a needle to an individual plot
Parameters:
Name Type Description
amplitude Array:.<number:> the amplitude for the current frequency
centreX number central x coordinate of the plot rectangle
bottomY number The bottom y coordinate of the plot rectangle
Source:

draw()

visualizes the current sound on the screen
Overrides:
Source:

drawTicks(centreX, bottomY, freqLabel)

draw the graph ticks on an indivisual plot
Parameters:
Name Type Description
centreX number central x coordinate of the plot rectangle
bottomY number The bottom y coordinate of the plot rectangle
freqLabel string Label denoting the frequency of the plot
Source: