Overview: a script which randomizes a monitor's value, attached to a pad's OnExpression x Up Trigger Mode. Tha Pad is named Pad:
Code: Select all
Monitor.value = rand();
Code: Select all
Pad.x = 1;
Pad.x = 0;
changing the script to:
Code: Select all
Pad.x = 1;
//Pad.x = 0;
Code: Select all
//Pad.x = 1;
Pad.x = 0;
Code: Select all
Pad.x = 1;
if (Pad.x==1){ // read the value right from the pad itself
TrapPadXVal.value = Pad.x; // add another monitor to read and trap the value of Pad.x if it goes to 1 even for an instant
Pad.x = 0; // turn it off ONLY if it's already on
}
I'm thinking maybe Lemur is tripping over itself? Lets add a little loop to delay the Pad.x=0:
Code: Select all
Pad.x = 1;
if (Pad.x==1){ // read the value right from the pad itself
TrapPadXVal.value = Pad.x; // add another monitor to read and trap the value of Pad.x if it goes to 1 even for an instant
decl i;
for(i=0;i<9997;i++){ // loop to add a little delay
}
Pad.x = 0; // turn it off ONLY if it's already on
}
WTF???????!!!!!
Attached is a small test template demonstrating this, for your listening pleasure