Ksp reference Manual



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

3.4. ~ (real variable)
declare ~
Declare a user-defined variable to store a single real value
Variables
14
KSP Reference Manual


Remarks
• Real numbers should always be defined using a decimal, even if the number is a whole num-
ber. For example 2.0 should be used instead of only 2.
Examples
on init
declare ~test
~test := 0.5
end on
Creating a variable
on init
declare ~test := 0.5
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()
3.5. ? (real array)
declare ?[]
Declare a user-defined array to store single real values at specific indices
Remarks
• The maximal size of arrays is 1000000.
• The number of elements must be defined with a constant integer value, a standard variable
cannot be used.
• It is possible to initialize an array with one value, see the second example below.
• The commands 
array_equal()
and 
search()
do not work with arrays of real numbers.
Examples
on init
declare ?presets[5*4] := (...
{1} 1.0, 1.0, 1.0, 1.0,...
{2} 0.5, 0.7, 0.1, 0.5,...
Variables
15
KSP Reference Manual


{3} 1.0, 0.6, 0.6, 0.2,...
{4} 0.0, 0.0, 0.5, 0.3,...
{5} 0.0, 1.0, 0.4, 0.1)
end on
Creating an array for storing preset data
on init
declare ?presets[10*8] := (1.0)
end on 
Quick way of initializing the same array with the value 1.0
See Also
Array and Group Commands
make_persistent()

Download 0,99 Mb.

Do'stlaringiz bilan baham:
1   ...   9   10   11   12   13   14   15   16   ...   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