Skip to content

Commit

Permalink
Update syntax.yml (#119)
Browse files Browse the repository at this point in the history
* Update syntax.yml

Adding offset_mode opcode and its page

* Create offset_mode.md

Adding page.
  • Loading branch information
DSmolken committed Jul 29, 2023
1 parent 0b3ca36 commit 38570d0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
10 changes: 10 additions & 0 deletions _data/sfz/syntax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,16 @@ categories:
max: 4294967296
unit: "sample units"

- name: "offset_mode"
short_description: "Defines whether offset is measured in samples or percentage of sample length."
version: "ARIA"
value:
type_name: "string"
default: "samples"
options:
- name: "samples"
- name: "percent"

- name: "sample"
short_description: "Defines which sample file the region will play."
version: "SFZ v1"
Expand Down
14 changes: 14 additions & 0 deletions opcodes/offset_mode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
layout: "sfz/opcode"
opcode_name: "offset_mode"
---
An ARIA extension that can be used to set [offset] to a percentage of the
total sample length, instead of being measured in sample units. It
applies to both fixed offset and offset modulated by MIDI CC.

## Examples

```
offset_mode=percent
offset_oncc25=50
```

0 comments on commit 38570d0

Please sign in to comment.