Browse Source

Add other window types for 1024 point FFT

dds
PaulStoffregen 10 years ago
parent
commit
23dd5731f6
3 changed files with 1075 additions and 1 deletions
  1. +1059
    -0
      data_windows.c
  2. +14
    -1
      gui/list.html
  3. +2
    -0
      keywords.txt

+ 1059
- 0
data_windows.c
File diff suppressed because it is too large
View File


+ 14
- 1
gui/list.html View File

signals that are not exact integer division of the sample rate. signals that are not exact integer division of the sample rate.
</p> </p>
<h3>Notes</h3> <h3>Notes</h3>
<p>1024 point FFT uses approx 50% of the CPU power on Teensy 3.1</p>
<p>The raw 16 bit output data bins may be access with myFFT.output[num], where <p>The raw 16 bit output data bins may be access with myFFT.output[num], where
num is 0 to 511.</p> num is 0 to 511.</p>
<p>TODO: caveats about spectral leakage vs frequency precision for arbitrary signals</p> <p>TODO: caveats about spectral leakage vs frequency precision for arbitrary signals</p>
<p>Window Types: <p>Window Types:
<ul> <ul>
<li><span class=literal>AudioWindowHanning1024</span> (default)</li> <li><span class=literal>AudioWindowHanning1024</span> (default)</li>
<li><span class=literal>AudioWindowBartlett1024</span></li>
<li><span class=literal>AudioWindowBlackman1024</span></li>
<li><span class=literal>AudioWindowFlattop1024</span></li>
<li><span class=literal>AudioWindowBlackmanHarris1024</span></li>
<li><span class=literal>AudioWindowNuttall1024</span></li>
<li><span class=literal>AudioWindowBlackmanNuttall1024</span></li>
<li><span class=literal>AudioWindowWelch1024</span></li>
<li><span class=literal>AudioWindowHamming1024</span></li>
<li><span class=literal>AudioWindowCosine1024</span></li>
<li><span class=literal>AudioWindowTukey1024</span></li>
</ul> </ul>
</p> </p>
<p>1024 point FFT has a peak CPU usage of approx 50% on Teensy 3.1.
Average usage is much lower. Future versions might distribute the
load more evenly over time....
</p>
</script> </script>
<script type="text/x-red" data-template-name="AudioAnalyzeFFT1024"> <script type="text/x-red" data-template-name="AudioAnalyzeFFT1024">
<div class="form-row"> <div class="form-row">

+ 2
- 0
keywords.txt View File

offset KEYWORD2 offset KEYWORD2
resonance KEYWORD2 resonance KEYWORD2
octaveControl KEYWORD2 octaveControl KEYWORD2
averageTogether KEYWORD2
windowFunction KEYWORD2
modify KEYWORD2 modify KEYWORD2
output KEYWORD2 output KEYWORD2
trigger KEYWORD2 trigger KEYWORD2

Loading…
Cancel
Save