def hpsModelSynth(hfreq, hmag, hphase, stocEnv, N, H, fs):
 yh = SM.sineModelSynth(hfreq, hmag, hphase, N, H, fs)
 yst = STM.stochasticModelSynth(stocEnv, H, (H * 2))
 y = (yh[:min(yh.size, yst.size)] + yst[:min(yh.size, yst.size)])
 return (y, yh, yst)

def hpsModelSynth ( hfreq , hmag , hphase , stocEnv , N , H , fs ) : yh = SM . sineModelSynth ( hfreq , hmag , hphase , N , H , fs ) yst = STM . stochasticModelSynth ( stocEnv , H , ( H * 2 ) ) y = ( yh [ : min ( yh . size , yst . size ) ] + yst [ : min ( yh . size , yst . size ) ] ) return ( y , yh , yst )
synthesis of a sound using the harmonic plus stochastic model hfreq .