See Also
mf_insert_file()
mf_insert_event()
mf_remove_event()
$CURRENT_EVENT
mf_get_id()
save_midi_file()
16.11. mf_get_id()
mf_get_id()
Returns the ID of the currently selected event, when using the navigation commands like
mf_get_first()
and
mf_get_next()
, etc
See Also
mf_get_first()
mf_get_next()
mf_get_next_at()
mf_get_prev()
mf_get_prev_at()
mf_get_last()
16.12. mf_set_mark()
mf_set_mark(
,,)
Marks an event, so that you may group events together and
process that group quickly
The ID of the event to be marked
The mark number. Use the constants
$MARK_1
to
$MARK_10
Set this to
1
to mark an event or to
0
to unmark an event
See Also
mf_insert_file()
mf_insert_event()
mf_remove_event()
$ALL_EVENTS
$CURRENT_EVENT
mf_get_mark()
by_marks()
MIDI Object Commands
150
KSP Reference Manual
17. BUILT-IN VARIABLES AND CONSTANTS
17.1. General
$CURRENT_SCRIPT_SLOT
The script slot of the current script (zero based, i.e. the first script slot is 0).
%GROUPS_SELECTED[
]
An array with each array index pointing to the group with the same index.
If a group is selected for editing, the corresponding array cell contains a
1
, otherwise
0
.
$NI_ASYNC_EXIT_STATUS
Returns a value of 1 if the command that triggered the on
async_complete
callback has successfully completed its action.
0 if the command could not complete its action, e.g. file not found.
$NI_ASYNC_ID
Returns the ID of the command that triggered the on
async_complete
callback.
$NI_BUS_OFFSET
To be used in the
part of the engine parameter commands to point to the instrument bus level. Add the index of
the bus you wish to address, e.g.
$NI_BUS_OFFSET
+ 2 will point to instrument bus 3.
$NUM_GROUPS
Total amount of groups in an instrument. This is not a constant and thus cannot be used to define the size of an array.
$NUM_OUTPUT_CHANNELS
Total amount of output channels of the respective KONTAKT Multi, not counting Aux channels.
$NUM_ZONES
Total amount of zones in an instrument.
$PLAYED_VOICES_INST
The amount of played voices of the respective instrument.
$PLAYED_VOICES_TOTAL
The amount of played voices all instruments.
Path Variables
Built-in Variables and Constants
157
KSP Reference Manual
$GET_FOLDER_LIBRARY_DIR
If used with an NKI belonging to an encoded library: library folder.
If used with an unencoded NKI: the user content directory.
$GET_FOLDER_FACTORY_DIR
The factory folder of KONTAKT, mainly used for loading factory IR samples.
Note: this is not the factory library folder!
$GET_FOLDER_PATCH_DIR
The directory in which the patch was saved.
If
the patch was not saved before, an empty string is returned.
Time Machine Pro Variables
Used access the two voice limits (Standard and High Quality) of the Tme Machine Pro, to be used with
set_voice_lim-
it()
and
get_voice_limit()
.
$NI_VL_TMPRO_STANDARD
$NI_VL_TMRPO_HQ
$REF_GROUP_IDX
Group index number of the currently viewed group
Do'stlaringiz bilan baham: