AudioClip

eu.joaocosta.minart.audio.AudioClip$
See theAudioClip companion class
object AudioClip

Attributes

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

Members list

Concise view

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(wave: Double => Double, duration: Double): AudioClip

Creates an audio clip from a wave and a duration

Creates an audio clip from a wave and a duration

Attributes

duration

clip duration

wave

function from time in seconds and amplitude in [-1, 1]

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

Generates an audio clip for a sequence of samples.

Generates an audio clip for a sequence of samples.

Attributes

data

indexed sequence of samples

sampleRate

sample rate used in the sequence

def silence(duration: Double): AudioClip

Audio clip with just silence for the specified duration

Audio clip with just silence for the specified duration

Attributes

Concrete fields

Empty audio clip

Empty audio clip

Attributes