Constructor
(private) new Sounder(context, numberOfSeries)
Parameters:
Name | Type | Description |
---|---|---|
context |
AudioContext | the Web Audio API context |
numberOfSeries |
number | number of data series |
- Source:
Methods
frequency(series, frequency)
Set the frequency of the oscillator for a given series
Parameters:
Name | Type | Description |
---|---|---|
series |
number | set frequency for which series? |
frequency |
number | the frequency to change to (Hz) |
- Source:
start()
Start the oscillator(s)
- Source:
stop()
Stop the oscillator(s)
- Source: