MIDI with Mbox + Piezo ??

Cantabile's icon

Hello.
I'm trying to make something with piezo.
But,
I don't know how to connect piezo to maxmsp.
I connected piezo to my Mbox2(DI Input).
I want to use piezo as a trigger. I mean.. when I hit piezo, I can get certain MIDI note(which can open other sound).
For example, hit piezo no.1-> sound no.1, hit piezo no.2 -> sound no.2......

Is it possible to get MIDI note with Mbox and piezo?
How can I do that?

Please, help me~~

saulpimpson's icon

Not sure if you mean a piezo contact mic?

What you could do is set a threshold so that if the loudness reaches a specified point then it makes a note.

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

I'm sure there are better ways of doing this but this might get you started.