Double trigger filter

Christian Ahm's icon

Dear fellow Max'ers

Im trying to create a Max for Live midi effect that will eliminate accidental double triggering from a USB Drumpad. The result should be a simple device that neclects any new NoteOn message in a certain time frame after receiving a NoteOn (or NoteOff) message. I've searched the forum here for ideas and found this thread https://cycling74.com/forums/eliminating-double-triggering. The solutions seem viable but they all use Bang's and note midi information. As I am new to MAXMSP I hope that someone here could help me make any of the suggested ideas work with midi or come up with a different solution.

Thanks in advance

Christian Ahm