Generates a .hltas file from a .mid file to "play the midi" in-game by creating pitch from sounds in Half-Life games. Requires to load the script and to record video.
Yes polyphonic.
It is just a script so you can modify it.
Each staff will correspond to each member of sounds
vector in main()
function.
Lines 221 to 224 in 36ab6c6
Take a look at provided examples of simplied MuseScore files if there's any confusion.
For chords, it's better to separate each note into another staff. Otherwise, the note with highest frequency will be selected (or not depending on MIDI export).