浏览代码

Add AudioSynthWaveformDc read()

dds
PaulStoffregen 8 年前
父节点
当前提交
15e2c363b3
共有 2 个文件被更改,包括 8 次插入0 次删除
  1. +4
    -0
      gui/index.html
  2. +4
    -0
      synth_dc.h

+ 4
- 0
gui/index.html 查看文件

be specified, but periods longer than 1 second may be automatically be specified, but periods longer than 1 second may be automatically
shortened for small level changes, due to numerical precision limits. shortened for small level changes, due to numerical precision limits.
</p> </p>
<p class=func><span class=keyword>read</span>();</p>
<p class=desc>Read the current level. Returns -1.0 to 1.0. This can be
useful for monitoring the amplitude after configuring a slow change.
</p>
<!-- <!--
<h3>Examples</h3> <h3>Examples</h3>
<p class=exam>File &gt; Examples &gt; Audio &gt; <p class=exam>File &gt; Examples &gt; Audio &gt;

+ 4
- 0
synth_dc.h 查看文件

state = 1; state = 1;
__enable_irq(); __enable_irq();
} }
float read(void) {
int32_t m = magnitude;
return (float)m * (1.0 / 2147418112.0);
}
virtual void update(void); virtual void update(void);
private: private:
uint8_t state; // 0=steady output, 1=transitioning uint8_t state; // 0=steady output, 1=transitioning

正在加载...
取消
保存