fixed: generate pdf only or midi only