ソースを参照

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

読み込み中…
キャンセル
保存