Some java code pieces using jave utility to read / write / play midi files.