https://tutorial.feuniverse.us/sound/
If you're familiar with EA installers this should be relatively simple to do, at least compared to other methods. Just take a MIDI and have the programs do all the work.
I havent really done a lot with it so far, only inserting stuff I already formatted, but I think(?) you have to format MIDIs for looping first.