80
Preset content for testing the influence of large “switch” statements
CHANNEL 01 = 1
VAR $current = ""
TRIGGER_CLICK ChangeSound =
{
switch($current)
{
case "preset 01":
SendMidi 01 ProgChange 1
break
case "preset 02":
SendMidi 01 ProgChange 2
break
...
case "preset 100":
SendMidi 01 ProgChange 100
break
}
}
PRESET preset 01 =
{
$current = "preset 01"
SendTrigger ChangeSound
}
PRESET preset 02 =
{
$current = "preset 02"
SendTrigger ChangeSound
}
...
PRESET preset 100 =
{
$current = "preset 100"
SendTrigger ChangeSound
}
Содержание TinyBox
Страница 1: ...THE TINYBOX User Manual v 1 4...