instruments: add another function for creating contexts in midi

There's a lot of ugly code duplication, but i haven't found a way to squeeze
this into one function yet.