fixed port example
@@ -6,7 +6,7 @@ using namespace daisysp;
static daisy_handle seed;
static port slew;
static metro clock;
-static oscillator osc_sine;
+static Oscillator osc_sine;
float freq;
@@ -23,9 +23,9 @@ static void audioCallback(float *in, float *out, size_t size)
}
slewed_freq = slew.process(freq);
- osc_sine.set_freq(slewed_freq);
+ osc_sine.SetFreq(slewed_freq);
- sine = osc_sine.process();
+ sine = osc_sine.Process();
// left out
out[i] = sine;
@@ -46,10 +46,10 @@ int main(void)
clock.init(1, DSY_AUDIO_SAMPLE_RATE);
// set parameters for sine oscillator object
- osc_sine.init(DSY_AUDIO_SAMPLE_RATE);
- osc_sine.set_waveform(oscillator::WAVE_SIN);
- osc_sine.set_freq(100);
- osc_sine.set_amp(0.25);
+ osc_sine.Init(DSY_AUDIO_SAMPLE_RATE);
+ osc_sine.SetWaveform(Oscillator::WAVE_SIN);
+ osc_sine.SetFreq(100);
+ osc_sine.SetAmp(0.25);
// define callback
dsy_audio_set_callback(DSY_AUDIO_INTERNAL, audioCallback);
