I'm trying to write a program that allows a user to specify an instrument, amount of notes, pitches, etc. and then generate a sharable .midi/.mid file with that information/music. Is there any simple or streamlined way to do this? Everything seems to need to be built from the ground up to work.