PaulStoffregen 10 years ago
parent
commit
540fafe65a
2 changed files with 7 additions and 3 deletions
  1. +3
    -3
      gui/list.html
  2. +4
    -0
      synth_sine.h

+ 3
- 3
gui/list.html View File





<script type="text/javascript"> <script type="text/javascript">
RED.nodes.registerType('AnalogOutputAnalog',{
RED.nodes.registerType('AudioOutputAnalog',{
shortName: "dac", shortName: "dac",
inputs:1, inputs:1,
outputs:0, outputs:0,
icon: "arrow-in.png" icon: "arrow-in.png"
}); });
</script> </script>
<script type="text/x-red" data-help-name="AnalogOutputAnalog">
<script type="text/x-red" data-help-name="AudioOutputAnalog">
<h3>Summary</h3> <h3>Summary</h3>
<p>Transmit 12 bit audio using Teensy 3.1's built-in digital to analog converter.</p> <p>Transmit 12 bit audio using Teensy 3.1's built-in digital to analog converter.</p>
<h3>Audio Connections</h3> <h3>Audio Connections</h3>
be an issue for many uses, but care should be used if amplified and driven be an issue for many uses, but care should be used if amplified and driven
to high power tweeters.</p> to high power tweeters.</p>
</script> </script>
<script type="text/x-red" data-template-name="AnalogOutputAnalog">
<script type="text/x-red" data-template-name="AudioOutputAnalog">
<div class="form-row"> <div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label> <label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name"> <input type="text" id="node-input-name" placeholder="Name">

+ 4
- 0
synth_sine.h View File

#ifndef synth_sine_h_ #ifndef synth_sine_h_
#define synth_sine_h_ #define synth_sine_h_


// TODO: investigate making a high resolution sine wave
// using Taylor series expansion.
// http://www.musicdsp.org/showone.php?id=13

class AudioSynthWaveformSine : public AudioStream class AudioSynthWaveformSine : public AudioStream
{ {
public: public:

Loading…
Cancel
Save