def sprModelSynth(tfreq, tmag, tphase, xr, N, H, fs):
 ys = SM.sineModelSynth(tfreq, tmag, tphase, N, H, fs)
 y = (ys[:min(ys.size, xr.size)] + xr[:min(ys.size, xr.size)])
 return (y, ys)

def sprModelSynth ( tfreq , tmag , tphase , xr , N , H , fs ) : ys = SM . sineModelSynth ( tfreq , tmag , tphase , N , H , fs ) y = ( ys [ : min ( ys . size , xr . size ) ] + xr [ : min ( ys . size , xr . size ) ] ) return ( y , ys )
synthesis of a sound using the sinusoidal plus residual model tfreq .