fbpx
Skip to main content

MIDI Forum

Question about GS S...
 
Notifications
Clear all

Question about GS SYSEX (self answered)

3 Posts
2 Users
0 Reactions
4,088 Views
Jason
Posts: 424
Honorable Member
Topic starter
 

I've run across a hand full of GS MIDI files that are crashing my editor because the values in the percussion assignment SYSEX commands are not within the bounds expected.

To my knowledge, GS assigns custom percussion channels using
F0 0A 41 (10) 42 12 40 1x 15 0y 0F F7
where "x" is the "part number".

However, in these particular files (SC-88Pro midi collection), I am seeing

F0 41 10 42 12 40 03 15 00 28 F7 <---
F0 41 10 42 12 40 10 15 01 1A F7
etc

So when I do the part number byte (0x1x) - 0xF, I'm getting negative values, because it is 0x instead of 1x.

I'm curious if anyone can shed some light on this. Even in the manual specifically for the SC-88Pro, it says...

[EDIT]
** The 03 in the SYSEX above is actually EFX Parameter 19 in the SC-88Pro SYSEX table, meaning that I need to be more narrow in my check of that field, and only accept the value as a percussion part number if it is between 10 and 1F. Currently (or previously by the time you read this) I check the value, and assume it is always going to be 1x, when it can actually be 0x, 1x, 2x, or 4x (at least with the SC-88Pro).

 
Posted : 15/10/2022 11:05 am
Eddie Lotter
Posts: 295
Reputable Member
 

[quotePost id=16285]where "x" is the "part number".[/quotePost]
Careful, this is not accurate for the Sound Canvas.
"x" represents a "block" where block 0 (00h) is Part 10, block 1-9 (01h-09h) is part 1-9 and block 10-15 (0Ah-0Fh) is part 11-16.

 
Posted : 16/10/2022 11:36 am
Jason
Posts: 424
Honorable Member
Topic starter
 

[quotePost id=16296][quotePost id=16285]where "x" is the "part number".[/quotePost]
Careful, this is not accurate for the Sound Canvas.
"x" represents a "block" where block 0 (00h) is Part 10, block 1-9 (01h-09h) is part 1-9 and block 10-15 (0Ah-0Fh) is part 11-16.[/quotePost]
Yes, I was aware of this. However, I apparently never properly implemented it prior to yesterday :p After I sorted out the "not always 1x" testing, I had a file where my program flagged Channel 1 as percussion, as well as 10 and 11. Yet channel 1 was named "Piano". I checked my code, and sure enough, I had just put it in 0-F order, even though in my comments I had it listed correctly as 0=10, 1-9 = 1-9, and A-F = 11-16.

 
Posted : 16/10/2022 4:54 pm
Share: