def hprModelSynth(hfreq, hmag, hphase, xr, N, H, fs):
 yh = SM.sineModelSynth(hfreq, hmag, hphase, N, H, fs)
 y = (yh[:min(yh.size, xr.size)] + xr[:min(yh.size, xr.size)])
 return (y, yh)

def hprModelSynth ( hfreq , hmag , hphase , xr , N , H , fs ) : yh = SM . sineModelSynth ( hfreq , hmag , hphase , N , H , fs ) y = ( yh [ : min ( yh . size , xr . size ) ] + xr [ : min ( yh . size , xr . size ) ] ) return ( y , yh )
synthesis of a sound using the sinusoidal plus residual model tfreq .