Page 1 of 1

[solved] open mmpz in a computer with different .sf2 dir

Posted: Sat Sep 16, 2017 6:06 am
by hyyou
I have 200+ old mmpz file that use a single sound front via the pinky sf2 Plugin.
Each file use many slot of the same plugin - same .sf2 file but different instruments.

Every one of them, I set the file by browsing inside FILE textbox (LMMS 1.1.3).

Image
FILE=D:\a\b\c\d\GeneralUser GS SoftSynth v1.44.sf2
It works so nice.

Today, I get a new computer, and I placed the file in :-
C:\GeneralUser GS SoftSynth v1.44.sf2

I tried to open my old mmpz. LMMS notified me about the error :-
The following error occured while loading:
A soundfront GeneralUser GS SoftSynth v1.44.sf2 could not be loaded.
So I tried to change the setting of LMMS 2.1 :-
Edit>Settings>
SF2 DIRECTORY= C:\
DEFAULT SOUNDFONT FILE=C:\GeneralUser GS SoftSynth v1.44.sf2
After closing LMMS and reopen my file, it still screams "could not be loaded".
Strangely, I notice that the SF2 FILE textbox will change respect to whatever value I set in DEFAULT SOUNDFONT FILE, but I am not sure because the box is overflowed :-
Image
It seems to almost success.

Do I have to re-assign the sf2 file manually for every .mmpz?
Are there an easy way to fix the broken link between .sf2 and many of my .mmpz?

Edit: marked as solved .... by musikbear, thank!

Re: open old mmpz in new computer with different soundfront dir

Posted: Sat Sep 16, 2017 12:27 pm
by musikbear
hyyou wrote:
Sat Sep 16, 2017 6:06 am
FILE=D:\a\b\c\d\GeneralUser GS SoftSynth v1.44.sf2
This one is not going to be simple.
I have never seen such a complicated path
Did you have 4 sub directories a,b,c,d in a partition named 'D' on your previous pc? And in that structure you placed your lmms-SF2 directory?
new computer, and I placed the file in :-
C:\GeneralUser GS SoftSynth v1.44.sf2
That makes sense, but
I tried to open my old mmpz. LMMS notified me about the error :-
Yes -thats the problem, because there are more information in the file, than what you see
Do I have to re-assign the sf2 file manually for every .mmpz?
I hope not
I need to see two files
* One of the projects from you old pc, where the path fails
* One brand new one from your new pc, with a working SF
Both files must be MMP!

Code: Select all

To Save as MMP:
* Open project
* File | save-as
* chose a name... 'xyzzxy.mmp'
press save
You can upload on any file-host like tiny-upload as a winzip
I will ofcause respect your rights
I may be able to make a fix.

Re: open old mmpz in new computer with different soundfront dir

Posted: Sat Sep 16, 2017 1:47 pm
by hyyou
Thank a lot for your generosity, musikbear. The problem is solved by your suggestion. (so happy)

While I am trying to reproduce 2 problematic files related to issue for uploading (let's name it F1 & F2), I got the error "could not be loaded" when loading F1.
Still, I saved F2 like you suggest.

I tried to examine tag xml of .mmp (Thank so much!), but find nothing wrong about the path.
Then, I close and open F2 again. Now it works perfect.

In other words, it can be solved just by saving the new file (both mmp and mmpz are OK) -> close -> reopen the new file. :D

musikbear wrote:Did you have 4 sub directories a,b,c,d in a partition named 'D' on your previous pc? And in that structure you placed your lmms-SF2 directory?
Yes and yes.

P.S.

Just curious, what if I use more than 1 soundfont file?
If so, how should I fix? Should I write a program?
How? The problem is that mmpx is binary file.

musikbear wrote:I may be able to make a fix.
I desire to know : How will you fix 100+ file? Will you program it?
What language will you probably code for this problem?

IMHO, if it is possible to command LMMS to convert 100s .mmpz -> .mmp with a batch file,
it would be possible to use RapidXML or find/replace-all to make the whole process automatic.

Re: [solved] open mmpz in a computer with different .sf2 dir

Posted: Fri Oct 16, 2020 2:21 pm
by germona
I have the same problem.
I have renamed my soundfont folder from 'soundfonts sf2' to 'soundfonts' and then added folders like 'sf2' 'sfz' etc.
Now i get the same error messages of not finding the soundfonts.
This is normal, because it has changed, but it would be easy to open the mmpz files in a kind of text editor, where you can find the pointer to the old folder and change to the new folder with a search and replace action.
Would this be possible in any way?
thanks
long time LMMS user