Hydra LFO

Control utilities for Hydra visual synthesizer


Project maintained by oscons Hosted on GitHub Pages — Theme by mattgraham

Hydra LFO » Functions » used «  source: src/components/general.js

used - Return the name of the currently in use value

used()

This function allows you to retrieve the name of the current default parameter that is modufied by functions like mul or set.

This is usually most helpful for debugging purposes, though you could use it in map too.

Parameters

This function takes no parameters.

Returns

The name set by the last use command or val if not set at all.

Examples

console.log(L.used()) // == 'val'
console.log(L.use('time').used()) == 'time'

shape(3)
    .rotate(
        L.use(() => (time % 2 < 1 ? "cos" : "sin"))
            .used()
            .map((x, _, {time}) => eval(`Math.${x}(time)`))
            .mul(2)
    ).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


Hydra LFO » Functions » used