I was searching for implementations to get a more concrete idea of the algorithm and came across https://github.com/Yawning/secp256k1-voi which appears to be well commented, robust, and oddly entertaining. It’s got Schnorr, and ECDSA for comparison.
There’s also a musig2 one by the same author.