#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; }