Ksp reference Manual



Download 0,99 Mb.
Pdf ko'rish
bet6/187
Sana10.02.2022
Hajmi0,99 Mb.
#441108
1   2   3   4   5   6   7   8   9   ...   187
Bog'liq
KONTAKT 610 KSP Reference Manual

2.5. on listener
on listener
Listener callback, executed at definable time intervals or whenever a transport command is received
Remarks
The listener callback is executed at time intervals defined with the 
set_listener()
command. It
can also react to the host's transport start and stop command. This makes it the ideal callback for
anything tempo synced like sequencers, arpeggiators, midi file player etc.
• In some situations (like tempo changes within the host) ticks can be left out.
Examples
on init
declare ui_knob $Test (0,99,1)
declare $direction
declare $tick_counter
set_listener($NI_SIGNAL_TIMER_MS,10000)
end on
on listener
if ($NI_SIGNAL_TYPE = $NI_SIGNAL_TIMER_MS)
if ($direction = 0)
inc($tick_counter)
else
dec($tick_counter)
end if
$Test := $tick_counter
if ($tick_counter = 99)
$direction := 1
end if
if ($tick_counter = 0)
$direction := 0
end if
end if
end on
Not useful as such, but nice to look at
See Also
set_listener()
change_listener_par()
Callbacks
6
KSP Reference Manual


$NI_SIGNAL_TYPE
$NI_SONG_POSITION
2.6. on note
on note
Note callback, executed whenever a note on message is received
Examples
on note
message("Note Nr: " & $EVENT_NOTE & " - Velocity: " & $EVENT_VELOCITY)
end on
Query note data
See Also
on release
ignore_event()
set_event_par()
get_event_par()
$EVENT_NOTE
$EVENT_VELOCITY
$EVENT_ID

Download 0,99 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9   ...   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