You can use “jack-smf-utils” for recording the MIDi input stream to a standard .mid file.
You should download this file to your Zynthian (zynthian/zynthian-sw folder is a good place) and build and install the package. Something like this:
cd /zynthian/zynthian-sw wget https://downloads.sourceforge.net/project/jack-smf-utils/jack-smf-utils/1.0/jack-smf-utils-1.0.tar.gz tar xfvz jack-smf-utils-1.0.tar.gz cd jack-smf-utils-1.0 ./configure make -j 4 make install
Regarding the usage, it’s pretty easy.
For recording from the first USB-MIDI port:
jack-smf-recorder -a system:midi_capture_1 p.mid
For recording from the MIDI-IN standard port:
jack-smf-recorder -a ttymidi:MIDI_in p.mid
For re-playing the recorded file to the Zynthian MIDI router:
jack-smf-player -a Zyncoder:input p.mid
If you take a look to the jack connection graph, you will see different ways of short-cutting the system, and make some interesting tests by yourself. For instance …
Recording the MIDI stream from the Zynthian MIDI router output:
jack-smf-recorder -a Zyncoder:output p.mid
this is the MIDI stream after being processed by the Zynthian MIDI router/filter