Ksp reference Manual



Download 0,99 Mb.
Pdf ko'rish
bet46/187
Sana10.02.2022
Hajmi0,99 Mb.
#441108
1   ...   42   43   44   45   46   47   48   49   ...   187
Bog'liq
KONTAKT 610 KSP Reference Manual

General Commands
53
KSP Reference Manual


8. EVENT COMMANDS
8.1. by_marks()
by_marks()
A user defined group of events (or event IDs)
Remarks
by_marks()
is a user defined group of events which can be set with 
set_event_mark()
. It can
be used with all commands which utilize event IDs like 
note_off()

change_tune()
etc.
Examples
on note
if ($EVENT_NOTE mod 12 = 0) {if played note is a c}
set_event_mark($EVENT_ID,$MARK_1)
change_tune(by_marks($MARK_1),%CC[1]*1000,0)
end if
end on
on controller
if($CC_NUM = 1)
change_tune(by_marks($MARK_1),%CC[1]*1000,0)
end if
end on
Moving the mod wheel changes the tuning of all c's (C-2, C-1…C8)
See Also 
set_event_mark()
$EVENT_ID
$ALL_EVENTS
$MARK_1 … $MARK_28
8.2. change_note()
change_note(
,
)
Change the note number of a specific note event
Remarks

Change_note()
is only allowed in the note callback and only works before the first 
wait()
statement. If the voice is already running, only the value of the variable changes.
Event Commands
54
KSP Reference Manual


• Once the note number of a particular note event is changed, it becomes the new
$EVENT_NOTE
• It is not possible to address events via event groups like 
$ALL_EVENTS
Examples
on init
declare %black_keys[5] := (1,3,6,8,10)
end on
on note
if (search(%black_keys,$EVENT_NOTE mod 12) # -1)
change_note($EVENT_ID,$EVENT_NOTE-1)
end if
end on
Constrain all notes to white keys, i.e. C major
See Also 
$EVENT_NOTE
change_velo()

Download 0,99 Mb.

Do'stlaringiz bilan baham:
1   ...   42   43   44   45   46   47   48   49   ...   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