def scale_to_temp

bend-prot@0.1.0.0 · sim.bend:129

import bend-prot@0.1.0.0/sim.bend as Sim
import Base

129def scale_to_temp(ds: List<&2, DynAtom>, +now: F32, want: F32) -> List<&2, DynAtom>:
130  vv_scale(ds, Bool.pick(F32, F32.is_eq(now, 0.0), 1.0, F32.sqrt((want / now : F32))))

Uses (8)

Used by (1)