red33mer
2008-11-18 15:00:30
Hello,
I got a Stanton DaScratch with 8 touchpads and want to merge every two so i get 4 outgoing messages. Thats is not a big deal with variables and if condition but additionaly i have a timer/Killswitch triggered by the pads aswell. To realise that i am using a toggle rule like user metastatik told me.
Example for Pad 1 (Midicontroller 79) and 2 (Midicontroller 81)
Problem is: when Djing it happens that both fields are pressed simultaneously with one finger due to the fact that they have a very short distance. In this case the timer doesnt start. In my opinion this results from the toggle rule..the first midi message sets the toggle to 1 while the second one arrives a few milliseconds later and sets it to 0 again. That means that the timer is not executed...
How can i solve this problem? I dont get it....
Please help if you can...
Thank You
[/code]
I got a Stanton DaScratch with 8 touchpads and want to merge every two so i get 4 outgoing messages. Thats is not a big deal with variables and if condition but additionaly i have a timer/Killswitch triggered by the pads aswell. To realise that i am using a toggle rule like user metastatik told me.
Example for Pad 1 (Midicontroller 79) and 2 (Midicontroller 81)
Code: Select all
Translator 1 (set_toggle_set_timer)
Incoming: MIDI 90 xx 01
Rules:
if xx==79 then Goto "Merge"
if xx==81 then Goto "Merge"
exit rules, skip outgoing Action
Label "Merge"
ga = 1 – ga
if ga!=1 then exit rules, skip Outgoing Action
Outgoing: Timer T1
Translator 2 (Kill Timer)
Incoming: MIDI 90 xx 01
if ga!=0 then exit rules, skip Outgoing Action
if xx==79 then exit rules, execute Outgoing Action
if xx==81 then exit rules, execute Outgoing Action
exit rules, skip Outgoing Action
Outgoing: Kill Timer T1
How can i solve this problem? I dont get it....
Please help if you can...
Thank You
[/code]