Skip to content

sw_lokey / sw_hikey

Defines the range of the keyboard to be used as trigger selectors for the sw_last opcode.

Basically, this tells the SFZ player where the keyswitches are. As such, it’s normally going to be the same for the entire instrument, so sw_lokey and sw_hikey will be set under the global header. This affects sw_last keyswitches only, and sw_down keyswitches can be outside of this range - and indeed often must be, as sw_down is often used for legato instruments.

sw_lokey and sw_hikey can be entered in either MIDI note numbers (0 to 127) or in MIDI note names (C-1 to G9)

Example #

sw_lokey=48 sw_hikey=53
Name Version Type Default Range Unit
sw_hikey SFZ v1 integer 127 0 to 127

Category: Region Logic, MIDI Conditions