blob: 4e81297e71d802d596cc6a6408e110919265023f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#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;
}
|