FSR and velocity control

nicnut's icon

Hi,

I have a custom built midi controller with a Force Sensing Resistor(FSR) on it. I wanted to use this to trigger some sort of velocity, but I noticed when I touch it I get a range of notes from 0 up to the pressure I am using, and when I release I get a ramp back down to 0. I looked at MSP tutorial 19 using the poly object, but I have a feeling that is not the way to go, as I am using a mono synth and the constantly changing FSR value just retriggers a note rather than shapes it.

What would be a great way to use this sensor to emulate the breath of a wind instrument, or the pressure of a bow on a string to shape a note? Is there a tutorial someone can point me toward or a post? I pasted a version of my mono synth below in case anyone wants to build on it.

I'm still using Max 5 on a 2.8 GHz MacBook Pro. Thank you in advance for your help.

Nick

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

brendan mccloskey's icon

Hi
if I understand your problem statement, you wish to have one pitch triggered by your FSR, with velocity determined by the force of the strike? Although I didn't look at your patch, the following method should suffice:

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

Brendan

nicnut's icon

nOOb_meister,

Thanks for your reply. That's not quite it. As if I leave my hand on the FSR it doesn't sustain. And if I slightly change the pressure on the FSR it doesn't effect the note. I think I might have to look at using the FSR info for some kind of Wave Shaping parameter and not velocity at all. I posted a variation of your patch, maybe it will help understand.

thanks.

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

nicnut's icon

I just looked at MSP tutorial 12, about wave shaping. I think this was what I needed. I input the FSR info into the amplitude box labeled "by hand" and it sounds nice.