Documents
Writing Docs Gigedit SFZ Instrument Scripts NKSP Language NKSP Reference

lokey Opcode

Causes the associated region to play when a constraint on MIDI note is respected. Used in conjunction with hikey, it makes the region play when the incoming note is equal to or higher than lokey and equal to or lower than hikey.

Opcode Prototype

lokey=lower limit

Parameter

The mandatory lower limit parameter defines the range's lower limit. This parameter only accepts valid MIDI note numbers (from 0 to 127) or names (from C-1 to G9):

Note Numbers Note Names Octave
0 to 11 C-1 to B-1 -1
12 to 23 C0 to B0 0
24 to 35 C1 to B1 1
36 to 47 C2 to B2 2
48 to 59 C3 to B3 3
60 to 71 C4 to B4 4
72 to 83 C5 to B5 5
84 to 95 C6 to B6 6
96 to 107 C7 to B7 7
108 to 119 C8 to B8 8
120 to 127 C9 to G9 9

Allowed Sections

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

Examples

Defines one region for each of three octaves.

Availability

Since LinuxSampler 2.0.0

Conforms to SFZ v1 Standard.

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