summaryrefslogtreecommitdiffstats
path: root/src/osc_sound.c
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2023-11-26 16:29:00 +0200
committergramanas <anastasis.gramm2@gmail.com>2023-11-26 16:29:00 +0200
commit8d17aa29baf0b33229dbdd82d8d5f6cbe3fe0240 (patch)
treebc4ec3351f8585b548ddf016c93d3715b324b64c /src/osc_sound.c
parentc03d395f6848fe9b2d1185173a9cf5ec8277394f (diff)
downloadsynth-project-8d17aa29baf0b33229dbdd82d8d5f6cbe3fe0240.tar.gz
synth-project-8d17aa29baf0b33229dbdd82d8d5f6cbe3fe0240.tar.bz2
synth-project-8d17aa29baf0b33229dbdd82d8d5f6cbe3fe0240.zip
Many changes!
Diffstat (limited to 'src/osc_sound.c')
-rw-r--r--src/osc_sound.c7
1 files changed, 5 insertions, 2 deletions
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,