summaryrefslogtreecommitdiffstats
path: root/src/synth_engine.c
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2023-07-07 22:19:48 +0300
committergramanas <anastasis.gramm2@gmail.com>2023-07-07 22:19:48 +0300
commit3466a5ee2a4e03dae73f6c441d6f1daa5718952d (patch)
treedb6f4d1056bda6042523805c3edcbdbd5abf1b97 /src/synth_engine.c
parentc8cd7f9298de876f2046fddd2e322a63c421a505 (diff)
downloadsynth-project-3466a5ee2a4e03dae73f6c441d6f1daa5718952d.tar.gz
synth-project-3466a5ee2a4e03dae73f6c441d6f1daa5718952d.tar.bz2
synth-project-3466a5ee2a4e03dae73f6c441d6f1daa5718952d.zip
moar
Diffstat (limited to 'src/synth_engine.c')
-rw-r--r--src/synth_engine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/synth_engine.c b/src/synth_engine.c
index 5118c7d..d17ba49 100644
--- a/src/synth_engine.c
+++ b/src/synth_engine.c
@@ -92,8 +92,8 @@ gen3(float f, midi_note_t * midi_note, float x, unsigned int sample_rate)
//return sqr_sample(1, f, .5, midi_note->elapsed, sample_rate);
//return wvt_next(wvt_sound, f, sample_rate, &midi_note->wvt_index);
- float sample = osc_sound(midi_note->wvt_index);
- midi_note->wvt_index = osc_sound_next(f, midi_note->wvt_index);
+ float sample = osc_saw(midi_note->wvt_index);
+ midi_note->wvt_index = osc_saw_next(f, midi_note->wvt_index);
return sample;
/* return sawX_sample(0.7, f, 5, midi_note->elapsed, sample_rate) */