@@ -44,7 +44,7 @@ def test_roughness_dw():
44
44
45
45
# Stimulus generation
46
46
stimulus , _ = signal_test (
47
- fc = 1000 , fmod = 70 , mdepth = 1 , fs = 44100 , d = 0.2 , dB = 70 )
47
+ fc = 1000 , fmod = 70 , mdepth = 1 , fs = 44100 , d = 0.2 , dB = 60 )
48
48
49
49
# Roughness calculation
50
50
roughness , time , _ , _ = roughness_dw (stimulus , fs = 44100 , overlap = 0 )
@@ -82,7 +82,7 @@ def test_roughness_dw_sdt():
82
82
83
83
# Stimulus generation
84
84
stimulus , time = signal_test (
85
- fc = 1000 , fmod = 70 , mdepth = 1 , fs = 44100 , d = 0.2 , dB = 70 )
85
+ fc = 1000 , fmod = 70 , mdepth = 1 , fs = 44100 , d = 0.2 , dB = 60 )
86
86
time = DataLinspace (
87
87
name = "time" ,
88
88
unit = "s" ,
@@ -141,11 +141,9 @@ def test_roughness_dw_freq():
141
141
142
142
# conversion into frequency domain
143
143
n = len (stimulus )
144
- window = np .blackman (n )
145
- window = window / sum (window )
146
144
147
145
# Creation of the spectrum by FFT using the Blackman window
148
- spec = fft (stimulus * window )[0 :n // 2 ] * 1.42
146
+ spec = fft (stimulus )[0 :n // 2 ] * 1.42
149
147
# Highest frequency
150
148
nMax = round (n / 2 )
151
149
# Frequency axis in Hertz
@@ -157,6 +155,7 @@ def test_roughness_dw_freq():
157
155
"name" : "Roughness" ,
158
156
"values" : roughness ,
159
157
}
158
+ print (R )
160
159
161
160
# Check compliance
162
161
tst = check_compliance (R )
0 commit comments