Fixed bugs in audio recording
Fixed bugs in midi file parser