fbpx
Skip to main content

MIDI Forum

Volume replacement ...
 
Notifications
Clear all

Volume replacement in MIDI files?

4 Posts
2 Users
0 Reactions
5,498 Views
Jason
Posts: 441
Honorable Member
Topic starter
 

Any suggestions on how to bulk replace a specific volume in a batch of MIDI files?

Every game I am converting for my SNES MIDI Remaster Project is presenting it's own unique challenges.

In the previous game I completed, I had to boost the channel volume in the converter by 45 for all instruments to be audible.

In the current game I am working on, I have boosted the volumes by 30, but am now finding that the sound engine in this particular game does not end a note if the original volume is set to 0. By boosting everything +30, those notes now do not stop until the next thing is played on that channel.

Any suggestions on how I can easily bulk replace Channel Volume of 30 with Channel Volume of 0? If I can do this, the other volumes will remain higher as needed. Otherwise, I will either have to manually add an earlier Note Off for anything that is supposed to go to 0, or scrap the +30 boost all together, which will give me some very quiet MIDI files.

 
Posted : 18/11/2022 2:19 pm
Sema
 Sema
Posts: 182
Reputable Member
 

If you are not afraid of hacking with JavaScript, try this: https://github.com/jazz-soft/JZZ-midi-SMF
Read MIDI file, add/modify/delete any particular message, save it back.

 
Posted : 19/11/2022 6:27 am
Jason
Posts: 441
Honorable Member
Topic starter
 

[quotePost id=16663]If you are not afraid of hacking with JavaScript, try this: https://github.com/jazz-soft/JZZ-midi-SMF
Read MIDI file, add/modify/delete any particular message, save it back.[/quotePost]
I had a quick look, and quite truthfully, though I have plenty of programing knowledge, Javascript has never been part of my repertoire. I can't wrap my head around how to do anything with your software except for things you have very specific instructions for :p

 
Posted : 20/11/2022 7:26 am
Sema
 Sema
Posts: 182
Reputable Member
 

Ok, I've added more specific instructions for lazy guys 🙂
https://github.com/jazz-soft/JZZ-midi-SMF#by-popular-demand

 
Posted : 21/11/2022 8:37 pm
Share: