History

fix error in dattorro init

Matthew Wang committed 6 years ago

Commit ca5234c1 parent 7156be01 file · +2 −1Browse files

Unified · Split

LEAF/Src/leaf-reverb.c+2−1
@@ -389,7 +389,6 @@ static void dattorroreverb_init (tDattorroReverb* const rev) · 388 unmodified lines
389389
390390 r->size_max = 2.0f;
391391 r->size = 1.f;
392− r->t = r->size * leaf.sampleRate * 0.001f;
393392 r->frozen = 0;
394393 // INPUT
395394 for (int i = 0; i < 4; i++)
@@ -417,6 +416,7 @@ void tDattorroReverb_init (tDattorroReverb* const rev) · 21 unmodified lines
417416 {
418417 _tDattorroReverb* r = *rev = (_tDattorroReverb*) leaf_alloc(sizeof(_tDattorroReverb));
419418 float size_max = 2.0f;
419+ r->t = r->size * leaf.sampleRate * 0.001f;
420420 // INPUT
421421 tTapeDelay_init(&r->in_delay, 0.f, SAMP(200.f));
422422 tOnePole_init(&r->in_filter, 1.f);
@@ -502,6 +502,7 @@ void tDattorroReverb_initToPool (tDattorroReverb* const rev, tMempool* · 79 unmodified lines
502502 _tMempool* m = *mp;
503503 _tDattorroReverb* r = *rev = (_tDattorroReverb*) mpool_alloc(sizeof(_tDattorroReverb), &m->pool);
504504 float size_max = 2.0f;
505+ r->t = r->size * leaf.sampleRate * 0.001f;
505506 // INPUT
506507 tTapeDelay_initToPool(&r->in_delay, 0.f, SAMP(200.f), mp);
507508 tOnePole_initToPool(&r->in_filter, 1.f, mp);

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