import { mix as _mix } from "@thi.ng/math/mix" ; import type { StatelessOscillator } from "./api.js" ; param osc1 param osc2 export const mixOsc = ( osc1 , osc2 ) : StatelessOscillator => ( phase , freq , amp = 1 , dc = 0 , t = 0.5 ) => _mix ( osc1 ( phase , freq , amp , dc ) , osc2 ( phase , freq , amp , dc ) , t ) ; /**
 * Similar to  mixOsc , but with `mix` arg ([0..1] range)
 * directly given to HOF and not changeable after.
 *
 *  param osc1 param osc2 param mix export const mixOscHOF = ( osc1 , osc2 , mix = 0.5 ) : StatelessOscillator => ( phase , freq , amp = 1 , dc = 0 ) => _mix ( osc1 ( phase , freq , amp , dc ) , osc2 ( phase , freq , amp , dc ) , mix ) ;