Skip to content

khanghugo/hltas-midi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hltas-midi

Generates a .hltas file from a .mid file to "play the midi" in-game by creating pitch from sounds in Half-Life games. Requires BunnymodXT to load the script and bxt-rs to record video.

Example

Yes polyphonic.

It is just a script so you can modify it.

How To

Each staff will correspond to each member of sounds vector in main() function.

https://github.com/khanghugo/hltas-midi/blob/36ab6c6e1ca1ced9b57cc1f1af46a9214be13f95/src/main.rs#L221

hltas-midi/src/main.rs

Lines 221 to 224 in 36ab6c6

let sounds: Vec<Command> = vec![
Command::SwitchScroll(2),
// Command::None,
Command::Nice3,

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).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages