Perhaps this would be easier if someone has already done the majority of the work… https://www.soundonsound.com/techniques/sonar-using-instrument-definition-files .
Although for Sonar/Cakewalk .ins files are around for many old, and new, hardware synths and devices.
Should be adaptable to Zynthian as it is a text file format…