here is a patch that fix 2 issues :
first it move the creation of outets before file loading, this avoid a crash (because outlet is used to send data at file loading).
But it would be better to defer file loading to the next tick to let Pd make connection or use loadbang method to read file in argument.
Currently if [midifile] is loaded with an argument, file info are send to right outlet but there is no connection so it's a sword strike in the water.
then it avoid endless loop in midifile_float(...) metohd by checking positive ticks.
You can find git commit here : https://github.com/avilleret/mrpeach/commits/master
Anonymous
Diff:
Diff: