@liminal-hq/undertone / SampleSource
Interface: SampleSource
Defined in: samples.ts:9
Properties
baseNote?
optionalbaseNote?: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?
optionalbuffer?:AudioBufferLike
Defined in: samples.ts:15
An already-decoded buffer — used as-is, no fetch/decode step at all.
data?
optionaldata?:ArrayBuffer
Defined in: samples.ts:13
Already-downloaded encoded audio, decoded on demand or via loadSamples().
url?
optionalurl?:string
Defined in: samples.ts:11
Fetched with the platform fetch() and decoded on demand or via loadSamples().