Sampler

eu.joaocosta.minart.audio.Sampler
object Sampler

Helper methods to sample an Audio Wave or Clip.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Sampler.type

Members list

Value members

Concrete methods

def numSamples(clip: AudioClip, sampleRate: Double): Int

Returns the number of samples required to store a clip with a certain sample rate.

Returns the number of samples required to store a clip with a certain sample rate.

Attributes

def resample(clip: AudioClip, sampleRate: Double): AudioClip

Resamples this audio clip with a specified frame rate. This can be useful, for example, to avoid recomputing transformations every time the clip is played.

Resamples this audio clip with a specified frame rate. This can be useful, for example, to avoid recomputing transformations every time the clip is played.

Attributes

def sampleClip(clip: AudioClip, sampleRate: Double): Iterator[Double]

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

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

Attributes

def sampleWave(wave: AudioWave, sampleRate: Double): Iterator[Double]

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

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

Attributes