midi: intermediate code test.