final case class LFPulse(rate: Rate, freq: GE = 440.0f, iphase: GE = 0.0f, width: GE = 0.5f) extends SingleOut with Product with Serializable
A non-band-limited pulse oscillator UGen. Outputs a high value of one and a low value of zero.
- freq
oscillator frequency in Hertz
- iphase
initial phase offset in cycles (
0..1
). If you think of a buffer of one cycle of the waveform, this is the starting offset into this buffer. Hence, aniphase
of0.25
means that you will hear the first impulse after0.75
periods! If you prefer to specify the perceived delay instead, you could use aniphase
of-0.25 + 1
which is more intuitive. Note that the phase is not automatically wrapped into the range of0..1
, so putting aniphase
of-0.25
currently results in a strange initial signal which only stabilizes to the correct behaviour after one period! (init-time only)- width
pulse width duty cycle from zero to one. If you want to specify the width rather in seconds, you can use the formula
width = freq * dur
, e.g. for a single sample impulse usewidth = freq * SampleDur.ir
.
- See also
- Alphabetic
- By Inheritance
- LFPulse
- Serializable
- SingleOut
- SomeOut
- Lazy
- GE
- UGenSource
- Expander
- Lazy
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new LFPulse(rate: Rate, freq: GE = 440.0f, iphase: GE = 0.0f, width: GE = 0.5f)
- freq
oscillator frequency in Hertz
- iphase
initial phase offset in cycles (
0..1
). If you think of a buffer of one cycle of the waveform, this is the starting offset into this buffer. Hence, aniphase
of0.25
means that you will hear the first impulse after0.75
periods! If you prefer to specify the perceived delay instead, you could use aniphase
of-0.25 + 1
which is more intuitive. Note that the phase is not automatically wrapped into the range of0..1
, so putting aniphase
of-0.25
currently results in a strange initial signal which only stabilizes to the correct behaviour after one period! (init-time only)- width
pulse width duty cycle from zero to one. If you want to specify the width rather in seconds, you can use the formula
width = freq * dur
, e.g. for a single sample impulse usewidth = freq * SampleDur.ir
.
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
- val freq: GE
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- lazy val hashCode: Int
- Definition Classes
- UGenSource → AnyRef → Any
- val iphase: GE
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def makeUGen(_args: Vec[UGenIn]): UGenInLike
- Attributes
- protected
- Definition Classes
- LFPulse → UGenSource
- def makeUGens: UGenInLike
Abstract method which must be implemented by creating the actual
UGen
s during expansion. - final def name: String
- Definition Classes
- UGenSource
- 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()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val rate: Rate
- 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])
- val width: GE
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated