libmid: remove max min from instrument class