summaryrefslogtreecommitdiffstats
path: root/src/osc_sound.c
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2023-11-27 01:03:38 +0200
committergramanas <anastasis.gramm2@gmail.com>2023-11-27 01:03:38 +0200
commitb0128e30840dff1e7db7bcfd69e6fa4f09ed5fbe (patch)
tree633be15d0e962db8fd7f2254df7a852f53b85ddc /src/osc_sound.c
parentfb31c071fe835c5ffd1f70d3558acecee2ed7f17 (diff)
downloadsynth-project-b0128e30840dff1e7db7bcfd69e6fa4f09ed5fbe.tar.gz
synth-project-b0128e30840dff1e7db7bcfd69e6fa4f09ed5fbe.tar.bz2
synth-project-b0128e30840dff1e7db7bcfd69e6fa4f09ed5fbe.zip
wavetables
Diffstat (limited to 'src/osc_sound.c')
-rw-r--r--src/osc_sound.c12
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,