Midi framework (based on native scripts + libs)