AudioWave

eu.joaocosta.minart.audio.AudioWave
See theAudioWave companion object
trait AudioWave extends Double => Double

Infinite audio wave represented by a continuous function from time (in seconds) to amplitude (in [-1, 1]).

Value parameters

wave

continuous function representing the wave

Attributes

Companion
object
Graph
Supertypes
trait Double => Double
class Object
trait Matchable
class Any
Self type

Members list

Value members

Abstract methods

Returns the amplitude at time t.

Returns the amplitude at time t.

Attributes

Concrete methods

final def apply(t: Double): Double

Returns the amplitude at time t.

Returns the amplitude at time t.

Attributes

final def clip(start: Double, end: Double): AudioClip

Returns an AudioClip from this wave from start to end

Returns an AudioClip from this wave from start to end

Attributes

final def coflatMap(f: AudioWave => Double): AudioWave

Coflatmaps this wave with a AudioWave => Double function. Effectively, each sample of the new wave is computed from a translated wave, which can be used to implement convolutions.

Coflatmaps this wave with a AudioWave => Double function. Effectively, each sample of the new wave is computed from a translated wave, which can be used to implement convolutions.

Attributes

final def contramap(f: Double => Double): AudioWave

Contramaps the values of this wave.

Contramaps the values of this wave.

Attributes

def drop(time: Double): AudioWave

Returns a new AudioWave without the first time seconds

Returns a new AudioWave without the first time seconds

Attributes

final def flatMap(f: Double => AudioWave): AudioWave

Flatmaps this wave with another wave.

Flatmaps this wave with another wave.

Attributes

final def map(f: Double => Double): AudioWave

Maps the values of this wave.

Maps the values of this wave.

Attributes

final def take(time: Double): AudioClip

Returns an AudioClip from this wave with just the first time seconds

Returns an AudioClip from this wave with just the first time seconds

Attributes

override def toString: String

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
Function1 -> Any
final def zipWith(that: AudioWave, f: (Double, Double) => Double): AudioWave

Combines this wave with another by combining their values using the given function.

Combines this wave with another by combining their values using the given function.

Attributes

Inherited methods

def andThen[A](g: Double => A): T1 => A

Attributes

Inherited from:
Function1
def compose[A](g: A => Double): A => R

Attributes

Inherited from:
Function1