Ksp reference Manual



Download 0,99 Mb.
Pdf ko'rish
bet96/187
Sana10.02.2022
Hajmi0,99 Mb.
#441108
1   ...   92   93   94   95   96   97   98   99   ...   187
Bog'liq
KONTAKT 610 KSP Reference Manual

User Interface Commands
108
KSP Reference Manual


13. KEYBOARD COMMANDS
13.1. get_key_color()
get_key_color()
Returns the color constant of the specified note number
Examples
on init
message("")
declare $count
while ($count < 128)
set_key_color($count,$KEY_COLOR_INACTIVE)
inc($count)
end while
declare $random_key
$random_key := random(60,71)
set_key_color($random_key,$KEY_COLOR_RED)
end on
on note
if (get_key_color($EVENT_NOTE) = $KEY_COLOR_RED)
message("Bravo!")
set_key_color($random_key,$KEY_COLOR_INACTIVE)
$random_key := random(60,71)
set_key_color($random_key,$KEY_COLOR_RED)
else
message("Try again!")
end if
end on
on release
message("")
end on
Catch me if you can
See Also
set_key_color()
Keyboard Commands
109
KSP Reference Manual


13.2. get_key_name()
get_key_name()
Returns the name of the specified key
Examples
on init
declare $count
while ($count < 128)
set_key_name($count,"")
inc($count)
end while
set_key_name(60,"Middle C")
end on
on note
message(get_key_name($EVENT_NOTE))
end on
See Also
set_key_name()
13.3. get_key_triggerstate()
get_key_triggerstate()
Returns the pressed state of the specified note number, i.e. key, on the KONTAKT keyboard. It can be either 1 (key pressed)
or 0 (key released).
Remarks
get_key_triggerstate()
only works with 
set_key_pressed_support()
set to 1.
Examples
on init
set_key_pressed_support(1)
end on
on note
set_key_pressed($EVENT_NOTE,1)
message(get_key_triggerstate($EVENT_NOTE))
end on
on release
set_key_pressed($EVENT_NOTE,0)

Download 0,99 Mb.

Do'stlaringiz bilan baham:
1   ...   92   93   94   95   96   97   98   99   ...   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