home/ atoms/ hydra-speed-time-animation

Hydra's speed global scales the global time variable that drives parameter animation

Hydra maintains a global time variable, accessible inside arrow functions, that reports the seconds elapsed since the synth started. Time-based animation is written by passing an arrow function that reads time as a function argument. The global speed (default 1) multiplies the rate at which time progresses: setting speed = 0.5 makes every time-based animation run at half rate, speed = 2 doubles it. Assigning speed in the editor takes effect immediately and persists until reassigned. (A separate bpm global, default 30, changes the rate at which Hydra steps through array-sequenced values — a different clock from speed.)

Examples

speed = 0.25                    // slow-motion
osc(10, () => time * 0.1).out() // time drives the oscillator sync

Assessment

What global do you set to make all Hydra animations play at half speed, and what value? Explain how time is used to animate a parameter, and how speed relates to it.

“Makes time run faster or slower inside Hydra.”