Using ASCII waveforms to test real-time audio code

4 Likes

creative and beautiful :slight_smile:

This inspired me to do a juce implementation available here: Gin/gin_textrenderer.h at master · FigBug/Gin · GitHub

I think the coolest thing is that you can call it directly from lldb. So let’s say you hit a breakpoint and you are wondering what is in your buffer, just do this:

call gin::TextRenderer::debugPrintBuffer (buffer, 7, 2);

and you instantly see:

and then you know your buffer has a nice sine wave and the problem must be elsewhere.

Edit:

Looks like other people have already had this idea: GitHub - sudara/melatonin_audio_sparklines: Sparklines For JUCE AudioBlocks

6 Likes