Skip to content

@liminal-hq/undertone / SampleSource

Interface: SampleSource

Defined in: samples.ts:9

Properties

baseNote?

optional baseNote?: string | number

Defined in: samples.ts:21

The pitch this recording actually sounds at. .s()'d samples playing a pitched note() event use noteToFrequency(pitch) / noteToFrequency(baseNote) as their playback rate. Defaults to "c4" when omitted.


buffer?

optional buffer?: AudioBufferLike

Defined in: samples.ts:15

An already-decoded buffer — used as-is, no fetch/decode step at all.


data?

optional data?: ArrayBuffer

Defined in: samples.ts:13

Already-downloaded encoded audio, decoded on demand or via loadSamples().


url?

optional url?: string

Defined in: samples.ts:11

Fetched with the platform fetch() and decoded on demand or via loadSamples().