[LAU] sf2 to h2kit?

Gabriel M. Beddingfield gabrbedd at gmail.com
Sat Feb 19 21:22:02 UTC 2011


On Saturday, February 19, 2011 03:10:18 pm allcoms wrote:
> It was all sounding like I could get away with using
> composite for my intended purpose but after looking at
> drumkit.xml I see that instrument id 0 (kick) is note 36
> yet this isn't defined as a parameter so I presume I
> can't assign arbitrary note values to instruments at
> present?

The instrument id is a string... so don't pay much attention 
to the number.

The first instrument you add gets mapped to 36.
The next is 37.
The next is 38.
etc...

Instruments are added in document order (the XML file).

Yeah, it's not the greatest system... but that's what we've 
inherited.  :-)

A good point of reference would be to compare the 
GMkit/drumkit.xml to the General Midi spec for drum note 
mappings:  http://www.midi.org/techspecs/gm1sound.php

> Is it true that h2kits are limited to 32 instruments?

I don't think so.  I don't see any limits in the code.... 
and if there are, I'm sure they're arbitrary, compile-time 
software limits that are simple to change.

-gabriel


More information about the Linux-audio-user mailing list