HardwareHeaven.com
Looking for the skin chooser?
 
 
  • Home

  • Reviews

  • Articles

  • News

  • Tools

  • GamingHeaven

  • Forums

  • Network

 

Go Back   HardwareHeaven.com > Forums > Hardware and Related Topics > kX Project Audio Driver Support Forum > SoundFonts and MIDI


Reply
 
Thread Tools
Old Mar 6, 2004, 02:22 AM   #1
kX Project Lead Programmer and Coordinator
 
Join Date: Dec 2002
Posts: 3,106
Rep Power: 73
Eugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud of

sfman32.dll and Cubase SX patch names

hi there

after some time spent on hacking sfman32.dll and fighting SoundFont problems with Cubase SX, -- I've finished a custom version of sfman32.dll that should try to fix the patchname issues

[what is it]:

this is a replacement for the original soundfont manager provided by Creative Labs / Microsoft

[technical details]:

if someone of you are familiar with Sonar/Cubase programmers, please let them know: they need to re-write their soundfont support and strictly follow the Sfman SDK!

the Cubase SX patch name issue is caused by incorrect Cubase initialization code (Cubase programmers will find the details in the debug log)
Sonar is based on an outdated version of the SDK, due to some reason it tries to unload all the soundfonts on start-up (except the one found in the bank 0), and it doesn't handle the 'changed/unchanged' flag for IsMidibankUsed message properly
also, Sonar assumes midi bank 0 is always occupied by a GM-compatible soundfont -- and doesn't wish to ask the driver about the presets located in the bank #0...

and, finally, the 'original' version of sfman32.dll provided by Creative is 'too closely' integrated with the Creative soundfont engine -- and this is bad, since sfman32.dll should not rely on any particular soundfont provider...


[link and installation]

http://kx.maincore.nl/beta/sfman32.dll
this should work with -any- version of kX
note that under WinXP you will need to overwrite the original file in 'safe' mode (otherwise Windows will automatically restore the file!)
you can also try to copy this version of sfman32.dll to the folder your audio application is installed to

[compatibility]

