Added midi code