added "save midi file" button to "midi_record" example