Skip to content

Commit fbf3dea

Browse files
authored
Update loop_mode.md
Adding info on how one_shot should be implemented.
1 parent be27873 commit fbf3dea

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docs/opcodes/loop_mode.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ In ARIA, if loop_mode=loop_continuous or loop_sustain, `loop_end` is not specifi
4848
and the sample does not have a loop defined, the player will loop through
4949
the entire sample file.
5050

51+
In ARIA and the Cakewalk players, if loop_mode=one_shot is set and the sample file
52+
metadata contains defined loop points, the loop points are disregarded and the sample is
53+
played through only once. This prevents regions which disregard note-off messages
54+
looping infinitely (unless muted by running out of polyphony voices, an [off_by] opcode,
55+
[ampeg_sustain] going to zero or some other external event).
56+
5157
## Examples
5258

5359
```sfz
@@ -58,5 +64,7 @@ loop_mode=loop_continuous
5864

5965

6066
[ampeg_release]: ampeg_release.md
67+
[ampeg_sustain]: ampeg_sustain.md
6168
[count]: count.md
6269
[trigger]: trigger.md
70+
[off_by]: off_by.md

0 commit comments

Comments
 (0)