Skip to content

Commit

Permalink
fix issue #306:Probably incorrect calculation of window ratio in mid_…
Browse files Browse the repository at this point in the history
…feature_extraction()
  • Loading branch information
tyiannak committed Nov 19, 2020
1 parent a16ca2d commit f7f170d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyAudioAnalysis/MidTermFeatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ def mid_feature_extraction(signal, sampling_rate, mid_window, mid_step,

n_stats = 2
n_feats = len(short_features)
mid_window_ratio = int(round(mid_window / short_step))
#mid_window_ratio = int(round(mid_window / short_step))
mid_window_ratio = round((mid_window -
(short_window - short_step)) / short_step)
mt_step_ratio = int(round(mid_step / short_step))

mid_features, mid_feature_names = [], []
Expand Down

0 comments on commit f7f170d

Please sign in to comment.