Forums > MaxMSP

Sensitivity trigger?

November 8, 2010 | 5:12 am

So I’m trying to get a section of my patch to engage when the signal coming from an adc~ is at or above a level that is set by the user (a slider). I’m new at this and am thinking I’ll have to use the omx.comp~ object to achieve this. I’ve got a meter coming from the adc~ object and am reading it’s output from a number box. I’ve scaled the range up from 0-1 to 0-99 to get some bigger numbers to play with. I was thinking I’d have to use this number compared to a number set by the user to trigger the filter sweep section of my patch. Maybe use gate~? any help would be great thanks…

Matt


November 8, 2010 | 10:33 am

The [average~] object is pretty good for this sort of thing. The you want to compare it to the use input with something like [>] and I’d recommend using [matrix~] to swap between processed and non-processed. It’s a little more complicated but you can set a fade time easily so you don’t get any nasty clicks.


November 8, 2010 | 10:35 am

[peakamp~]


November 9, 2010 | 4:04 am

@ luke,

I’ve set up my trigger so that when the input reaches a certain value (user set), the [>=] outputs a 1. I would like for the instance of a 1 trigger a (connect 0 0 1) message and open the matrix, but i can’t seem to do it..
Any help? I know it’s really obvious, but I’m new to this….


Viewing 4 posts - 1 through 4 (of 4 total)