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.

library_path: Path Experimental

Returns the path of the Kontakt library.

load_sample(path: Path) -> (Sample?) Experimental

Loads an audio sample from the given file path. If a sample with this path is already loaded, it will return the existing sample.

This function was introduced as experimental feature in Kontakt 8.10.

info

A nil value is returned if the sample cannot be loaded.