Skip to main content

Utilities

create_tmp_midi_file(for_export_area: Int) -> (String)

Creates temporary MIDI file for the given export area and returns a file URL to it.

Use this to enable MIDI drag and drop.

load_sample(path: String) -> (audio_components.Sample) Experimental

Loads an audio sample from the given file path.

This function was introduced as experimental feature in Kontakt 8.9.

info

An error is raised if the file cannot be loaded.

get_sample_from_zone(named zone_name: String) -> (audio_components.Sample) Experimental

Gets the audio sample assigned to the zone with the given name.

This function was introduced as experimental feature in Kontakt 8.9.

info

An error is raised if no zone with the given name exists.

info

The zone name corresponds to its loaded sample's filename, excluding the file path and extension.