AudioWave

eu.joaocosta.minart.audio.AudioWave
See theAudioWave companion object
final case class AudioWave(wave: Double => Double) extends Double => Double

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

Attributes

wave

continuous function representing the wave

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Double => Double
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def byteIterator(sampleRate: Double): Iterator[Byte]

Samples this wave at the specified sample rate and returns an iterator of Bytes in the [-127, 127] range.

Samples this wave at the specified sample rate and returns an iterator of Bytes in the [-127, 127] range.

Attributes

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

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

Flatmaps this wave with another wave.

Flatmaps this wave with another wave.

Attributes

def iterator(sampleRate: Double): Iterator[Double]

Samples this wave at the specified sample rate and returns an iterator of Doubles in the [-1, 1] range.

Samples this wave at the specified sample rate and returns an iterator of Doubles in the [-1, 1] range.

Attributes

Maps the values of this wave.

Maps the values of this wave.

Attributes

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

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

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product