From 03ab72d28f4eeb4c6ae66ff0a80c7a96ffe36d60 Mon Sep 17 00:00:00 2001 From: "D. Smolken" <49921787+DSmolken@users.noreply.github.com> Date: Sat, 29 Jul 2023 09:17:59 +0200 Subject: [PATCH] Update syntax.yml (#119) * Update syntax.yml Adding offset_mode opcode and its page * Create offset_mode.md Adding page. --- _data/sfz/syntax.yml | 10 ++++++++++ opcodes/offset_mode.md | 14 ++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 opcodes/offset_mode.md diff --git a/_data/sfz/syntax.yml b/_data/sfz/syntax.yml index 3dba64f8d..921e779d9 100644 --- a/_data/sfz/syntax.yml +++ b/_data/sfz/syntax.yml @@ -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" diff --git a/opcodes/offset_mode.md b/opcodes/offset_mode.md new file mode 100644 index 000000000..57ed88b35 --- /dev/null +++ b/opcodes/offset_mode.md @@ -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 +```