Difference between revisions of "Demiurge/Oscillator"

From Stm32World Wiki
Jump to navigation Jump to search
(Created page with " The Oscillator is a block that generates waveforms at a controllable frequency and amplitude. The start of the waveform is also controllable with the *trigger*, but should be...")
 
Line 1: Line 1:
  
The Oscillator is a block that generates waveforms at a controllable frequency and amplitude. The start of the waveform is also controllable with the *trigger*, but should be used with caution as it introduces spike frequencies.
+
The Oscillator is a block that generates waveforms at a controllable frequency and amplitude. The start of the waveform is also controllable with the '''trigger''', but should be used with caution as it introduces spike frequencies.
  
 
[https://github.com/AwesomeAudioApparatus/demiurge/tree/master/software/components/demiurge/src/oscillator.c Source Code]
 
[https://github.com/AwesomeAudioApparatus/demiurge/tree/master/software/components/demiurge/src/oscillator.c Source Code]
  
### Inputs
+
{|  class="wikitable"
| Name | Description |
+
|+ Inputs
|------|-------------|
+
|-
| frequency | The frequency to generate. For non-SINE, it is the inverse of the full cycle period |
+
! Name !! Description  
| amplitude | The amplitude of the output signal. |
+
|-
| trigger | Re-trigger the wave generation to time zero. |
+
| frequency || The frequency to generate. For non-SINE, it is the inverse of the full cycle period.
 +
| amplitude || The amplitude of the output signal.
 +
| trigger || Re-trigger the wave generation to time zero.
 +
|}
  
 
+
== Example ==
### Example
 

Revision as of 10:07, 20 August 2022

The Oscillator is a block that generates waveforms at a controllable frequency and amplitude. The start of the waveform is also controllable with the trigger, but should be used with caution as it introduces spike frequencies.

Source Code

Inputs
Name Description
frequency The frequency to generate. For non-SINE, it is the inverse of the full cycle period. amplitude The amplitude of the output signal. trigger Re-trigger the wave generation to time zero.

Example