Skip to content

Commit 0ec6e91

Browse files
authored
Prioritize midi note numbers over names (#139)
1 parent 930c633 commit 0ec6e91

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

docs/opcodes/lokey.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ for example, pedal noises which are triggered whether any keys are pressed or no
2020
## Examples
2121

2222
```sfz
23-
<region> sample=*sine lokey=c5 hikey=c6
23+
<region> sample=*sine lokey=72 hikey=84
2424
```
2525

26-
As with the [key] opcode, the values can also be MIDI note numbers:
26+
As with the [key] opcode, the values can also be MIDI note names:
2727

2828
```sfz
29-
<region> sample=*sine lokey=72 hikey=84
29+
<region> sample=*sine lokey=c5 hikey=c6
3030
```
3131

3232
When an instrument is sampled every minor third, this kind of usage will be common:

docs/opcodes/xfout_lokey.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ and zero for keys greater than or equal to `xfout_hikey`.
1010

1111
## Example
1212

13+
```sfz
14+
xfout_lokey=72 xfout_hikey=84
15+
```
16+
17+
As with the [key] opcode, the values can also be MIDI note names:
18+
1319
```sfz
1420
xfout_lokey=c5 xfout_hikey=c6
1521
```

0 commit comments

Comments
 (0)