Class: FrequencyPitchMapper

(private) FrequencyPitchMapper(seriesInfo)

Maps each datum to a corresponding frequency.

Constructor

(private) new FrequencyPitchMapper(seriesInfo)

Create a Frequency Pitch Mapper
Parameters:
Name Type Description
seriesInfo Array.<Object> minimum and maximums for each series
Properties
Name Type Description
minimumDatum string minimun data value
maximumDatum string maximun data value
minimumFrequency string minimun frequency
maximumFrequency string maximun frequency
Source:

Extends

Methods

map(series, datum) → {number}

Given a datum value, compute the corresponding frequency
Parameters:
Name Type Description
series number map on which series?
datum number the datum to be mapped
Overrides:
Source:
Returns:
frequency for this datum
Type
number