Ksp reference Manual



Download 0,99 Mb.
Pdf ko'rish
bet14/187
Sana10.02.2022
Hajmi0,99 Mb.
#441108
1   ...   10   11   12   13   14   15   16   17   ...   187
Bog'liq
KONTAKT 610 KSP Reference Manual

3.6. @ (string variable)
declare @
Declare a user-defined string variable to store text
Remarks
• You cannot declare and define a string variable in the same line of code as you can with an
integer variable.
• It is possible to make string variables persistent.
Examples
on init
declare @text
@text := "Last received note number played or released: "
end on
on note
message(@text & $EVENT_NOTE)
end on
on release
message(@text & $EVENT_NOTE)
end on
Use string variables to display long text
See Also
!(string array)
Variables
16
KSP Reference Manual


ui_text_edit
make_persistent()
3.7. ! (string array)
declare ![]
Declare a user-defined string array to store text strings at specified indices
Remarks
• The maximal size of arrays is 1000000.
• Just like with string variables, the contents of a string array cannot be defined on the same line
as the declaration.
• String arrays cannot be made persistent.
Examples
on init
declare $count
declare !note[12]
!note[0] := "C"
!note[1] := "Db"
!note[2] := "D"
!note[3] := "Eb"
!note[4] := "E"
!note[5] := "F"
!note[6] := "Gb"
!note[7] := "G"
!note[8] := "Ab"
!note[9] := "A"
!note[10] := "Bb"
!note[11] := "B"
declare !name [128]
while ($count < 128)
!name[$count] := !note[$count mod 12] & (($count/12)-2)
inc ($count)
end while
end on
on note
message("Note played: " & !name[$EVENT_NOTE])
end on
Creating a string array with all MIDI note names
Variables
17
KSP Reference Manual


See Also
@ (string variable)

Download 0,99 Mb.

Do'stlaringiz bilan baham:
1   ...   10   11   12   13   14   15   16   17   ...   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