Unified · Split
| @@ -174,7 +174,7 @@ float tSampler_tick (tSampler* const sp) · 173 unmodified lines | ||
| 174 | 174 | |
| 175 | 175 | if (p->active == 0) return 0.f; |
| 176 | 176 | |
| 177 | − if ((p->inc == 0.0f) || (p->len < 4)) | |
| 177 | + if ((p->inc == 0.0f) || (p->len < 1)) | |
| 178 | 178 | { |
| 179 | 179 | return p->last; |
| 180 | 180 | } |
| @@ -218,7 +218,7 @@ float tSampler_tick (tSampler* const sp) · 37 unmodified lines | ||
| 218 | 218 | int i4 = (idx+2) % p->len; |
| 219 | 219 | |
| 220 | 220 | sample = LEAF_interpolate_hermite (buff[i1], |
| 221 | − buff[idx], | |
| 221 | + buff[idx%p->len], | |
| 222 | 222 | buff[i3], |
| 223 | 223 | buff[i4], |
| 224 | 224 | alpha); |
| @@ -258,7 +258,7 @@ float tSampler_tick (tSampler* const sp) · 33 unmodified lines | ||
| 258 | 258 | int i4 = ((idx-2) + p->len) % p->len; |
| 259 | 259 | |
| 260 | 260 | sample = LEAF_interpolate_hermite (buff[i1], |
| 261 | − buff[idx], | |
| 261 | + buff[idx%p->len], | |
| 262 | 262 | buff[i3], |
| 263 | 263 | buff[i4], |
| 264 | 264 | 1.0f-alpha); |