Pd-l2ork comes with I2s and gpio externals, including
support for soft pwm on all pins. HTH
Pure Data
yes this would work, but maybe too cpu intensive for a single midi output.
I'd like a lower level approach, although and embedded pd version exists.
Raphaël