A bug in delay line ring buffers

Captain's Log: Stardate 77511.3

Simple delay lines are now working at a basic level. You can wire up microphones to exciters with delay lines, and use them to pipe audio signals around. I created some test instruments today and verified that things work as expected. I created some weird feedback instruments, and also a quick ping-pong delay system. Piping my voice through the ping-pong delay was pretty fun.

There's a bug with the ring buffer code that only shows up when the delay is set near the maximum amount that I've been banging my head against a fair bit. It doesn't seem to be any of the obvious things I expected, having to do with the wrapping. And strangely with the delay set to 98% of maximum it works perfectly -- and at that level, clearly it's frequently having to wrap. The bug is probably something pretty stupid so I'm hoping that I'll find it quickly with a fresh brain tomorrow.

Aside from the bug, there are a couple of features I need to iron out, but nothing difficult. Because sensors and audio signal exciters can now be used for internal signals, they both need to have checkboxes to disable external input/output in case the user doesn't want that. And I need to add the code to make the delay time a valid modulation target (which should lead to some extremely crazy results).

If all goes well I hope to release a demo video this week. Depends on how hard this bug is to track down!


© 2024 Anukari LLC, All Rights Reserved
Contact Us|Legal