Hi to all
I am working with pulsed waveforms, and have noticed that they are very noisy.
This code
shows the difference between a WAVEFORM_PULSE and an equal but memorized one with WAVEFORM_ARBITRARY: the latter is much better.
So i'm thinking of adapting the code to perform a filter similar to the one present in WAVEFORM_ARBITRARY.
Has anyone already tried it?
I am working with pulsed waveforms, and have noticed that they are very noisy.
This code
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioSynthWaveform waveform1; //xy=263,153
AudioOutputAnalogStereo dacs1; //xy=693,173
AudioConnection patchCord1(waveform1, 0, dacs1, 0);
// GUItool: end automatically generated code
int16_t wave[256];
void setup() {
AudioMemory(10);
for (int i=0;i<256;i++)
{
if (i>51) {
wave[i]=32767;
}
else {
wave[i]=-32767;
}
}
}
void loop() {
waveform1.begin(1,500,WAVEFORM_PULSE);
waveform1.pulseWidth(.2);
delay(2000);
waveform1.arbitraryWaveform(wave, 650.0);
waveform1.begin(1,500,WAVEFORM_ARBITRARY);
delay(2000);
}
So i'm thinking of adapting the code to perform a filter similar to the one present in WAVEFORM_ARBITRARY.
Has anyone already tried it?