howldin
12-08-2009, 01:50 PM
Hi folks. I am finally starting to write a few, pretty basic scripts and am having only intermittent success. I suspect this question will be easily answered.
One script I want is one that is triggered by an FCB switch, to cycle through 3 settings of switchQuant: loop, cycle, and subcycle. My first attempts used else and if statements, but didn't work. Then I realized I need a Variable statement.
All the presets I use have switch quantize set to subcycle. The following script works to change it to cycle. that is helpful but not what I stated above as the goal. I have not been able to get a script to work that does the cyclic swapping. Suggestions, anyone?
!name switchquantswapper
!focuslock
!autoload
Label SQSwap
Variable saveswitchQuant $switchQuant
set switchQuant cycle
Message switchQuant cycle
end
set switchQuant $saveswitchQuant
endif
Many thanks in advance,
Hal Dean
One script I want is one that is triggered by an FCB switch, to cycle through 3 settings of switchQuant: loop, cycle, and subcycle. My first attempts used else and if statements, but didn't work. Then I realized I need a Variable statement.
All the presets I use have switch quantize set to subcycle. The following script works to change it to cycle. that is helpful but not what I stated above as the goal. I have not been able to get a script to work that does the cyclic swapping. Suggestions, anyone?
!name switchquantswapper
!focuslock
!autoload
Label SQSwap
Variable saveswitchQuant $switchQuant
set switchQuant cycle
Message switchQuant cycle
end
set switchQuant $saveswitchQuant
endif
Many thanks in advance,
Hal Dean