def hprModelAnal(x, fs, w, N, H, t, minSineDur, nH, minf0, maxf0, f0et, harmDevSlope):
 (hfreq, hmag, hphase) = HM.harmonicModelAnal(x, fs, w, N, H, t, nH, minf0, maxf0, f0et, harmDevSlope, minSineDur)
 Ns = 512
 xr = UF.sineSubtraction(x, Ns, H, hfreq, hmag, hphase, fs)
 return (hfreq, hmag, hphase, xr)

def hprModelAnal ( x , fs , w , N , H , t , minSineDur , nH , minf0 , maxf0 , f0et , harmDevSlope ) : ( hfreq , hmag , hphase ) = HM . harmonicModelAnal ( x , fs , w , N , H , t , nH , minf0 , maxf0 , f0et , harmDevSlope , minSineDur ) Ns = 512 xr = UF . sineSubtraction ( x , Ns , H , hfreq , hmag , hphase , fs ) return ( hfreq , hmag , hphase , xr )
analysis of a sound using the harmonic plus residual model x: input sound .