program change script : don't extract #value#
2 posters
Page 1 of 1
program change script : don't extract #value#
Hi,
The purpose of this script is simply to display the value of a program change received, but it always display "PGM 0"
(@pgm:127)
[(pc:*,*){@pgm:#value#}]
[(@pgm:*){text:PGM #@pgm#}]
I attached the log
Rgds
The purpose of this script is simply to display the value of a program change received, but it always display "PGM 0"
(@pgm:127)
[(pc:*,*){@pgm:#value#}]
[(@pgm:*){text:PGM #@pgm#}]
I attached the log
Rgds
- Attachments
kekule- Posts : 4
Join date : 2023-12-30
Re: program change script : don't extract #value#
There seems to be a problem with the #value# reference; I need to investigate that. Use the direct event reference instead:
[(pc:*,*){@pgm:#@e_pc#}]
[(@pgm:*){text:PGM #@pgm#}]
I don't know what the line (@pgm:127) is meant to do. Since it is not enclosed by square brackets, the script engine treats it as a comment.
[(pc:*,*){@pgm:#@e_pc#}]
[(@pgm:*){text:PGM #@pgm#}]
I don't know what the line (@pgm:127) is meant to do. Since it is not enclosed by square brackets, the script engine treats it as a comment.
Re: program change script : don't extract #value#
Thank you, it works better now.
My mistake for line 1, I thought it was needed to 'declare' the variable.
My mistake for line 1, I thought it was needed to 'declare' the variable.
kekule- Posts : 4
Join date : 2023-12-30
Re: program change script : don't extract #value#
The variable is created with the value 0 at the first reference. If you want it to be initialized with another value, you can use an init command:
[(init){@pgm:127}]
[(init){@pgm:127}]
Similar topics
» Program Change Button Script Broken in 3.5.0.88
» Program change
» Midi Port Cannot change
» Increment/Decrement Program Change buttons
» User customizable program ch. names
» Program change
» Midi Port Cannot change
» Increment/Decrement Program Change buttons
» User customizable program ch. names
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum