Skip to main content

Sample Experimental

The Sample class represents an audio sample loaded in Kontakt.

import { Sample } from kontakt
export class Sample {
num_channels: Int { get }
num_frames: Int { get }
path: String { get }
sample_rate: Int { get }

to_string() -> String
}

This class was introduced as an experimental feature in Kontakt 8.10.

Constructors

None. This class cannot be instantiated directly. Instances are returned by load_sample or by querying a sample from an existing zone.

Properties

num_channels: Int (get)

The number of channels in the audio sample.

num_frames: Int (get)

The number of frames (samples per channel) in the audio sample.

path: String (get)

The file path of the audio sample.

sample_rate: Int (get)

The sample rate of the audio sample in Hz.

Methods

to_string() -> (String)

Returns a string representation of the sample.