Ksp reference Manual



Download 0,99 Mb.
Pdf ko'rish
bet167/187
Sana10.02.2022
Hajmi0,99 Mb.
#441108
1   ...   163   164   165   166   167   168   169   170   ...   187
Bog'liq
KONTAKT 610 KSP Reference Manual

Advanced Concepts
196
KSP Reference Manual


on release
{do something custom here}
end on 
20.2. PGS
It is possible to send and receive values from one script to another, discarding the usual left-to-
right order by using the Program Global Storage (PGS) commands. PGS is a dynamic memory
that can be read/written by any script. 
PGS commands
pgs_create_key(,)
pgs_key_exists()
pgs_set_key_val(,,)
pgs_get_key_val(,)

is similar to a variable name; it can only contain letters and numbers and must not start
with a number. It is a good idea to always write them in capitals to emphasize their unique status.
Here's an example, insert this script into any slot:
on init
pgs_create_key(FIRST_KEY, 1) {defines a key with 1 element}
pgs_create_key(NEXT_KEY, 128) {defines a key with 128 elements}
declare ui_button $Just_Do_It
end on
on ui_control($Just_Do_It)
{writes 70 into the first and only memory location of FIRST_KEY}
pgs_set_key_val(FIRST_KEY, 0, 70)
{writes 50 into the first and 60 into the last memory location of NEXT_KEY}
pgs_set_key_val(NEXT_KEY, 0, 50)
pgs_set_key_val(NEXT_KEY, 127, 60)
end on
and insert the following script into any other slot:
on init
declare ui_knob $First (0,100,1)
declare ui_table %Next[128] (5,2,100)
end on
on pgs_changed
{checks if FIRST_KEY and NEXT_KEY have been declared}
if(pgs_key_exists(FIRST_KEY) and _pgs_key_exists(NEXT_KEY))

Download 0,99 Mb.

Do'stlaringiz bilan baham:
1   ...   163   164   165   166   167   168   169   170   ...   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