add static variables to midi methods