Files
doux-copy/website/src/content/timing.md
2026-01-18 15:39:46 +01:00

1.2 KiB

title, slug, group, order
title slug group order
Timing timing synthesis 101
<script lang="ts"> import CodeEditor from '$lib/components/CodeEditor.svelte'; import CommandEntry from '$lib/components/CommandEntry.svelte'; </script>

The engine clock starts at 0 and advances with each sample. Events with time are scheduled and fired when the clock reaches that value. The duration sets how long the gate stays open before triggering release. The repeat reschedules the event at regular intervals.

The time at which the voice should start. Defaults to 0.

<CodeEditor code={/freq/330/time/0\n\n/freq/440/time/0.5} rows={4} />

The duration (seconds) of the gate phase. If not set, the voice will play indefinitely, until released explicitly.

<CodeEditor code={/duration/.5} rows={2} />

If set, the command is repeated within the given number of seconds.

<CodeEditor code={/freq/330/time/0/duration/0.5/repeat/1\n\n/freq/440/time/0.5/duration/0.5/repeat/1} rows={4} />