Showing the changes to LEAF/Src_cpp/leaf-delay.cpp (1 of 1 file). Show all
Unified · Split
| @@ -463,6 +463,12 @@ float tTapeDelay_tick (tTapeDelay* const d, float input) · 462 unmodified lines | ||
| 463 | 463 | while (diff < 0.f) diff += d->maxDelay; |
| 464 | 464 | |
| 465 | 465 | d->inc = 1.0f + (diff - d->delay) / d->delay * SMOOTH_FACTOR; |
| 466 | + | |
| 467 | + if (++count >= 5000) | |
| 468 | + { | |
| 469 | + count = 0; | |
| 470 | + DBG(String(d->inc)); | |
| 471 | + } | |
| 466 | 472 | |
| 467 | 473 | d->idx += d->inc; |
| 468 | 474 | |