Troubleshooting

multipad with blinking last pressed button?? [solved]

Started by dburns on .

Sign in or create an account to join the conversation.

5 posts

Topic starter
OK, I'm just obsessed, and feeling dumb. Super thankful to Antonio for the script on the blinking singular pad- But now I'm hoping to do the same thing to a pad that has 1 column and say 4 rows where the last pressed is the one that is "blinking"

expressions declared-
flash=0
flashMaxLight=.75
lastTime=0
router=0

my flash script became- (flashprocess)

on frame-
if (!router) return;
flash = sin(time*4)*+.3+.3; // which gives more of a sine wave ramp up and down light brightness then a blink

the script (rstart) I kept the same as

on pad pressed-
lastTime = time;
router = !router;
flash = 0;

I know the script to light up the last pressed button is as follows-
expression declared-
s=

script (act)
on expression x rising
decl i, size = sizeof(x);
for (i=0;i<size;i++){
if (!x) s=0;
else s=1;
}

Where light= s

This lights up the last pressed but it's a static on. How in heck do I combine these two????

thanks in advance for any insight.
Subject: Re: multipad with blinking last pressed button??
OK, so with the following I can make any pressed pad blink while I am holding it down, but it stops upon release of the pad.I created the expression "s" at the pad level outside the script and made the "light=" value = s

on frame-
decl i, size = sizeof(x);
decl flash=(tan(time*5))/3+.3+.3;

for (i=0;i<size;i++)
{
if (!x) s=0;
else s=flash;
}

I guess I need to somehow separate the flashing script and have it run on frame, but somehow make the value for s on an expression "x" script while rising.

So close

blink multipad.jzlib
Subject: Re: multipad with blinking last pressed button??
So downloaded 120 odd times and no one willing to step forward with a solution?

Willing to pay someone for a proper script, pm me if you are interested.