From 7e6ea529dfa8f8d93c4b9408809fd9e53a358d47 Mon Sep 17 00:00:00 2001 From: Thomas Lidy Date: Mon, 23 Oct 2017 20:03:31 +0200 Subject: [PATCH] solved another bug where bark band #24 was never computed (was always 0!) now its computed --- rp_extract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rp_extract.py b/rp_extract.py index 575bbc4..1ef0a74 100644 --- a/rp_extract.py +++ b/rp_extract.py @@ -294,7 +294,7 @@ def transform2bark(matrix, freq_axis, max_bands=None): matrix_out = np.zeros((max_band,matrix.shape[1]),dtype=matrix.dtype) - for b in range(max_band-1): + for b in range(max_band): # consider (and sum up) those frequencies that lie between the defined bark band limits freq_range_bool = (freq_axis >= barks[b]) & (freq_axis < barks[b + 1]) # debug print