Writing Docs Gigedit SFZ Instrument Scripts NKSP Language NKSP Reference

hivel Opcode

Causes the associated region to play when a constraint on MIDI velocity is respected. Used in conjunction with lovel, it makes the region play when the incoming note's velocity is equal to or higher than hivel and equal to or lower than hivel. Velocity is a MIDI value that indicates how forcefully the note is played.

Opcode Prototype

hivel=upper limit


The mandatory upper limit parameter defines the range's upper limit. This parameter only accepts valid MIDI velocity values (from 0 to 127).

Allowed Sections

May be used in sections <global> and <region>.


Defines a snare instrument with three regions/velocity ranges: 0-70, 71-125 and 126-127 for the rim shot.


Since LinuxSampler 2.0.0

Conforms to SFZ v1 Standard.

Document Updated:  2017-05-20  |  Author:  Nicola Pandini