Total midi noob here. Say I export a score that I'm writing with music notation software as a midi file (or I suppose any midi file, but that's where my midi files will come from). How would I go into that midi file and adjust the pitch associated with specific note or notes up or down by a certain number of cents? Or does midi work in raw frequencies rather than cents? Either one would work.
I'm imagining a program that can go into a midi file, find some moment where, say, the notes C4, E4, and G4 (midi numbers 60,64,67) are sounding simultaneously, and change the midi file so that sound of the E4 for that moment is lowered by 13.686¢, and the sound of the G4 is raised by 1.955¢ (frequency of note number 64 lowered from 329.627557 Hz to 327.031957 Hz, frequency of note number 67 raised from 391.995436 Hz to 392.438348 Hz) in order to create a justly tuned major triad.
Are midi files formatted in such a way that you could open them as a plain text file, find a moment like the one I specified, and make the desired alteration to the file so that the sound is altered upon importing the midi file for playback?