finally

a little less simple is a working midi sndbuf player. steal this code