bogaudio / BogaudioModules

Modules for VCV Rack.
Other
267 stars 33 forks source link

RANALYZER calibration #212

Open ker2x opened 2 years ago

ker2x commented 2 years ago

Friendly greetings !

I'd like to use RAnalyzer with physical module too. It ,would be nice if the Ranalyzer had a calibration functionality.

I wouldn't mind if it was a "pro" feature, I can also give it a try myself to submit a patch

ker2x commented 2 years ago

additionally, a slower sweep would help a lot to offset the latency of the hardware. This is what I get with the fast sweep https://i.imgur.com/OsX8DAH.png the big notch doesn't exist and is a latency artefact

mdemanett commented 2 years ago

Do you mean, have it auto-detect the latency of the signal chain under test? Or have it compensate for distortion/filtering from the additional hardware? I've thought about add the first thing. The second thing would be harder.

I can look into adding an option for the sweep time. No promises about time frame, though.

ker2x commented 2 years ago

autodetecting the latency would be nice too.

My initial request was about compensating for the additional hardware. It's not really a big deal since nowadays audio interface are very linear and low distortion as you can see from the image I posted (Universal Audio Volt 2, the setup show is just a cable going from output to input so I was just testing the soundcard (well, and the cable ^^))

The latency is the bigger issue. (and it's on a soundcard that have low latency, I was using a block size of 64).

Once calibrated, the analysis line should show a perfect 0dB (assuming the hardware is stable). In theory, it should just be a matter of saving the result of the calibration test and they subtract it.