Reworked jack for better api and midi support