def spsModelSynth(tfreq, tmag, tphase, stocEnv, N, H, fs):
 ys = SM.sineModelSynth(tfreq, tmag, tphase, N, H, fs)
 yst = STM.stochasticModelSynth(stocEnv, H, (H * 2))
 y = (ys[:min(ys.size, yst.size)] + yst[:min(ys.size, yst.size)])
 return (y, ys, yst)

def spsModelSynth ( tfreq , tmag , tphase , stocEnv , N , H , fs ) : ys = SM . sineModelSynth ( tfreq , tmag , tphase , N , H , fs ) yst = STM . stochasticModelSynth ( stocEnv , H , ( H * 2 ) ) y = ( ys [ : min ( ys . size , yst . size ) ] + yst [ : min ( ys . size , yst . size ) ] ) return ( y , ys , yst )
synthesis of a sound using the sinusoidal plus stochastic model tfreq .