adds some template midi writing code