Sensors and trigger

toni.bird's icon

Hi everybody,

I am brand new in max/msp/jitter and I am having some problems to trigger a video with external sensors...
Anyone help please !!!!
I have a force sensor on the floor that runs from values 800 to 1000 and I want to trigger a video just if this value is higher than 900, for example if someone not too heavy steps on it and the value goes to 900, nothing happens, but if the value is 901 or higher a video is triggered. Is that possible?
Any help please....!!!

Thanks so much
Bird

mzed's icon

Yes. it's possible.

The triggering stuff will look like

(whatever your sensor input is)
|
|
|
[> 900]
|
|
[change]
|
|
|
[select 1]
|
|
|
(however you plan to trigger your video)

The three Max objects you'll need to understand are >, change, and select. You'll have to look at the Jitter tutorials for how to play a video. There are took many ways of getting sensor data for me to generalize, but I'll make some suggestions if you give me more information.

cheers,

mz

Jean-Francois Charles's icon
Aadjan van der Helm's icon

Included patch (copy/paste in text file then open it in maxmsp) shows
how to trigger when sensor value reaches a value higher than 900. It
then give one signal.

Cheers,
--Aadjan

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