ref: ec4eaebf051cb2a781d996fdda43f7e54620be09
parent: 214d58fca21ffd1b44f504d0c48f8cc60f54c52d
parent: 7ef615c8fb11e9ad87fdd22f33b050ba7cf5f41c
author: spiricom <jeff@snyderphonics.com>
date: Sat Jan 25 15:55:55 EST 2020
working formant correction, only tested with filtered noise so far
binary files a/.DS_Store b/.DS_Store differ
binary files a/LEAF/.DS_Store b/LEAF/.DS_Store differ
--- a/LEAF/Src/leaf-effects.c
+++ b/LEAF/Src/leaf-effects.c
@@ -1542,6 +1542,7 @@
_tFormantShifter* fs = *fsr = (_tFormantShifter*) mpool_alloc(sizeof(_tFormantShifter), &m->pool);
fs->ford = order;
+
fs->fk = (float*) mpool_alloc(sizeof(float) * fs->ford, &m->pool);
fs->fb = (float*) mpool_alloc(sizeof(float) * fs->ford, &m->pool);
fs->fc = (float*) mpool_alloc(sizeof(float) * fs->ford, &m->pool);
@@ -1550,7 +1551,6 @@
fs->fsig = (float*) mpool_alloc(sizeof(float) * fs->ford, &m->pool);
fs->fsmooth = (float*) mpool_alloc(sizeof(float) * fs->ford, &m->pool);
fs->ftvec = (float*) mpool_alloc(sizeof(float) * fs->ford, &m->pool);
-
fs->fbuff = (float*) mpool_alloc(sizeof(float*) * fs->ford, &m->pool);
--- a/LEAF_JUCEPlugin/Source/MyTest.cpp
+++ b/LEAF_JUCEPlugin/Source/MyTest.cpp
@@ -87,7 +87,7 @@
x = val * 3.5f + 0.5f;
- a = val * tBuffer_getLength(&buff);
+ a = val * tBuffer_getBufferLength(&buff);
DBG("start: " + String(a));
@@ -95,7 +95,7 @@
y = val * 49.0f + 1.0f;
b = val * 20.0f - 5.0f;
- b = val * tBuffer_getLength(&buff);
+ b = val * tBuffer_getBufferLength(&buff);
DBG("rate: " + String(b));