|
| Notices |
Welcome to the DriverHeaven.net forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
 |
Feb 15, 2008, 03:50 PM
|
#1
|
|
DriverHeaven Extreme Member
Join Date: Jan 2005
Posts: 4,105
|
Soundfont info bug?
It seems that number of Presets, Instruments, and Samples shown for loaded soundfonts is off by 1 (1 extra shown for each) on the Soundfont page of kxmixer.
-Russ
|
|
|
Feb 15, 2008, 08:09 PM
|
#2
|
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 3,724
|
confirmed - kX reports 1 more than what Vienna statistics reports - tho, which one is correct - I'll assume Russ is correct and kX is reporting incorrectly..
(maybe kX is incorrectly counting a '0' (zero) position..??)
|
|
|
Feb 15, 2008, 08:59 PM
|
#3
|
|
DriverHeaven Extreme Member
Join Date: Jan 2005
Posts: 4,105
|
Yeah, I checked with Vienna as well, and it is hard to imagine that Vienna is wrong, when you load a SF with only one instrument/preset and it shows as much, while kX shows two.
Last edited by Russ; Feb 16, 2008 at 07:44 AM.
|
|
|
Feb 16, 2008, 07:25 AM
|
#4
|
|
DriverHeaven Extreme Member
Join Date: Jan 2005
Posts: 4,105
|
Looking in the SDK, it appears that there is a marker at the end of the lists (i.e. EOP at the end of the preset list) that is being counted, and I guess the info on the SF page does not account for this.
Last edited by Russ; Feb 16, 2008 at 07:41 AM.
|
|
|
Feb 16, 2008, 01:35 PM
|
#5
|
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 3,724
|
Quote:
|
Looking in the SDK, it appears that there is a marker at the end of the lists (i.e. EOP at the end of the preset list) that is being counted, and I guess the info on the SF page does not account for this.
|
Are you saying that the kX Mixer SF page does not use the SDK function you speak of... that seems strange to me... ??
Last edited by Maddogg6; Feb 16, 2008 at 01:42 PM.
|
|
|
Feb 16, 2008, 02:11 PM
|
#6
|
|
DriverHeaven Extreme Member
Join Date: Jan 2005
Posts: 4,105
|
No, there is an extra item (i.e. (for presets) a preset called EOP, which is not a real preset) at the end of the list(s), that marks the end of the list(s), and it appears that this extra item is being counted (thus one extra).
I am not talking about any specific function, as we do not see any of the code that actually parses the soundfonts, etc. I am just going by the info in soundfont.h and the fact that Presets, Instruments, and Samples in sfHeader (which I would guess is what is used for the SF page) shows one extra item count for each.
i.e. I am just guessing here at why the count is off, but there is no way for me to know for sure, since I do not have the source code.
Last edited by Russ; Feb 16, 2008 at 02:33 PM.
|
|
|
Feb 16, 2008, 07:24 PM
|
#7
|
|
Tail Razer
Join Date: Jun 2005
Location: Bernyurass, AZ - USA
Posts: 3,724
|
Quote:
Originally Posted by Russ
No, there is an extra item (i.e. (for presets) a preset called EOP, which is not a real preset) at the end of the list(s), that marks the end of the list(s), and it appears that this extra item is being counted (thus one extra).
I am not talking about any specific function, as we do not see any of the code that actually parses the soundfonts, etc. I am just going by the info in soundfont.h and the fact that Presets, Instruments, and Samples in sfHeader (which I would guess is what is used for the SF page) shows one extra item count for each.
|
ahh ok... gotya...
|
|
|
|
|
|