27 #ifndef eris_synth_waveform_h_
28 #define eris_synth_waveform_h_
31 #include "synth_waveform.h"
54 }
else if (freq > AUDIO_SAMPLE_RATE_EXACT / 2.0f) {
55 freq = AUDIO_SAMPLE_RATE_EXACT / 2.0f;
63 }
else if (angle > 360.0f) {
64 angle = angle - 360.0f;
65 if (angle >= 360.0f)
return;
76 }
else if (n > 1.0f) {
84 }
else if (n > 1.0f) {
92 }
else if (n > 1.0f) {
100 if (t_type == WAVEFORM_BANDLIMIT_SQUARE)
102 else if (t_type == WAVEFORM_BANDLIMIT_PULSE)
104 else if (t_type == WAVEFORM_BANDLIMIT_SAWTOOTH || t_type == WAVEFORM_BANDLIMIT_SAWTOOTH_REVERSE)
107 void begin(
float t_amp,
float t_freq,
short t_type) {
118 virtual void update(
void);
146 }
else if (freq > AUDIO_SAMPLE_RATE_EXACT / 2.0f) {
147 freq = AUDIO_SAMPLE_RATE_EXACT / 2.0f;
155 }
else if (n > 1.0f) {
163 }
else if (n > 1.0f) {
170 if (t_type == WAVEFORM_BANDLIMIT_SQUARE)
172 else if (t_type == WAVEFORM_BANDLIMIT_PULSE)
174 else if (t_type == WAVEFORM_BANDLIMIT_SAWTOOTH || t_type == WAVEFORM_BANDLIMIT_SAWTOOTH_REVERSE)
177 void begin(
float t_amp,
float t_freq,
short t_type) {
188 if (octaves > 12.0f) {
190 }
else if (octaves < 0.1f) {
197 if (degrees > 9000.0f) {
199 }
else if (degrees < 30.0f) {
205 virtual void update(
void);