History

working formant correction, only tested with filtered noise so far

spiricom committed 6 years ago

Commit ec4eaeb2 parents 214d58f 7ef615c4 files · +1 −1Browse files

Unified · Split

4 files
  1. .DS_Store +0 −0
  2. LEAF/.DS_Store +0 −0
  3. LEAF/Src/leaf-effects.c +1 −1
  4. LEAF_JUCEPlugin/Source/MyTest.cpp +2 −2
.DS_Store+0−0

Binary file not shown.

LEAF/.DS_Store+0−0

Binary file not shown.

LEAF/Src/leaf-effects.c+1−1
@@ -1542,6 +1542,7 @@ void tFormantShifter_initToPool (tFormantShifter* const fsr, int bufsize · 1541 unmodified lines
15421542 _tFormantShifter* fs = *fsr = (_tFormantShifter*) mpool_alloc(sizeof(_tFormantShifter), &m->pool);
15431543
15441544 fs->ford = order;
1545+
15451546 fs->fk = (float*) mpool_alloc(sizeof(float) * fs->ford, &m->pool);
15461547 fs->fb = (float*) mpool_alloc(sizeof(float) * fs->ford, &m->pool);
15471548 fs->fc = (float*) mpool_alloc(sizeof(float) * fs->ford, &m->pool);
@@ -1550,7 +1551,6 @@ void tFormantShifter_initToPool (tFormantShifter* const fsr, int bufsize · 2 unmodified lines
15501551 fs->fsig = (float*) mpool_alloc(sizeof(float) * fs->ford, &m->pool);
15511552 fs->fsmooth = (float*) mpool_alloc(sizeof(float) * fs->ford, &m->pool);
15521553 fs->ftvec = (float*) mpool_alloc(sizeof(float) * fs->ford, &m->pool);
1553−
15541554 fs->fbuff = (float*) mpool_alloc(sizeof(float*) * fs->ford, &m->pool);
15551555
15561556
LEAF_JUCEPlugin/Source/MyTest.cpp+2−2
@@ -87,7 +87,7 @@ void LEAFTest_block (void) · 86 unmodified lines
8787
8888 x = val * 3.5f + 0.5f;
8989
90− a = val * tBuffer_getLength(&buff);
90+ a = val * tBuffer_getBufferLength(&buff);
9191
9292 DBG("start: " + String(a));
9393
@@ -95,7 +95,7 @@ void LEAFTest_block (void) · 1 unmodified line
9595
9696 y = val * 49.0f + 1.0f;
9797 b = val * 20.0f - 5.0f;
98− b = val * tBuffer_getLength(&buff);
98+ b = val * tBuffer_getBufferLength(&buff);
9999
100100 DBG("rate: " + String(b));
101101

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t