Packages

final case class PhysicalIn(indices: I = 0, numChannels: Int = 1) extends GE.Lazy[Double] with Product with Serializable

An unusual UGen that couples FScape to a real-time audio interface input. It is similar to the standard (ScalaCollider) PhysicalIn UGen, and it was added to be able to work-around limitations of SuperCollider on WebAssembly (such as missing audio file output). It is also useful for testing FScape processes by directly feeding in signals, possibly playing them back in real-time with the corresponding PhysicalOut UGen.

This UGen should be considered experimental, and it is probably not suited to run in permanently a sound installation. It is important to know that the implementation is different between the JVM (desktop) platform and the JS (browser) platform. On the desktop, the input signal comes from SuperCollider (transferring buffer data between SuperCollider and FScape), whereas in the browser, the Web Audio API is used directly. This also leads to different behaviour in terms of latency and drop-out stability.

For drop-out free combined use of PhysicalIn and PhysicalOut, consider inserting a delay by prepending a DC(0.0) of 0.5 to 1.0 seconds duration to the output.

indices

the zero-based channel offset. Note: this is currently not implemented, therefore leave it at the default of zero.

numChannels

the number of channels to stream. The UGen has been tested with mono and stereo signals, and bandwidth seems to be sufficient in these cases. Higher values have not been battle-tested.

See also

PhysicalOut

Linear Supertypes
Serializable, GE.Lazy[Double], GE[Double], Expander[UGenInLike[Double]], Lazy, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PhysicalIn
  2. Serializable
  3. Lazy
  4. GE
  5. Expander
  6. Lazy
  7. Product
  8. Equals
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new PhysicalIn(indices: I = 0, numChannels: Int = 1)

    indices

    the zero-based channel offset. Note: this is currently not implemented, therefore leave it at the default of zero.

    numChannels

    the number of channels to stream. The UGen has been tested with mono and stereo signals, and bandwidth seems to be sufficient in these cases. Higher values have not been battle-tested.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  8. val indices: I
  9. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  10. def makeUGens(implicit b: Builder): UGenInLike[Double]

    Abstract method which must be implemented by creating the actual UGens during expansion.

    Abstract method which must be implemented by creating the actual UGens during expansion. This method is at most called once during graph expansion

    returns

    the expanded object (depending on the type parameter U)

    Attributes
    protected
    Definition Classes
    PhysicalInExpander
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. val numChannels: Int
  15. def productElementNames: Iterator[String]
    Definition Classes
    Product
  16. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  17. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  18. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from GE.Lazy[Double]

Inherited from GE[Double]

Inherited from Expander[UGenInLike[Double]]

Inherited from Lazy

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped