trigger bang below threshold, negative values

Rachel 's icon

Hello

I've been using a 'past' object to control when a flow of numbers generated by a sensor triggers a bang. As I'm using a gyrometer I'd like a similar mechanism for crossing the threshold in the other direction, i.e. when the flow of numbers goes below a negative value.

Suggestions?

Thanks in advance.

TFL's icon

Never heard about the [past] object, seems like an old relique (no pun intended) without cold inlet!

It is not clear if you want to know when a given threshold is crossed in both directions, or if you want to be able to define a different threshold for when the value is decreasing (which is called an hysteresis).

For the former, here is an example, simply using another [past]:

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

If you want an hysteresis, search for this term in the forum, and check the comparator objects [<], [>] and even maybe [if].

Rachel 's icon

Ah yes, <>, I did know that long ago.
Many thanks for your help!

Source Audio's icon

a little correction