def twin_osc(id=1) : pitch = slider("twin_pitch_%d"%id,50,1000) diff = sigadd(pitch,slider("twin_pitch_diff_%d"%id,0,20)) return sigadd( sigadd(phasor(pitch),-0.5), sigadd(phasor(diff),-0.5) )
def fm(sig,id=1) : return sin(sigadd( sig, sigmult( phasor(num(slider("fm_freq_%s"%id,-1000,1000))), num(slider("fm_amp_%s"%id,-500,500)) ) ))
def lfo(sig,id=1) : return sigmult( sig, phasor(slider("lfo_%s"%id,-40,40)) )