If the first bit of a byte is a 0, then it is a command byte. Otherwise, it starts with a 1. So, each byte has seven spaces left for bits. The total combinations of 0's and 1's is 2 to the seventh power, or 127 . And THAT is why MIDI has so many options from 1-128.
Many languages combine even more bytes for literally millions of combinations.
With MIDI, you can save it all while you compose. With a sequencer or notation program, MIDI can do it for you. There are hundreds of MIDI gadgets to discover and files of all genres. Most likely yes. 2. Find a MIDI sequencer.