blob: 4e81297e71d802d596cc6a6408e110919265023f (
plain) (
tree)
|
|
#include "generator.h"
float
generate(generator * g, synth_t * s, int i)
{
float sample = 0;
float f = get_frequency(g, s, i);'
sample = osc_saw(midi_note->wvt_index);
midi_note->wvt_index = osc_saw_next(f, midi_note->wvt_index);
return sample;
}
|