Oscillator used to create periodic waves.
Value parameters
- generator
-
function used to generate a wave based on a frequency
Attributes
- Companion
- object
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Generates an AudioWave with a certain frequency
Generates an AudioWave with a certain frequency
Value parameters
- frequency
-
audio wave frequency
Attributes
Generates an AudioWave with a certain frequency and amplitude
Generates an AudioWave with a certain frequency and amplitude
Value parameters
- ampitude
-
amplitude of the generated wave
- frequency
-
audio wave frequency
Attributes
Generates a audio clip with a certain duration.
Generates a audio clip with a certain duration.
It also allows rounding the duration to the closest cycle, to smoothly merge results from oscilators.
Value parameters
- amplitude
-
amplitude of the wave
- duration
-
duration of the clip
- frequncy
-
frequency to play
- roundDuration
-
weather the duration should be rounded down to match a oscillator cycle
Attributes
Maps the waves generated by this oscillator
Maps the waves generated by this oscillator
Value parameters
- f
-
function that maps one amplitude to another
Attributes
- Returns
-
a new oscillator that generates the transformed waves