AudioWave

eu.joaocosta.minart.audio.AudioWave$
See theAudioWave companion trait
object AudioWave

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

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.

Attributes

audioClip

reference clip

def fromFunction(generator: Double => Double): AudioWave

Creates an audio wave from a generator function.

Creates an audio wave from a generator function.

Attributes

generator

generator function from a time t to an amplitude

def fromIndexedSeq(data: IndexedSeq[Double], sampleRate: Double): AudioWave

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.

Attributes

data

indexed sequence of samples (with amplitude between [-1.0, 1.0])

sampleRate

sample rate used in the sequence

Concrete fields

val silence: EmptyAudioWave.type

Audio wave with just silence

Audio wave with just silence

Attributes