Skip to content

Commit

Permalink
fixed indentation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
genekogan committed Aug 10, 2018
1 parent 88e8d2c commit 37957ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/tSNE-audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_audio_files(path, extension):
def get_features(y, sr):
y = y[0:sr] # analyze just first second
S = librosa.feature.melspectrogram(y, sr=sr, n_mels=128)
log_S = librosa.amplitude_to_db(S, ref=np.max)
log_S = librosa.amplitude_to_db(S, ref=np.max)
mfcc = librosa.feature.mfcc(S=log_S, n_mfcc=13)
delta_mfcc = librosa.feature.delta(mfcc, mode='nearest')
delta2_mfcc = librosa.feature.delta(mfcc, order=2, mode='nearest')
Expand Down

0 comments on commit 37957ec

Please sign in to comment.