Robin Schmidt
Robin Schmidt
ok..there's a class rsRayBouncer1D in rapt. it happily bounces back and forth between floor and ceiling:  it started at 0, ceiling is 0.7 and floor is -0.2. for the...
with an increment of 3.1, we get multiple reflections per sample which results in weird patterns: 
as said, both, floor and ceiling are adjustable. i had the floor set to -0.2 in the plot (and the ceiling at 0.7)
i think, if you want random decisions, i should make that optional (like, having a reflection mode parameter)
maybe not a random decision but some deterministic formula based on floor, ceil and value (and maybe increment)... that might come out pseudo-random anyway
the first one looks actually simple enough. i the switch really faster?
uuuh...your formula seems to ultra sensitive to the feedback. a little too much and it gets stuck at the ceiling...
```cpp void increment() { x += dx + shape*x; } ```
my reflection code is a bit complex due to supporting multiple reflections, the whole state update procedure currently goes like this: ```cpp void increment() { x += dx + shape*x;...