Firstly, as this is (I assume) a percussion sound, then the note end will be built into the envelope (ADSR) so that an explicit note end may not normally be necessary, although I would assume that you'd normally use one anyway.
But - is the normal note OFF (or Note ON with zero velocity) not working?
If you ARE using a Note OFF but it is not working quickly enough, then you could reduce the normal duration of the note?
What device (or system) is making the actual sound here - either midi device or virtual (SF)?
I have sound card sound blaset Audigy 2 on my PC and kx project drivers and i have DIY drum kit. I send from my DIY drum kit to PC...when i hit ( send) Open hi hat note 46 and next note 44 ( velocity 127) hi hat do not close and comes out to the end ...what do i wrong ?
Is it maybe problem whit kx syntethizer ?
You're not doing anything wrong as such. You are operating in a sort of test mode, i.e. sending the notes in a raw form, and this may well be sending the note ON, but not sending the necessary note OFF. The KX device probably NEEDS the explicit note OFF. The casio device does not. appear to need this.
On the KX, maybe there's a default note duration that is not set.
Can you create a midi file, and ensure that that contains the relevant note ON and note OFF commands, and see if that works OK on the PC/KX setup?
Most synthesizers that have drum sets put Open Hihat and Closed Hihat in a "mutually exclusive mode". This is not a MIDI function, but a feature of the synthesizer itself. When you play a Closed Hihat it automatically silences the Open Hihat. Synthesizers from most of the major brands work this way.
Eureka !!! I load sf2 Real soundfont 2.1 and hi hat work well !!! It depends on configuration sf2. I have Vienna Soundfont Studio and i edit sf2 ...I just need to preview the configuration od Real 2.1 in Vienna Soundfont Studio...