Are you fermenting under pressure? If so your final gravity will be off by quite a bit using a gyro based meter. The absorbed co2 will give you a false reading. I use mine more to determine when fermentation has stopped and I can bottle. Maybe take a sample and measure with a normal hydrometer and see if your reading is correct.
It depends a bit why you want to do this, and maybe also how complex the equations will be, but I would probably do this in puredata. The added advantage is you can tweak it live. If you’re into experimental audio, learning puredata is definitely a plus.
This should give you a rough idea whether it’s a good tool for your purpose. http://www.pd-tutorial.com/english/ch03s05.html