Skip to content

Commit

Permalink
rearranged parameters in piptrack
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcfee committed Jan 14, 2014
1 parent ff7e633 commit 4d28606
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions librosa/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,11 @@ def ifptrack(y, sr=22050, n_fft=4096, hop_length=None, fmin=(150.0, 300.0), fmax

return pitches, magnitudes, D

def piptrack(S=None, y=None, sr=22050, fmin=150.0, fmax=4000.0, threshold=.1):
def piptrack(y=None, sr=22050, S=None, fmin=150.0, fmax=4000.0, threshold=.1):
'''Pitch tracking on thresholded parabolically-interpolated STFT
:usage:
>>> pitches, magnitudes = librosa.feature.piptrack(y, sr)
>>> pitches, magnitudes = librosa.feature.piptrack(y=y, sr=sr)
:parameters:
- S: np.ndarray or None
Expand Down

0 comments on commit 4d28606

Please sign in to comment.