3 ms·
It looks nice but I would use OpenGL, ImGUI and STK instead. Specifically, I would use STK instead if JUCE (https://github.com/thestk/stk https://github.com/the
by erwincoumans 5y ago
It looks nice but I would use OpenGL, ImGUI and STK instead. Specifically, I would use STK instead if JUCE (https://github.com/thestk/stk https://github.com/thestk/stk). In particular RtAudio.cpp, RtMidi.cpp, RtWvIn.cpp) and a local or remote visualizer based on ImGUI and OpenGL, since I have that code already I would only need to add a few lines to my audio app to debug visually, using shared memory (which is much faster than printf and works inside a debugger and anywhere else, on Linux, MacOS and Windows)
- stinos 5y agoWanted to say the same, because I've used in in the past. Don't remember the details, but basically a custom visualizer in VS which forwarded data to a Labview VI (because that has most basics, cursors, scaling builtin) over a local connection did wonders for debugging. Still, it's a cool idea this one.
- sudara 5y agoSTK is cool! I'm building a synth plugin, so that's why I'm in JUCE... I want to hear more about the remote visualizer! I was using Jim Credland's buffer debugger (again, JUCE)[1]. It pops open a window, making it fairly easy to visualize buffers with one caveat: you actually have to tell it about the buffers you care about visualizing and then recompile. This means debugging can't really be on the fly (unless you only always care about the same buffer or two). The other issue I ran into was viewing audio from my tests. I'd love to hear about the shared memory approach — real waveforms would be ideal! 1. https://github.com/jcredland/juce-toys/blob/master/jcf_debug/source/buffer_debugger.h https://github.com/jcredland/juce-toys/blob/master/jcf_debug...
- erwincoumans 5y agoLet me see, I could create a minimal example using your Buffer API with shared memory and share it on github, if there is interest (upvote?)
- scoopdewoop 5y agoI am just starting to learn audio programming and DSP, would definitely like to see this as I'm interesting in non-vst applications so a STK+Dear ImGUI setup seems really practical. I would certainly check that out
- erwincoumans 5y agoOK, as promised a minimal example, only tested on Windows so far, but will make it compile and run on Linux and MacOS as well. See https://github.com/erwincoumans/visual_debugger https://github.com/erwincoumans/visual_debugger