Python saves the day...again.

• Chris Liscio


I've been having some challenges with my drawing algorithms not showing the data properly on the screen. Everything's looking pretty great so far in terms of curve smoothness, but the peaks in the impedance plot were not showing up where they should have been showing up. Luckily I've done manual measurements of both loudspeakers that I'm using with my software, and I am able to tell if my software is close to providing the same result as when doing the measurements manually.</p><p>Anyway, I hacked up another mockup of my drawing loops in Python (similar to yesterday's post) and sure enough I realized another error in my ways. Some slight array index issues (just in readability more than anything, but I hate when things don't look right in code), combined with a use of integer variables where I needed floats (slightly copy&paste related, but mostly an oversight on my part), resulted in data not fully showing up.</p><p>After that little episode, I found another error that was the result of my misinterpretation of the vDSP documentation, and correcting that has put me well on my way. All is going along well now. My current task is to wrap up the axes rendering routines into their own class (to give them a numeric range, allow the settability of log/linear scales, and a bounding box in which to draw – yay!).</p><p>The struggle continues…</p><p></p>