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
- Alphabetic
- By Inheritance
- PhysicalIn
- Serializable
- Lazy
- GE
- Expander
- Lazy
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- 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
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val indices: I
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def makeUGens(implicit b: Builder): UGenInLike[Double]
Abstract method which must be implemented by creating the actual
UGen
s during expansion.Abstract method which must be implemented by creating the actual
UGen
s 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
- PhysicalIn → Expander
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val numChannels: Int
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated