Skip to content

@liminal-hq/undertone / DriftOptions

Interface: DriftOptions ​

Defined in: drift.ts:13

Properties ​

cents? ​

optional cents?: number

Defined in: drift.ts:21

Largest detune in cents, either way. Pitched voices only. Default 0.


cyclesPerPass? ​

optional cyclesPerPass?: number

Defined in: drift.ts:30

How many cycles make up one pass. The seed advances every pass, so pass N differs from pass N+1 but is always the same for the same seed. Default 1.


level? ​

optional level?: number

Defined in: drift.ts:19

Largest level change as a fraction either way (0.1 = ±10% of the note's velocity). Default 0.


pan? ​

optional pan?: number

Defined in: drift.ts:23

Largest pan offset either way, kept within -1 to 1. Default 0.


push? ​

optional push?: number

Defined in: drift.ts:25

Constant offset in seconds applied to every note: positive plays behind the beat, negative ahead of it. Default 0.


seed ​

seed: string | number

Defined in: drift.ts:15

Makes the variation repeatable. The same seed always gives the same result.


timing? ​

optional timing?: number

Defined in: drift.ts:17

Largest timing offset in seconds, either way, per note. Applied as a nudge. Default 0.