fix/shorten midi mapping functions for loop handling