Ksp reference Manual


See Also on ui_control() Callbacks



Download 0,99 Mb.
Pdf ko'rish
bet12/187
Sana10.02.2022
Hajmi0,99 Mb.
#441108
1   ...   8   9   10   11   12   13   14   15   ...   187
Bog'liq
KONTAKT 610 KSP Reference Manual

See Also
on ui_control()
Callbacks
12
KSP Reference Manual


3. VARIABLES
3.1. General Information
• All user defined variables must be declared in the 
on init
callback.
• Variable names may contain only numbers, characters and the underscore ( _ ).
• Variable names are case-sensitive.
• Please do not create variables with the prefixes below, as these prefixes are used for internal
variables and constants.
$NI_
$CONTROL_PAR_
$EVENT_PAR_
$ENGINE_PAR_
3.2. $ (int variable)
declare $
Declare a user-defined variable to store a single integer value
Examples
on init
declare $test
$test := -1
end on
Creating a variable
on init
declare $test := -1
end on
Creating a variable, the same as above but shorter
See Also
on init
make_persistent()
read_persistent_var()
int_to_real()
real_to_int()
Variables
13
KSP Reference Manual


3.3. % (int array)
declare %[]
Declare a user-defined array to store single integer values at specific indices
Remarks
• The maximal size of arrays is 1000000.
• The number of elements must be defined with a constant value, a standard variable cannot be
used.
• It is possible to initialize an array with one value, see the second example below.
Examples
on init
declare %presets[10*8] := (...
{1} 8,8,8,0, 0,0,0,0,...
{2} 8,8,8,8, 0,0,0,0,...
{3} 8,8,8,8, 8,8,8,8,...
{4} 0,0,5,3, 2,0,0,0,...
{5} 0,0,4,4, 3,2,0,0,...
{6} 0,0,8,7, 4,0,0,0,...
{7} 0,0,4,5, 4,4,2,2,...
{8} 0,0,5,4, 0,3,0,0,...
{9} 0,0,4,6, 7,5,3,0,...
{10} 0,0,5,6, 4,4,3,2)
end on
Creating an array for storing preset data
on init
declare %presets[10*8] := (4)
end on
Quick way of initializing the same array with the value 4
See Also
Array and Group Commands
make_persistent()

Download 0,99 Mb.

Do'stlaringiz bilan baham:
1   ...   8   9   10   11   12   13   14   15   ...   187




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish