Ksp reference Manual


set_key_pressed_support()



Download 0,99 Mb.
Pdf ko'rish
bet101/187
Sana10.02.2022
Hajmi0,99 Mb.
#441108
1   ...   97   98   99   100   101   102   103   104   ...   187
Bog'liq
KONTAKT 610 KSP Reference Manual

13.11. set_key_pressed_support()
set_key_pressed_support()
Sets the pressed state support mode for KONTAKT'S keyboard. The available modes are:
0: KONTAKT handles all pressed states. 
set_key_pressed()
commands are ignored (default mode).
1: KONTAKT's keyboard is only affected by 
set_key_pressed()
commands.
Keyboard Commands
116
KSP Reference Manual


Remarks
The pressed state mode resides outside KSP, i.e. changing the mode is similar to changing a
KONTAKT knob with 
set_engine_par()
. Make sure to always set the desired mode in the init
callback.
Examples
on init
declare ui_button $Enable
set_key_pressed_support(0)
end on
on ui_control ($Enable)
set_key_pressed_support($Enable)
end on
on note
play_note($EVENT_NOTE+4,$EVENT_VELOCITY,0,-1)
play_note($EVENT_NOTE+7,$EVENT_VELOCITY,0,-1)
set_key_pressed($EVENT_NOTE,1)
set_key_pressed($EVENT_NOTE+4,1)
set_key_pressed($EVENT_NOTE+7,1)
end on
on release
set_key_pressed($EVENT_NOTE,0)
set_key_pressed($EVENT_NOTE+4,0)
set_key_pressed($EVENT_NOTE+7,0)
end on
Press the button and you will see what you hear
See Also
set_key_pressed()
get_key_triggerstate()

Download 0,99 Mb.

Do'stlaringiz bilan baham:
1   ...   97   98   99   100   101   102   103   104   ...   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