sf2 analysis tool?
- KVRist
- 148 posts since 30 Mar, 2007 from Cologne, Germany
Basically I am trying to find a tool which returns if a soundfont contains rom samples.
I am going through my old sf2s from back in the days of the AWE64. I made tons of them which use rom samples from the good ol' emu10k1 and therefore won't be useable anywhere besides inside the AWE64...but...there's some fine fellow who ripped all the samples directly from the emu10k1, took the original synthgm.sf2 and replaced all the rom samples with the ripped ones.
So that's what I wanna do: update my sf2s with rom samples in it. As there are so many, some with, some without rom samples...it's really a pita opening every single one for checking out if it has to be converted.
I wonder if there's a way to shorten the list...
Any hints are appreciated!
Peace.
I am going through my old sf2s from back in the days of the AWE64. I made tons of them which use rom samples from the good ol' emu10k1 and therefore won't be useable anywhere besides inside the AWE64...but...there's some fine fellow who ripped all the samples directly from the emu10k1, took the original synthgm.sf2 and replaced all the rom samples with the ripped ones.
So that's what I wanna do: update my sf2s with rom samples in it. As there are so many, some with, some without rom samples...it's really a pita opening every single one for checking out if it has to be converted.
I wonder if there's a way to shorten the list...
Any hints are appreciated!
Peace.
- KVRAF
- 16826 posts since 8 Mar, 2005 from Utrecht, Holland
What you are looking for, I think is a SF2 editor. AWave Studio by FMJsoft worked for me, but that was 15 years ago.
Do you know of a way to determine a sample is "ROM"? You expect it's all in the name?
Instead of changing samples inside existing sf2 files, just use one with the samples you want?
The SoundBlaster Live! AWE64 I had came with GM soundfonts of different sizes. One of these (smallest?) was an exact copy of what was in ROM iirc. I don't recall the name of the soundfont, but it must be floating on the net. No need to go editing.
Do you know of a way to determine a sample is "ROM"? You expect it's all in the name?
Instead of changing samples inside existing sf2 files, just use one with the samples you want?
The SoundBlaster Live! AWE64 I had came with GM soundfonts of different sizes. One of these (smallest?) was an exact copy of what was in ROM iirc. I don't recall the name of the soundfont, but it must be floating on the net. No need to go editing.
We are the KVR collective. Resistance is futile. You will be assimilated. 
My MusicCalc is served over https!!
My MusicCalc is served over https!!
- KVRist
- Topic Starter
- 148 posts since 30 Mar, 2007 from Cologne, Germany
I already have couple of SF2 Editors, that's not the point. I just want to avoid crawling through all the files piece by piece.BertKoor wrote: Sat Oct 29, 2022 7:01 am What you are looking for, I think is a SF2 editor. AWave Studio by FMJsoft worked for me, but that was 15 years ago.
I imagine the simplest way would be a command line tool with the directory of the SF2s as an input and a textfile with a list of what kind and how many of samples every SF2 contains. The information is stored in the files, Vienna e.g. shows this:

Of course I don't. The technical specs of the SF2-Format show that there's an enumerator called SFSampleLink which should return this information:Do you know of a way to determine a sample is "ROM"? You expect it's all in the name?
Source: https://www.polyphone-soundfonts.com/do ... _v2.01.pdfThe SFSampleLink is an enumeration type which describes both the type of sample (mono, stereo left,
etc.) and the whether the sample is located in RAM or ROM memory:
Code: Select all
typedef enum { monoSample = 1, rightSample = 2, leftSample = 4, linkedSample = 8, RomMonoSample = 0x8001, RomRightSample = 0x8002, RomLeftSample = 0x8004, RomLinkedSample = 0x8008 } SFSampleLink;
Well...the soundfonts what this all about are by all means no instruments...they are totally weird and distinct f/x, pads, basses etc...I really tried to push the limits an get the most out of it...
Instead of changing samples inside existing sf2 files, just use one with the samples you want?
The SoundBlaster Live! AWE64 I had came with GM soundfonts of different sizes. One of these (smallest?) was an exact copy of what was in ROM iirc. I don't recall the name of the soundfont, but it must be floating on the net. No need to go editing.
I guess the question is...is there possibly already such a tool? I am by all means not able to code this myself...
- KVRAF
- 16826 posts since 8 Mar, 2005 from Utrecht, Holland
Well, a soundfont file which links to samples held in ROM:
1) is tiny, since the samples are not actually in there! You wrote words to that effect, but it did not sink into me
2) is new to me, after 20 years. Never too old to learn!
3) only works with the soundcard it was made for. Trying to play that patch won't play the intended sample. Kinda defeats the purpose..
I don't think such a utility as you want exists.
1) is tiny, since the samples are not actually in there! You wrote words to that effect, but it did not sink into me
2) is new to me, after 20 years. Never too old to learn!
3) only works with the soundcard it was made for. Trying to play that patch won't play the intended sample. Kinda defeats the purpose..
I don't think such a utility as you want exists.
We are the KVR collective. Resistance is futile. You will be assimilated. 
My MusicCalc is served over https!!
My MusicCalc is served over https!!
-
- KVRAF
- 16758 posts since 13 Oct, 2009
These guys have some command line driven tools that may get you closer. Their tools are permissive licensed so you could perhaps get someone else to help you get started if you can't do it yourself. You might even try reaching out to the authors from one of the github pages and see if they have some thoughts on whether your need is something that other people can use.
- KVRAF
- 1728 posts since 21 Sep, 2007 from USA
Using a tool (e.g. SFZed) which can convert SF2 to SFZ would ultimately generate a SFZ text file and extract all of the embedded waveform sample files from the SF2. If a converted SFZ preset is missing some waveform sample files, then that might indicate that those SF2 samples were not embedded and instead came from ROM.
[Core i7 8700 | 32GB DDR4 | Win11 x64 | Studio One 7 Pro | WASAPI ]