de.sciss.synth.ugen

DetectSilence

final case class DetectSilence(rate: MaybeRate, in: GE, amp: GE = synth.this.GE.const(1.0E-4), dur: GE = synth.this.GE.const(0.1), doneAction: GE = ...) extends SingleOut with HasSideEffect with Product with Serializable

A UGen which detects whether its input signal falls below a given amplitude for a given amount of time (becoming "silent"). A silence is detected if the absolute sample values of the input remain less than or equal to the amp threshold for a consecutive amount of time given by the dur argument.

A value of 1 is output when this condition is met, and a value of 0 is output when the condition is not met (i.e. at least one sample occurs in the input whose absolute value is greater than amp ). Besides, when the output changes from zero to one, the doneAction is executed (unless it is doNothing ).

A special case is the initial condition of the UGen: It will begin with an output value of 0 (no silence detected), even if the input signal is below the amplitude threshold. It is only after the first input sample rising above the threshold that the actual monitoring begins and a trigger of 1 or the firing of the done-action may occur.

in

input signal to be measured.

amp

minimum amplitude threshold which must be exceeded for the input signal to be considered non-silent. (init-time only)

dur

The duration in seconds for which the input signal must be continuously smaller than or equal to the threshold to be considered silent. (init-time only)

doneAction

an action to be performed when the output changes from zero to one (silence detected).

See also

Amplitude

Linear Supertypes
Serializable, Serializable, HasSideEffect, SingleOut, SomeOut, GE.Lazy, GE, UGenSource[UGenInLike], Expander[UGenInLike], Lazy, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DetectSilence
  2. Serializable
  3. Serializable
  4. HasSideEffect
  5. SingleOut
  6. SomeOut
  7. Lazy
  8. GE
  9. UGenSource
  10. Expander
  11. Lazy
  12. Product
  13. Equals
  14. AnyRef
  15. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DetectSilence(rate: MaybeRate, in: GE, amp: GE = synth.this.GE.const(1.0E-4), dur: GE = synth.this.GE.const(0.1), doneAction: GE = ...)

    in

    input signal to be measured.

    amp

    minimum amplitude threshold which must be exceeded for the input signal to be considered non-silent. (init-time only)

    dur

    The duration in seconds for which the input signal must be continuously smaller than or equal to the threshold to be considered silent. (init-time only)

    doneAction

    an action to be performed when the output changes from zero to one (silence detected).

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val amp: GE

    minimum amplitude threshold which must be exceeded for the input signal to be considered non-silent.

    minimum amplitude threshold which must be exceeded for the input signal to be considered non-silent. (init-time only)

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val doneAction: GE

    an action to be performed when the output changes from zero to one (silence detected).

  10. val dur: GE

    The duration in seconds for which the input signal must be continuously smaller than or equal to the threshold to be considered silent.

    The duration in seconds for which the input signal must be continuously smaller than or equal to the threshold to be considered silent. (init-time only)

  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. lazy val hashCode: Int

    Definition Classes
    UGenSource → AnyRef → Any
  15. val in: GE

    input signal to be measured.

  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. def makeUGens: UGenInLike

    Attributes
    protected
    Definition Classes
    DetectSilence → Expander
  18. final def name: String

    Definition Classes
    UGenSource
  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. val rate: MaybeRate

    Definition Classes
    DetectSilence → GE
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  24. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from HasSideEffect

Inherited from SingleOut

Inherited from SomeOut

Inherited from GE.Lazy

Inherited from GE

Inherited from UGenSource[UGenInLike]

Inherited from Expander[UGenInLike]

Inherited from Lazy

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped