Does this produce a midi file? I did a line like your '\midi{}' line and got a midi file but I couldn't get it to play, although that is not uncommon on my machine, so I deleted it.