fixed log scale

This commit is contained in:
Jarcode
2017-11-28 18:04:14 -08:00
parent c295b84c17
commit d5d850e758

View File

@@ -526,7 +526,7 @@ void transform_fft(struct gl_data* d, void** _, void* in) {
/* abs and log scale */
for (n = 0; n < s->sz; ++n) {
if (data[n] < 0.0F) data[n] = -data[n];
data[n] = log(data[n]) / 3;
data[n] = log(data[n] + 1) / 3;
}
}