eu.joaocosta.minart.audio.AudioWave
See theAudioWave companion trait
object AudioWave
Attributes
Members list
Value members
Concrete methods
Creates an audio wave from an audio clip. Every amplitude outside of the clip duration is set to 0.
Creates an audio wave from an audio clip. Every amplitude outside of the clip duration is set to 0.
Value parameters
- audioClip
-
reference clip
Attributes
Creates an audio wave from a generator function.
Creates an audio wave from a generator function.
Value parameters
- generator
-
generator function from a time t to an amplitude
Attributes
Generates an audio wave for a sequence of samples. Every value outside of the sequence is 0.
Generates an audio wave for a sequence of samples. Every value outside of the sequence is 0.
Value parameters
- data
-
indexed sequence of samples (with amplitude between [-1.0, 1.0])
- sampleRate
-
sample rate used in the sequence
Attributes
Concrete fields
Audio wave with just silence
Audio wave with just silence
Attributes
In this article