def hpsModelAnal(x, fs, w, N, H, t, nH, minf0, maxf0, f0et, harmDevSlope, minSineDur, Ns, stocf):
 (hfreq, hmag, hphase) = HM.harmonicModelAnal(x, fs, w, N, H, t, nH, minf0, maxf0, f0et, harmDevSlope, minSineDur)
 xr = UF.sineSubtraction(x, Ns, H, hfreq, hmag, hphase, fs)
 stocEnv = STM.stochasticModelAnal(xr, H, (H * 2), stocf)
 return (hfreq, hmag, hphase, stocEnv)

def hpsModelAnal ( x , fs , w , N , H , t , nH , minf0 , maxf0 , f0et , harmDevSlope , minSineDur , Ns , stocf ) : ( hfreq , hmag , hphase ) = HM . harmonicModelAnal ( x , fs , w , N , H , t , nH , minf0 , maxf0 , f0et , harmDevSlope , minSineDur ) xr = UF . sineSubtraction ( x , Ns , H , hfreq , hmag , hphase , fs ) stocEnv = STM . stochasticModelAnal ( xr , H , ( H * 2 ) , stocf ) return ( hfreq , hmag , hphase , stocEnv )
analysis of a sound using the harmonic plus stochastic model x: input sound .