Scale 0. 1. only outputting a 0.5

Tom's icon

Hi,
I am using a leap motion device and trying to use a grab trigger to freeze a video. Although i have set my scale and my grabs register as a bang in the leap window, it only registers as a 0.5 on the breakpoint. If i could get some advice on how to fix this that would be great as I am completely new to max.

Thanks

Source Audio's icon

You are sending only bangs to scale object.
That produces 0.5 at the output.
What is change 0 and select 1 supposed to do ?
Makes no sense to me.

Tom's icon

I had change 0 and select 1 thinking it would trigger a 1 on grab. If this isn't needed, what should i use to trigger the breakpoint from 0 to 1 when grabbing?

thanks

Source Audio's icon

I don't know what You mean by triggering breakpoint.
What do You want to do in simple words ?
Scale input range -220. - 220. to 0. 1., all foat ?
Or You want to produce a bang when certain value gets received ?
--------
Wrong in Your patch is :
1- Float input runs through change 0, which then outputs
integers if a value changed.
2- select 1 produces a bang when 1 gets received.
3- scale -220. 220. 0. 1. expects float values in the set range.
If all it receives is just a bang, it outpts 0.5 which is what would come out if received value was zero.
---------

Tom's icon

sorry for my wording, simply, I just want to freeze the video when a grab is received through the leap device.

Source Audio's icon

In that case You need to know what sort of message is needed for the freeze function.
What is that freezr patch that You are experimenting with ?
Does it not have any explanation how to use it ?
Anyway, what You receive from leapmotion under
grabstrength parameter is some kind of float range, or ?
You need to scale it or do whatever needed to use it for freeze function.
So simply post this 2 infos :
1 what do You get from leapmotion device (kind of message and range)
2 what is needed to trigger that freeze function.

Otherwise I don't know how to help You.

Tom's icon

Here's the information from grab strength and the instructions for the freezr.
If enabling the freeze requires a 0.-1.0 im not sure why i can't make the scale -220. 220. 0. 1. work
thanks

Source Audio's icon

Ok, I have looked into vizzie patch.
It has breakpoint - one could think of something
like threshold.
And it has selector input.
If selector input is higher than breakpoint, it freezes the video.
If it is lower, video continues playback.
And it needs on/off message and module enable/disable 0 - 1
to work.
I think this examples are not helpful at all.
Too much stuff is hidden into complicated subpatches,
instead of showing simple functioning.
That's why I delete all that shit immediatelly.
But now to Your problem :
You need to set breakpoint to desired value,
and what You receive from leapmotion needs to
be input into selector inlet.
If leapmotion outputs range 0. - 1.
why do You use that scale object ?
I asked You to post range that comes from leapmotion,
is that sooooo difficult ?
posting a screenshot showing float 1. is just not giving any info.
Post 2 numbers, expected minimum and maximium values.
From that, one can see if any scaling needs to be done.
If range from leapmotion is 0. - 1. than
scale -220. 220 0. 1. is absurd.
As You seem to like screenshots, here is one from me :