From 8d17aa29baf0b33229dbdd82d8d5f6cbe3fe0240 Mon Sep 17 00:00:00 2001 From: gramanas Date: Sun, 26 Nov 2023 16:29:00 +0200 Subject: Many changes! --- src/osc_sound.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/osc_sound.c') diff --git a/src/osc_sound.c b/src/osc_sound.c index e69aea2..2a0d519 100644 --- a/src/osc_sound.c +++ b/src/osc_sound.c @@ -8,7 +8,7 @@ osc_t OSC_sound = { .len = 0, .start = 0, .end = 0, - .type = SAMPLE, + .type = WAVE, }; OSC_COMMON(sound) @@ -17,7 +17,10 @@ float osc_sound(float offset) { if (!OSC_sound.len) { - osc_load_wav(&OSC_sound, "/home/gramanas/code/synth-project/waves/test_lick.wav"); +// osc_load_wav(&OSC_sound, "/home/gramanas/code/synth-project/waves/test_lick.wav"); + //osc_load_wav(&OSC_sound, "/home/gramanas/code/synth-project/waves/Free Wavetables[128]/FM Synthesis[128-44.1khz-16bit]/FM Sq- NotPM.wav"); + osc_load_wav(&OSC_sound, "/home/gramanas/code/synth-project/waves/Free Wavetables[2048]/Melda Oscillator[2048-44.1khz-32bit]/Melda CustumWave2.wav"); + OSC_sound.len = 2048; } return osc_interpolate(offset, -- cgit v1.2.3