浏览代码

Add other window types for 1024 point FFT

dds
PaulStoffregen 10 年前
父节点
当前提交
23dd5731f6
共有 3 个文件被更改,包括 1075 次插入1 次删除
  1. +1059
    -0
      data_windows.c
  2. +14
    -1
      gui/list.html
  3. +2
    -0
      keywords.txt

+ 1059
- 0
data_windows.c
文件差异内容过多而无法显示
查看文件


+ 14
- 1
gui/list.html 查看文件

@@ -1610,15 +1610,28 @@
signals that are not exact integer division of the sample rate.
</p>
<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
num is 0 to 511.</p>
<p>TODO: caveats about spectral leakage vs frequency precision for arbitrary signals</p>
<p>Window Types:
<ul>
<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>
</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 type="text/x-red" data-template-name="AudioAnalyzeFFT1024">
<div class="form-row">

+ 2
- 0
keywords.txt 查看文件

@@ -48,6 +48,8 @@ amplitude KEYWORD2
offset KEYWORD2
resonance KEYWORD2
octaveControl KEYWORD2
averageTogether KEYWORD2
windowFunction KEYWORD2
modify KEYWORD2
output KEYWORD2
trigger KEYWORD2

正在加载...
取消
保存