From b0128e30840dff1e7db7bcfd69e6fa4f09ed5fbe Mon Sep 17 00:00:00 2001 From: gramanas Date: Mon, 27 Nov 2023 01:03:38 +0200 Subject: wavetables --- src/osc_sound.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/osc_sound.c') diff --git a/src/osc_sound.c b/src/osc_sound.c index 2a0d519..49d9867 100644 --- a/src/osc_sound.c +++ b/src/osc_sound.c @@ -13,14 +13,20 @@ osc_t OSC_sound = { OSC_COMMON(sound) +int wvt_size = 2048; + 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; + //osc_load_wav(&OSC_sound, "/home/gramanas/code/synth-project/waves/Free Wavetables[2048]/Melda Oscillator[2048-44.1khz-32bit]/Melda SKEW.wav"); + //osc_load_wav(&OSC_sound, "/home/gramanas/code/synth-project/waves/Free Wavetables[2048]/Filter Sweep[2048-44.1khz-32bit]/SweepSaw.wav"); + //osc_load_wav(&OSC_sound, "/home/gramanas/code/synth-project/waves/Free Wavetables[2048]/Additive Synth[2048-44.1khz-32bit]/Add Synth7.wavw"); + osc_load_wav(&OSC_sound, "/home/gramanas/code/synth-project/waves/Free Wavetables[2048]/Korg Analog Synth PhaseShift[2048-44.1khz-32bit]/MS 20 Saw MPS.wav"); + OSC_sound.start = wvt_size*0; + OSC_sound.len = OSC_sound.start + wvt_size; } return osc_interpolate(offset, -- cgit v1.2.3