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
1542 _tFormantShifter* fs = *fsr = (_tFormantShifter*) mpool_alloc(sizeof(_tFormantShifter), &m->pool);1542 _tFormantShifter* fs = *fsr = (_tFormantShifter*) mpool_alloc(sizeof(_tFormantShifter), &m->pool);
1543 1543
1544 fs->ford = order;1544 fs->ford = order;
1545
1545 fs->fk = (float*) mpool_alloc(sizeof(float) * fs->ford, &m->pool);1546 fs->fk = (float*) mpool_alloc(sizeof(float) * fs->ford, &m->pool);
1546 fs->fb = (float*) mpool_alloc(sizeof(float) * fs->ford, &m->pool);1547 fs->fb = (float*) mpool_alloc(sizeof(float) * fs->ford, &m->pool);
1547 fs->fc = (float*) mpool_alloc(sizeof(float) * fs->ford, &m->pool);1548 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
1550 fs->fsig = (float*) mpool_alloc(sizeof(float) * fs->ford, &m->pool);1551 fs->fsig = (float*) mpool_alloc(sizeof(float) * fs->ford, &m->pool);
1551 fs->fsmooth = (float*) mpool_alloc(sizeof(float) * fs->ford, &m->pool);1552 fs->fsmooth = (float*) mpool_alloc(sizeof(float) * fs->ford, &m->pool);
1552 fs->ftvec = (float*) mpool_alloc(sizeof(float) * fs->ford, &m->pool);1553 fs->ftvec = (float*) mpool_alloc(sizeof(float) * fs->ford, &m->pool);
1553
1554 fs->fbuff = (float*) mpool_alloc(sizeof(float*) * fs->ford, &m->pool);1554 fs->fbuff = (float*) mpool_alloc(sizeof(float*) * fs->ford, &m->pool);
1555 1555
1556 1556
LEAF_JUCEPlugin/Source/MyTest.cpp+2−2
@@ -87,7 +87,7 @@ void LEAFTest_block (void) · 86 unmodified lines
87 87
88 x = val * 3.5f + 0.5f;88 x = val * 3.5f + 0.5f;
89 89
90 a = val * tBuffer_getLength(&buff);90 a = val * tBuffer_getBufferLength(&buff);
91 91
92 DBG("start: " + String(a));92 DBG("start: " + String(a));
93 93
@@ -95,7 +95,7 @@ void LEAFTest_block (void) · 1 unmodified line
95 95
96 y = val * 49.0f + 1.0f;96 y = val * 49.0f + 1.0f;
97 b = val * 20.0f - 5.0f;97 b = val * 20.0f - 5.0f;
98 b = val * tBuffer_getLength(&buff);98 b = val * tBuffer_getBufferLength(&buff);
99 99
100 DBG("rate: " + String(b));100 DBG("rate: " + String(b));
101 101

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