News for hackers. Stuff that matters.
Re:Using ASCII waveforms to test real-time audio code by robotsteve2 on Wednesday October 13, 2021 @06:43PM (#28858504)
Once you've got the waveforms as arrays, what do you need the ASCII rendering for?

Instead of diffing ASCII-rendered waveforms, save the arrays and diff the arrays (and then use any kind of numerical metric on the residual). Scientist programmers have all sorts of techniques for testing and debugging software that processes sampled signals.

Re:Using ASCII waveforms to test real-time audio code by jwosty on Wednesday October 13, 2021 @07:13PM (#28858709)
It's usually gonna be easier to tell what went wrong in an ASCII string array than a raw float[]. It's for the human reading/fixing the test.
Re:Using ASCII waveforms to test real-time audio code by icapybara on Thursday October 14, 2021 @12:09AM (#28860421)
well you don't read the residual, you plot it. the ASCII plots have limited rendering resolution compared to a proper plotting system, like where you can zoom in and stuff.