midiPlay.axo (6.0 KB)
I'm not sure if it works, but you can try to directly copy this into your home folder (not contributions! This should only be done by saving inside the axoloti patcher program in the "copy to library" way)
don't forget to add the "tmp" and "tmp_impl" from the jt folder to the same folder you put the module in.
if it doesn't work, perhaps you can try the way I explained in the reply above to copy jt's file to your own home-folder, then copy and paste the code parts from my module to his.
Just go to the file using explorer and open it with the basic text editor.
You'll see it will start like:
< patch-1.0 appVersion="1.0.12">
< comment type="patch/comment" x="14" y="14" text="standard midi file playback demo"/>
< comment type="patch/comment" x="28" y="28" text="requires sdcard!"/>
<obj type="ctrl/toggle" uuid="42b8134fa729d54bfc8d62d6ef3fa99498c1de99"
* copy everything from here till the end of the file*
just copy everything behind that "uuid" number from my module and overwrite the same part of the code in your copy of the module and save it again. Then reload the axoloti patcher and it should open with the new code.
it should now have:
-an input for start/stop
-an input for loading
-an input for connecting a string (use the string&mux modules to set your file names)
-a tempo-adjust input. Though it doesn't work really well while adjusting live (actually works pretty bad..), you could set the tempo a bit faster or slower from the start.
-it does have an "end" output, but I couldn't get this to work. The display was meant to go high after "end of track", but it seems this message isn't send/received at all or I'm not using it properly in the code. Maybe someone else can find out how to get this message..