Unified · Split
| @@ -42,7 +42,7 @@ void tCrusher_free (tCrusher* const); · 41 unmodified lines | |||
| 42 | float tCrusher_tick (tCrusher* const, float input); | 42 | float tCrusher_tick (tCrusher* const, float input); |
| 43 | 43 | ||
| 44 | // 0-7 | 44 | // 0-7 |
| 45 | void tCrusher_setOperation (tCrusher* const, uint32_t op); | 45 | void tCrusher_setOperation (tCrusher* const, float op); |
| 46 | 46 | ||
| 47 | // 0.0 - 1.0 | 47 | // 0.0 - 1.0 |
| 48 | void tCrusher_setQuality (tCrusher* const, float val); | 48 | void tCrusher_setQuality (tCrusher* const, float val); |
| @@ -57,9 +57,9 @@ float tCrusher_tick (tCrusher* const c, float input) · 56 unmodified lines | |||
| 57 | 57 | ||
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | void tCrusher_setOperation (tCrusher* const c, uint32_t op) | 60 | void tCrusher_setOperation (tCrusher* const c, float op) |
| 61 | { | 61 | { |
| 62 | c->op = op % 8; | 62 | c->op = (int) (op * 8.0f); |
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | // 0.0 - 1.0 | 65 | // 0.0 - 1.0 |