com_fft.c, set hanning as default window

This commit is contained in:
dwarning 2013-12-02 22:08:30 +01:00 committed by rlar
parent 38ad8f7602
commit 9e01e1c384
1 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ com_fft(wordlist *wl)
win = TMALLOC(double, length);
maxt = time[length-1];
if (!cp_getvar("specwindow", CP_STRING, window))
strcpy(window, "blackman");
strcpy(window, "hanning");
if (!cp_getvar("specwindoworder", CP_NUM, &order))
order = 2;
if (order < 2)
@ -303,7 +303,7 @@ com_psd(wordlist *wl)
win = TMALLOC(double, length);
maxt = time[length-1];
if (!cp_getvar("specwindow", CP_STRING, window))
strcpy(window, "blackman");
strcpy(window, "hanning");
if (!cp_getvar("specwindoworder", CP_NUM, &order))
order = 2;
if (order < 2)