24 #ifndef __SIGNALGENERATOR_H_EAA44B0B__
25 #define __SIGNALGENERATOR_H_EAA44B0B__
28 #include "../../JuceLibraryCode/JuceHeader.h"
29 #include "GenericProcessor.h"
30 #include "Editors/SignalGeneratorEditor.h"
48 void process(AudioSampleBuffer &buffer, MidiBuffer &midiMessages,
int& nSamples);
50 void setParameter (
int parameterIndex,
float newValue);
52 float getSampleRate() {
return 44100.0;}
54 AudioProcessorEditor* createEditor();
55 bool hasEditor()
const {
return true;}
60 bool isSource() {
return true;}
62 void updateSettings();
64 int getDefaultNumOutputs() {
return nOut;}
70 double defaultFrequency;
71 double defaultAmplitude;
73 float sampleRateRatio;
79 TRIANGLE, SINE, SQUARE, SAW, NOISE
82 Array<int> waveformType;
83 Array<double> frequency;
84 Array<double> amplitude;
86 Array<double> phasePerSample;
87 Array<double> currentPhase;
97 #endif // __SIGNALGENERATOR_H_EAA44B0B__