Sample
interface Sample {
uuid: string
name: string
duration: number
bpm: number
sample_rate: number
origin?: 'openDAW' | 'recording' | 'import'
}A sample known to the studio. Obtain one via Api.addSample or Api.listSamples.
- See:
Properties
uuid: string
readonly
Unique id of the sample (uuid string)
name: string
readonly
Display name
duration: number
readonly
Length in seconds
bpm: number
readonly
Detected or assigned tempo (0 = unknown, plays in seconds when placed on the timeline)
sample_rate: number
readonly
Sample rate in Hz
origin: 'openDAW' | 'recording' | 'import'
readonly
Where the sample came from, a recording keeps its exact length when placed