Control utilities for Hydra visual synthesizer
Hydra LFO » Functions » clip « source: src/components/modifiers.js
clip(u, l, s)
clip({u, l, s})
Allows you to ensure the values are within an aceptable range for the following operations.
u
: Upper bound. Default is 1
l
: Lower bound. Default is 0
s
: Scale to apply to inpcoming value before clipping. Default is 1
o
: Offset to add after clipping. Default is 0
A value in the range of [l, u] + o
.
shape(3).rotate(
L.set(L.time(), 'init')
.use('init')
.map((x, {time}) => time - x)
.clip(10)
.map((x) => (10 - x)/10)
.rad()
).out(o0);
Other functions in Modifier functions:
Other categories:
Asynchronous functions - General Hydra LFO utility functions - Generator functions - Math related functions - Modifier functions - Time functions -
All functions reference on one page