Forums > MaxMSP

Filtering incoming data to avoid Midi re-triggering….??

December 5, 2009 | 4:19 am

Hi guys i’ve run into a little problem. Im using Andrew Benson’s camera input patch tracking the X position to trigger midi notes.

I’ve included a range slider to select which octaves i want to scale the data into. The problem is that if i have the data getting scaled to play 1 octave of the keyboard then from right to left I have 12 notes i want to trigger which is happening. But its triggering each note 12 times and I only want each note to trigger once.

I’m thinking there needs to be some maths in between the receive object (called x2) in my patch and the kslider object. Im really not very good at maths or using expressions yet so any help would be greatly appreciated.

Thanks heaps.


– Pasted Max Patch, click to expand. –

December 5, 2009 | 9:13 am

try putting a [change] object after [zmap]
also instead of your octaverange subpatch just use [* 12]

– Pasted Max Patch, click to expand. –

December 5, 2009 | 2:11 pm

Thanks heaps Terry,

That change object is exactly what i was after. Saves having to do the maths i was thinking would needed to be done. using * 12 is also a lot better than the sub patch i was using.

Thanks for the reply, appreciate it.


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