Music Hack
I made a short kRPC script that plays music based on in-game events and figured I'd share it here and maybe get some feedback. It's an alternative to Soundtrack Editor for people low on memory. It'll also be easier to add new music events for people who'd rather not dive into full-on add-on development. I've found this better than the "mute and play space music" strategy I was using earlier.
Features
As an external program, no impact on game memory usage
Can play anything that VLC can play, such as Youtube URLs
Can play dramatic music during docking or rendezvous a la Interstellar
Play custom music while editing, above the atmosphere, at the space center, or at the tracking station, eg play the Normandy galaxy map theme at the tracking center
Play main menu music
Configurable via music.yaml
Comes with stock music
Requirements
Python 2.7 or later
LibVLC for Python (pip install python-vlc) - currently only supports 32 bit python
kRPC (pip install krpc)
PyYAML (pip install PyYAML)
Downloads
Github | Source
Configuration
Edit music.yaml
Individual files or directories with music inside are allowed
To disable music for a label, just delete all the bullets underneath it
Backslashes must be doubled for Windows style paths
Mute KSP music
Usage
Run the program (python music_hack.py or ./music_hack.py) and start the game, in whatever order
Start kRPC server (or set to autostart) after loading a save
Accept connection from KSP (or set KRPC server to auto-accept)
Crashes of the music player only require a restart of the music player
Limitations
Can only distinguish the tracking center. The rest of the space center scenes all play music from the space center label.
Doesn't come with stock tracking or main menu music (licensing limitations)
Can't play KSP theme when the program launches
Youtube playback depends on whether LibVLC has up-to-date Youtube capabilities.
Space music continues after switch to space center till next scene change.