This namespace houses higher-order functions for creating modulation generators. A modulation generator is a function hat accepts timing information and returns a value between 0.0 and 1.0. Think an ADSR Envelope.
Supplied values should be considered durations and not instances.
The returned modulation generators expect inputs relative to their lifecycle, not relative to the start of the application. I.e. pass a diff from when the event happens, not the event time.
Time units are in milliseconds.
This namespace houses higher-order functions for creating modulation generators. A modulation generator is a function hat accepts timing information and returns a value between 0.0 and 1.0. Think an ADSR Envelope. Supplied values should be considered durations and not instances. The returned modulation generators expect inputs relative to their lifecycle, not relative to the start of the application. I.e. pass a diff from when the event happens, not the event time. Time units are in milliseconds.
(make-a attack)
Special case of make-ad
where the decay value is set to 0.0
Special case of `make-ad` where the decay value is set to 0.0
(make-ad attack decay)
Returns a parameterized Attack-Decay envelope generator.
Inputs are durations in millis.
The returned function accepts an input, in millis, relative to the start of the envelope.
Returns a parameterized Attack-Decay envelope generator. Inputs are durations in millis. The returned function accepts an input, in millis, relative to the start of the envelope.
(make-d decay)
Special case of make-ad
where the attack value is set to 0.0
Special case of `make-ad` where the attack value is set to 0.0
(make-sin freq)
(make-sin freq phase)
Returns a parameterized sine wave LFO.
Input freq
is in hertz. Input phase
is normalized, [0, 1].
The returned function accepts an input, in millis, relative to the start of the wave generator.
Returns a parameterized sine wave LFO. Input `freq` is in hertz. Input `phase` is normalized, [0, 1]. The returned function accepts an input, in millis, relative to the start of the wave generator.
(make-sin-sync bpm)
(make-sin-sync bpm division)
(make-sin-sync bpm division phase)
Returns a parameterized sine wave LFO. See make-sin
.
Input division
is a fraction of a beat. Input phase is
normalized, [0, 1].
The returned function accepts an input, in millis, relative to the start of the wave generator.
Returns a parameterized sine wave LFO. See `make-sin`. Input `division` is a fraction of a beat. Input phase is normalized, [0, 1]. The returned function accepts an input, in millis, relative to the start of the wave generator.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close