Posted: . At: 10:31 AM. This was 3 years ago. Post ID: 14766
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.



Sponsored



How to merge a bunch of music files together with sox.


I had a folder full of music files from a Stalker mod. But I needed to merge them together into stereo files as they were separate left and right files. Ending in _l.ogg and _r.ogg. But I managed to get this working wth help from Stackoverflow.

for f in *_l.ogg; do
    sox -M "$f" "${f/%_l.ogg/_r.ogg}" ../musicfiles\/$f.ogg
done

This script will merge extracted music from mods for Shadow of Chernobyl. This might be very useful if you are extracting the music and want to listen to it with an MP3 player. Create a separate folder named musicfiles and the converted files will be placed into that folder. This is a very useful tip for fans of Stalker mods who like the music they find in various mods. This should really help you out when working with files like this. Linux is very versatile when working with variously named files. It can convert anything into whatever you want. That is very necessary sometimes.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.