valera
2011-11-12 16:10:37
Hello!
I very much was delighted, when have found in Internet MT! I am grateful to authors of the program for courageous and unique idea!
I have harmonizer TC Helicon VoiceWorksPlus. It has not enough buttons and adjusters for an operational administration all functions. Therefore I dreamt to use for a long time the PC keyboard as the midi-controller for the TC Helicon VoiceWorksPlus.
I while work with Trial version 1.71. I wish to be convinced of possibilities of this program before its purchase. But while for me is a lot of not clear. Especially in writing Rules.
As experiment I have wanted to operate one of parametres TC Helicon VoiceWorksPlus.
F0 00 01 38 00 51 22 03 32 00 00 qq pp F7
Complexity in that the band of changes of this parametre consists for example of 10 steps. Thus the variable "pp" should make two cycles on 5 steps. After each cycle the variable "qq" changes the value with 00h on 01h.
So Incoming Keystroke "H".
For this purpose I have created (Incoming Keystroke "H") two identical cycles "To middle" and "After middle" with check of a peak value of the counter gx> 6. At gx> 6 variables "qq" are appropriated in the beginning value qq=1 (a cycle "To middle"), and next time qq=0 (a cycle "After middle").
I do not understand, why "jp" is by default equal "0", and "qq" by default cannot be equal "0"?
I not the mathematician and not the programmer, therefore am possible I in something I am mistaken. Help please council.
Thanks for attention.
I very much was delighted, when have found in Internet MT! I am grateful to authors of the program for courageous and unique idea!
I have harmonizer TC Helicon VoiceWorksPlus. It has not enough buttons and adjusters for an operational administration all functions. Therefore I dreamt to use for a long time the PC keyboard as the midi-controller for the TC Helicon VoiceWorksPlus.
I while work with Trial version 1.71. I wish to be convinced of possibilities of this program before its purchase. But while for me is a lot of not clear. Especially in writing Rules.
As experiment I have wanted to operate one of parametres TC Helicon VoiceWorksPlus.
F0 00 01 38 00 51 22 03 32 00 00 qq pp F7
Complexity in that the band of changes of this parametre consists for example of 10 steps. Thus the variable "pp" should make two cycles on 5 steps. After each cycle the variable "qq" changes the value with 00h on 01h.
So Incoming Keystroke "H".
For this purpose I have created (Incoming Keystroke "H") two identical cycles "To middle" and "After middle" with check of a peak value of the counter gx> 6. At gx> 6 variables "qq" are appropriated in the beginning value qq=1 (a cycle "To middle"), and next time qq=0 (a cycle "After middle").
Code: Select all
if qq== 0 then Goto "To middle"
if qq== 1 then Goto "After middle"
Label "To middle"
gx=gx+1
if gx> 6 then gx=0
if gx== 0 then qq=1
pp=gx-1
if gx== 0 then Goto "After middle"
exit rules, execute Outgoing Action
Label "After middle"
gx=gx+1
if gx> 6 then gx=0
if gx== 0 then qq=0
pp=gx-1
if gx== 0 then Goto "To middle"
exit rules, execute Outgoing Action
Strange, but this program always starts to work with a cycle "After middle", as though by default qq=1. But it yet all.
When in a cycle "After middle" the counter reaches a peak value (gx> 6), qq=0 (zeroing). The program passes by first line, the condition satisfies and logically passes to a cycle "To middle". Here again in the first step of this cycle suddenly there is a strange: qq=1 (has seen at debugging).
After that the program logically passes in the second line, the condition satisfies and again passes to a cycle "After middle".
I long could not understand, where my error. I did not believe, that MT can incorrectly work. But I all the same was convinced, that "qq" receives the values illogically. Then I have set to it value qq=jp and have entered it into the program. And my program began to work at once!
if jp== 0 then Goto "To middle"
if jp== 1 then Goto "After middle"
Label "To middle"
gx=gx+1
qq=jp
if gx> 6 then gx=0
if gx== 0 then jp=1
pp=gx-1
if gx== 0 then Goto "After middle"
exit rules, execute Outgoing Action
Label "After middle"
gx=gx+1
qq=jp
if gx> 6 then gx=0
if gx== 0 then jp=0
pp=gx-1
if gx== 0 then Goto "To middle"
exit rules, execute Outgoing Action
I not the mathematician and not the programmer, therefore am possible I in something I am mistaken. Help please council.
Thanks for attention.