this version was tested with Sonar3, Cubase SX and Vienna -- and worked more or less fine
note that this file is BETA and is provided mainly for testing purposes
a similar file might be included with the 3538
the original Creative drivers are NOT compatible with this version of sfman32.dll (due to the fact CL drivers don't follow their own SFMan32 SDK! )

feel free to post any comments and bug reports

/Eugene
Eugene Gavrilov is offline   Reply With Quote


Old Mar 6, 2004, 12:45 PM   #2
DriverHeaven Lover
 
Join Date: Dec 2002
Posts: 120
Rep Power: 0
dungle is on a distinguished road

thanks,
it seems to work, I can load banks via the device manager and/or kx sf load window.
Patch names work correctly. I am however, having trouble selecting the bank in cubase. (have I missed something?).
Reloading the cubase project seems to restore the sf states correctly, but not the bank selection it would seem.
btw; what is the difference between synth1 and synth2?
(It seems possible to load a bank in both, or only one and not the other). (does it extend the available sf sample space? (32M per synth) or just polyphony (64 voice per synth)?
Theyre basic questions I know, but they help to understand what can be achieved.
cheers
dungle is offline   Reply With Quote
Old Mar 7, 2004, 12:45 AM Threadstarter Thread Starter   #3
kX Project Lead Programmer and Coordinator
 
Join Date: Dec 2002
Posts: 3,106
Rep Power: 73
Eugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud of

synth1 & synth 2 simply use two separate sf2 pools
as well as separate channels
that is, you get 16x2=32 separate midi channels

that's it

Cubase may not handle multiple sf2 devices properly due to internal bugs

/E
Eugene Gavrilov is offline   Reply With Quote
Old Mar 7, 2004, 07:00 PM   #4
DriverHeaven Addict
 
Join Date: May 2003
Location: Philadelphia, PA
Posts: 380
Rep Power: 0
NightBreed is on a distinguished road

The new sfman32 also works with Alive.

Great job Eugene, thanks


Peace...
NightBreed is offline   Reply With Quote
Old Mar 8, 2004, 10:03 AM   #5
DriverHeaven Lover
 
Join Date: Dec 2002
Posts: 120
Rep Power: 0
dungle is on a distinguished road

hi guys,
following up my last post,
anyone know how to switch sf banks in cubase sx?
thanks
dungle is offline   Reply With Quote
Old Mar 8, 2004, 10:11 AM   #6
DH Senior Member
 
Join Date: Jan 2003
Location: The Netherlands
Posts: 1,930
Rep Power: 62
Lex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really nice

Quote:
Originally posted by dungle
hi guys,
following up my last post,
anyone know how to switch sf banks in cubase sx?
thanks
Use multiples of 128 to select a bank followed by a patch change.
That is; 128 will select bank 0 etc...(IIRC).
You can make a Cubase script for 'Midi device manager' to ease things,
but ofcourse you wont see any SF patch names.

/LeMury
Lex Nahumury is offline   Reply With Quote
Old Mar 9, 2004, 02:33 AM   #7
DriverHeaven Addict
 
Join Date: May 2003
Location: Philadelphia, PA
Posts: 380
Rep Power: 0
NightBreed is on a distinguished road

>> of course you wont see any SF patch names

with the new sfman32 you do see the patch names. Im using CubaseSX 2.01 and they show up now using this dll


peace
NightBreed is offline   Reply With Quote
Old Mar 9, 2004, 05:13 AM   #8
DH Senior Member
 
Join Date: Jan 2003
Location: The Netherlands
Posts: 1,930
Rep Power: 62
Lex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really nice

Quote:
Originally posted by NightBreed
>> of course you wont see any SF patch names

with the new sfman32 you do see the patch names. Im using CubaseSX 2.01 and they show up now using this dll
Yes, I know it does
Then I misunderstood your question regarding bank select.
(still do btw)

/LeMury
Lex Nahumury is offline   Reply With Quote
Old Mar 11, 2004, 08:48 PM   #9
DriverHeaven Newbie
 
Join Date: Feb 2004
Posts: 4
Rep Power: 0
peejunk is on a distinguished road

Re: sfman32.dll and Cubase SX patch names

Quote:
Originally posted by Eugene Gavrilov
note that under WinXP you will need to overwrite the original file in 'safe' mode (otherwise Windows will automatically restore the file!)
You don't have to go to safe mode to do that. Windows keep the files for restoration in 'dllcache' folder, inside 'system32' folder. So just overwrite the one in 'dllcache' before you overwrite the one in 'system32'. This way there's no risk that Windows will restore the old dll at some point in future (if they get a fuxored boot up, or you do a system restoral or something)

cheers.
peejunk is offline   Reply With Quote
Old Mar 12, 2004, 10:06 AM   #10
DriverHeaven Junior Member
 
Join Date: Mar 2004
Posts: 35
Rep Power: 0
Way2Loud is on a distinguished road

Hi all!

I placed the new sfman32 in the Cubase SX1 folder and it works OK, the patchnames show up.
However, when I load more than one SF, say in bank 0, 1 and 2, I can only access bank 0.
The other sounfontbanks are present in the inspectors dropdown-list, but it's impossible to see their patchnames and to use them.
Anyone knows how to switch between banks in the inspector in Cubase SX?
Please explain again about "multiples of 128" LeMury, do you mean that one should use a CC-code to change banks?
The soundfonts used in my humble experiments are small, less than 10 Mb total.

Thanks again for your great work, I use the driver all the time!
Way2Loud is offline   Reply With Quote
Old Mar 12, 2004, 11:21 AM   #11
DH Senior Member
 
Join Date: Jan 2003
Location: The Netherlands
Posts: 1,930
Rep Power: 62
Lex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really nice

>> when I load more than one SF, say in bank 0, 1 and 2, I can only access bank 0.
>>The other sounfontbanks are present in the inspectors dropdown-list, but it's impossible to see their
>>patchnames and to use them.

Well, first; I really think it's wise to put that sfman32.dll in your \system32 folder like Eugene discribed.
(But hey,....stranger things have happened)

Second; If you still can't see or select other loaded sf banks then the one in bank0,
try this;
Clear all sf, then load a 'standard' GM sf like CT4mbGM.SF2 into Bank 0.
Those standard sf banks use so called 'variation banks' using bank 0 to bank 14 or something.
Now that 'standard' GM bank (loaded in bank 0) will act like a placeholder for
your other banks that you load in bank 1 and up.
Now you can see your patchnames and select them.
It will look weird since all your sf banks are now "child" of that GM bank, but it works.

Granted, it's not elegant, but this seems to be limitations of the sfman32.dll approach.

/LeMury

PS:
You can always try our kXSFi ( found in this section) wich hasn't that limitation.
Make sure you use the right sfman32.dll version if you use kXSFi.
Lex Nahumury is offline   Reply With Quote
Old Mar 12, 2004, 12:42 PM   #12
DriverHeaven Junior Member
 
Join Date: Mar 2004
Posts: 35
Rep Power: 0
Way2Loud is on a distinguished road

Thanks LeMury

I'll install the files the proper way and try again, perhaps that will solve the problem.
I used the Creative 8Mb-font as the first SF in bank 0 in my test though........

thanks/W2L

PS: Do you know when the next "really stable" kx-version is ready for download?
I'm still using 3534 (under WinXP, 2GHz/512Mb,SB0222) and thats very reliable, but some of the
latest plugins would be nice to try.
Way2Loud is offline   Reply With Quote
Old Mar 12, 2004, 11:30 PM Threadstarter Thread Starter   #13
kX Project Lead Programmer and Coordinator
 
Join Date: Dec 2002
Posts: 3,106
Rep Power: 73
Eugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud ofEugene Gavrilov has much to be proud of

>> That is; 128 will select bank 0 etc...

you can switch the kX Driver into a different mode and use 'normal' bank numbering method
[open 'compatibility' dialog box]

>> "really stable" kx-version is ready for download?

3537 seems to be the 'latest stable' release

/E
Eugene Gavrilov is offline   Reply With Quote
Old Apr 7, 2004, 10:30 AM   #14
let the music playing
 
Join Date: Mar 2003
Location: italy
Posts: 36
Rep Power: 0
france666reds is on a distinguished road

i agree with WAY2Loud

Itsn't necessary to put the Eugene's Sfman 10k in the system32 folder, only put it in the CUBASE SX2 folder and all is OK.


CUBASE sx2
Win XP home SP1
PIV 1,6Ghz
512 MBddram
Audigy1 platinum
etc etc
france666reds is offline   Reply With Quote
Old Apr 15, 2004, 03:51 AM   #15
DriverHeaven Junior Member
 
Join Date: Apr 2004
Posts: 23
Rep Power: 0
Mirko13 is on a distinguished road

what am I doing wrong??
I have copied the sfman32.dll file in cubase directory and windows system32 dir,
and in kx dir.
I cant load soundbank in MIDI device manager in cubase sx2.
i can use kx synth2 as outpit onley in track but not in midi devide manager.
when i use chn: 1 then i see soundfont name under it, and if i use chn: any then i can choose bnk and prg. but no matter what i hear no sound but i have signal.
I have imported sound font in kx and routed synth in dsp.
please help.
Mirko13 is offline   Reply With Quote
Old Apr 15, 2004, 05:13 AM   #16
DriverHeaven Senior Member
 
Daniel Drummond's Avatar
 
Join Date: Dec 2002
Location: Brazil
Posts: 1,137
Rep Power: 0
Daniel Drummond is on a distinguished road

Try resetting your dsp settings and resetting global and card configurations...
__________________
www.palcomp3.com.br/ed
Daniel Drummond is offline   Reply With Quote
Old Apr 15, 2004, 08:11 AM   #17
DriverHeaven Addict
 
Join Date: May 2003
Location: Philadelphia, PA
Posts: 380
Rep Power: 0
NightBreed is on a distinguished road

Try putting the "SFMS32.DLL" from the kx install directory into the cubaseSX folder as well. This was something touched on at the EMU site.
NightBreed is offline   Reply With Quote
Old Apr 16, 2004, 03:09 AM   #18
DriverHeaven Junior Member
 
Join Date: Apr 2004
Posts: 23
Rep Power: 0
Mirko13 is on a distinguished road

It work's now when i set the routing from Fxbus2 and 2 to epilog out 2 and 3.
before it was routed to epilog asio 0 and 1 ad that did not work and i dont know why, 'cause I've set the driver in cubase to Kx ASIO.
Mirko13 is offline   Reply With Quote
Old Apr 16, 2004, 01:58 PM   #19
DH Senior Member
 
Join Date: Jan 2003
Location: The Netherlands
Posts: 1,930
Rep Power: 62
Lex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really niceLex Nahumury is just really nice

>>It work's now when i set the routing from Fxbus2 and 2 to epilog out 2 and 3.
>>before it was routed to epilog asio 0 and 1 ad that did not work and i dont know why,
>> 'cause I've set the driver in cubase to Kx ASIO.

The asio0 ~ asio15 on Epilog are the ASIO Recording Inputs, not physical outputs of your soundcard!
That's why you didn't hear any midi output.

So if you want to hear and record the midi synth, you have to route to Epilog's Front/Rear output,
and also to an asio recording pair like asio0/1 on Epilog.

/LeMury
Lex Nahumury is offline   Reply With Quote
Old Apr 16, 2004, 05:22 PM   #20
DriverHeaven Junior Member
 
Join Date: Apr 2004
Posts: 23
Rep Power: 0
Mirko13 is on a distinguished road

Thanks. Just did that and it works.
But I just can't get this soundbanks to work.
Whena I load more than one sundbank i cant even see the name of it.
if i select chn: any than i can select bnk and prg. but no mater what number there is no sound. if i choose chn: 1-16 thare is nothing else i can choose and also no sound.
please help.
Mirko13 is offline   Reply With Quote
Old Apr 26, 2004, 11:05 PM   #21
DriverHeaven Junior Member
 
Join Date: Apr 2004
Location: Deepest France
Posts: 39
Rep Power: 0
captain_rusty is on a distinguished road

I'm amazed!!!

I've been using SX 1.0 and just got used to the fact that the patch names/accessibility seemed to be weird - was sure it was my fault...

Can't wait to try this new sfman32... thank you Eugene - you've made my day
__________________
Can I record my solo album with a Soundblaster Live!Value???

P4 2.4GHz, 256Mb, XP Home, SBLive!Value, Yamaha MG10/2, Toneworks Pandora
captain_rusty is offline   Reply With Quote
Reply

Bookmarks

Thread Tools