Index: share/config ================================================================== --- share/config +++ share/config @@ -37,15 +37,14 @@ set scale = 8 set window = hanning set fontFamily = droid sans set fontSize = 14 set help = xterm -e man fex-help -## CAUTION: logFreq was added by user request. While the option will accurately -## log (base 10) transform frequencies as requested, I have not done any testing -## on whether this produces reasonable results. Using this option is strongly -## discouraged until it has been thoroughly tested and found to give reasonable -## results. +## CAUTION: logFreq was added by user request. While the option will log (base 10) +## transform frequencies. I have not done any testing on whether this produces +## reasonable results. Using this option is discouraged # until it has been more +## well tested. set logFreq = false ## Colors ## spectrogram: background spectrogram ## threshold: points included in the signal Index: src/spectro.c ================================================================== --- src/spectro.c +++ src/spectro.c @@ -144,14 +144,12 @@ f = j; } /* add points and do calculations if f is above threshold */ if (f > 0 && spect->fft->amp[i][f] > conf.thresh) { if (lt != spect->fft->time[0]) { - if (conf.log10) - spect->pex += hypot(log10(spect->fft->freq[f]) - log10(lf),spect->fft->time[i] - lt); - else - spect->pex += hypot(spect->fft->freq[f] - lf,spect->fft->time[i] - lt); + if (conf.log10) spect->pex += hypot(log10(spect->fft->freq[f]) - log10(lf),spect->fft->time[i] - lt); + else spect->pex += hypot(spect->fft->freq[f] - lf,spect->fft->time[i] - lt); spect->tex += spect->fft->time[i] - lt; } lt = spect->fft->time[i]; lf = spect->fft->freq[f]; cairo_line_to(l,