object Sound
- Source
- sound.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Sound
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- trait Render extends AnyRef
- case class SoundFile(file: File)(implicit render: Render) extends Product with Serializable
- trait SoundOutput extends AnyRef
- case class SoundSample[A](samples: Iterable[A], sampleDomain: Bound[A], sampleRate: Frequency, channels: Int, length: Time) extends Sound with Product with Serializable
samples are assumed to be prescaled linear pressure mapped to PCM_SIGNED 16bit (Short) sound samples
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(samples: Array[Short], sampleRate: Frequency): SoundSample[Short]
- def apply(samples: Array[Double], sampleRate: Frequency, sampleDomain: Bound[Double]): SoundSample[Double]
assume mono samples from -1 to 1
- def apply(file: File)(implicit render: Render): SoundFile
The java sound library is way over complex for the simple cases
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def sin(freq: Frequency, length: Time = 1.s, sampleRate: Frequency = 8.k.hz): SoundSample[Double]
convenience constructor for sinusoid samples
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toMP3(src: File)(implicit ec: drx.ExecutionContext): drx.Future[File]
use a ffmpeg (if on the path) scenes to make an mp3 file
- def toString(): String
- Definition Classes
- AnyRef → Any
- def toWAV(src: File)(implicit ec: drx.ExecutionContext): drx.Future[File]
use a ffmpeg (if on the path) scenes to make an wav file
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- implicit object RenderJVM extends Render