diff options
Diffstat (limited to 'src/osc_sound.c')
-rw-r--r-- | src/osc_sound.c | 12 |
1 files changed, 9 insertions, 3 deletions
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, |