0% found this document useful (0 votes)
210 views2 pages

Script Rolly para Envio

The program initializes by displaying a label with the text "developed by Rolly". It then declares a variable to store MIDI program numbers. When a MIDI input is received, it checks if it is a program change command. If so, it selects the program number based on the MIDI byte value, displays a message indicating the program, stores the number in the variable, and sends a MIDI program change command using that number. This allows it to change MIDI programs in response to button presses.

Uploaded by

Edwin Sandoval
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
210 views2 pages

Script Rolly para Envio

The program initializes by displaying a label with the text "developed by Rolly". It then declares a variable to store MIDI program numbers. When a MIDI input is received, it checks if it is a program change command. If so, it selects the program number based on the MIDI byte value, displays a message indicating the program, stores the number in the variable, and sends a MIDI program change command using that number. This allows it to change MIDI programs in response to button presses.

Uploaded by

Edwin Sandoval
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

on init

message("Rolly M P")

set_script_title("Programa Echo de rolly")

declare ui_label $label_1 (2,1)


set_text ($label_1,"desemvolvido por Rolly")

declare $prog_num

end on

on midi_in

if($MIDI_COMMAND = 176)

select($MIDI_BYTE_1)

case 36
message("Prog A")
$prog_num := 0
set_midi($MIDI_CHANNEL,$MIDI_COMMAND_PROGRAM_CHANGE,$prog_num,0)

case 37
message("Prog B")
$prog_num := 1
set_midi($MIDI_CHANNEL,$MIDI_COMMAND_PROGRAM_CHANGE,$prog_num,0)

case 38
message("Prog C")
$prog_num := 2
set_midi($MIDI_CHANNEL,$MIDI_COMMAND_PROGRAM_CHANGE,$prog_num,0)

case 39
message("Prog D")
$prog_num := 3
set_midi($MIDI_CHANNEL,$MIDI_COMMAND_PROGRAM_CHANGE,$prog_num,0)

case 40
message("Prog E")
$prog_num := 4
set_midi($MIDI_CHANNEL,$MIDI_COMMAND_PROGRAM_CHANGE,$prog_num,0)

case 41
message("Prog F")
$prog_num := 5
set_midi($MIDI_CHANNEL,$MIDI_COMMAND_PROGRAM_CHANGE,$prog_num,0)

case 42
message("Prog G")
$prog_num := 6
set_midi($MIDI_CHANNEL,$MIDI_COMMAND_PROGRAM_CHANGE,$prog_num,0)
case 43
message("Prog H")
$prog_num := 7
set_midi($MIDI_CHANNEL,$MIDI_COMMAND_PROGRAM_CHANGE,$prog_num,0)

case 09
message("Prog I")
$prog_num := 8
set_midi($MIDI_CHANNEL,$MIDI_COMMAND_PROGRAM_CHANGE,$prog_num,0)

end select

end if

end on

You might also like