eu.joaocosta.minart.audio.Oscillator
See theOscillator companion object Oscillator used to create periodic waves.
Attributes
- generator
function used to generate a wave based on a frequency
- Companion:
- object
- Graph
- Supertypes
trait Serializable
class Object
trait Matchable
class Any
Members list
Concise view
Value members
Generates an AudioWave with a certain frequency
Generates an AudioWave with a certain frequency
Attributes
- frequency
audio wave frequency
Generates an AudioWave with a certain frequency and amplitude
Generates an AudioWave with a certain frequency and amplitude
Attributes
- ampitude
amplitude of the generated wave
- frequency
audio wave frequency
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.
Attributes
- 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
Maps the waves generated by this oscillator
Maps the waves generated by this oscillator
Attributes
- f
function that maps one amplitude to another
- Returns:
a new oscillator that generates the transformed waves
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns:
a string representation of the object.
- Definition Classes
- Inherited from:
- Function1