cardonabits / haxo-rs

Software for the haxophone
MIT License
41 stars 10 forks source link

Add pressure sensor configuration #38

Open Ekolide opened 3 months ago

Ekolide commented 3 months ago

Hi.

The air pressure sensor on the Haxophone is very sensitive and has a wide range. It feels good to play, and offers a tangible difference between blowing really softly, and maxes out at a very high pressure, offering a dynamic range that is much more detailed than my commercial competitor EWI.

Though sometimes the very lowest range is a bit too sensitive. It's enough to activate a note on the Haxophone by blowing air towards the neck of the instrument, and can result in unwanted notes being triggered. Once or twice I even think I've activated a note by moving the instrument hastily.

I suggest two configuration options: lowest-pressure 10 and highest-pressure 90, with values in percentages. So with a lowest-pressure of 10, the Haxophone will send MIDI on with a velocity of 1, once the pressure sensor has passed 10% of it's range. With highest-pressure at 90, the Haxophone interpolates the MIDI velocity values up to it's highest of 127 across the pressure range, reaching the maximum MIDI velocity at 90% of the pressure sensor's total range.

This would allow the user to tailor their own playing experience and configure their Haxophone to their musical environment.

Hope that makes sense. Let me know if there's any questions or thoughts.