Control utilities for Hydra visual synthesizer
Hydra LFO » Functions » use « source: src/components/general.js
use(n, c)
use({n, c})
You can manipulate a custom list of values which
you can refer to by name. The val value is the default used initially.
The last value that’s in use will be what the LFO function finally returns.
Though fast and
the likes are the preferred way to manipulate time you can also use
use('time') to manipulate time directly or return its value from the LFO
function.
n: The name of the value. The default value is val. You can
manipulate time or bpm or any other string value as well.
c: Should the currently in use value be copied over to the new on
one. Either true to copy or false to keep the value untouched. Defaul
is false
The currently in use value.
shape(L.set(10).use('time').mul(2).use('val')).out(o0)
shape(10, L.use('time').add(1).use('val').sin().add(1)).out(o0)
Other functions in General Hydra LFO utility 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