[Csnd] pvsanal question - high frequency samples
Date | 2013-12-26 18:39 |
From | Roger Kelly |
Subject | [Csnd] pvsanal question - high frequency samples |
I am noticing that when using the below snippet of code that higher frequency samples produce mostly 0's in the lower amplitude bins and negatives in the rest of the upper frequency amp bins. This does not happen with lower frequency samples (like 'C1.wav'). What gives? inbins = 1024 ifn ftgen 0,0,inbins,10,1 ; make ftable ifn2 ftgen 0,0,inbins,10,1 ; make ftable alin, arin soundin "C:\\temp\\C4_1.wav" fftinl pvsanal alin, ifftsize, ioverlap, iwinsize, iwinshape aout pvsynth fftinl kflag pvsftw fftinl,ifn, ifn2 if ( kflag == 1 ) then ftsavek "pvs.txt",kflag, 1, ifn ftsave "pvs2.txt", 0, ifn2 endif |