Why I cannot match the timeframe easily and show them on max console?

Chloë Cheuk's icon

I have trouble of matching the number of the video to the selected ones.
Why is that?
I want to use this patch to communicate with arduino to trigger the solenoid, so when i run a video, at a certain time that is selected by me , the solenoid will be triggered. I also cannot print a,b,c and d on Max Console. Please help

LSka's icon

what do the numbers you want to match represent? seconds? milliseconds?

in that case you should use getattr

Max Patch
Copy patch and select New From Clipboard in Max.

Chloë Cheuk's icon

Hi, I want seconds

TFL's icon

Not necessary to use [getattr], you can also query time_secs with messages:

Max Patch
Copy patch and select New From Clipboard in Max.

The main error in your patch might be that you are connecting the rightmost outlet of your [sel] to [onebang], but that rightmost outlet will output anything that doesn't match the values you entered.

You can also use [change] instead of your [onebang] + [delay] to filter out repetitions.


I also cannot print a,b,c and d on Max Console.

Not sure what a, b, c and d are relating to here. I can only see a being your [serial] port, but that's it.