I'm a music teacher, but I'm involved in programming microcontrollers. Therefore I started to think of an instrument to develop using midi. I decided to create a midi trombone.
Short description
Something detects the pressure of lips or air pressure inside a mouth piece. Something detects the slide position of a tube inside another one. From this data I create midi events.
More details
A note on event is created, when the pressure is raised from low/nought to some specific pressure. There should be pressures for silent, 1st partial (pedal tone), 2nd partial (base tone, Bb1), 3rd partial (F2), 4th partial (Bb2) etc. I know blowing in a horn is at least two parameters; kind of air volume for tone volume and lip pressure for pitch. I probably ignore the tone volume for the present and concentrate on the pitch, so probably I'll have a mouth piece, which lets little air through. Then there's a gauge measuring the pressure.
Then I have the slide. I'll probably have two straight tubes inside each other. A light in the end of one. A light sensor at the opposite end of the other. Then I calibrate values to resemble the seven positions of the trombone slide. The inner tube should have a matte black inner surface, while the outer tube should have equally a matte black outside, to make sure the light sensor only reacts to the light inside.
When playing, midi events must be created. When the pressure in the mouth piece raises from low/nought to something relevant, the corresponding partial is calculated. The position of the slide is read and the nearest pitch is calculated. A pitch bend value is calculated to resemble how much off the pitch the slide is. The key down event is now created, together with the pitch bend event. As long there's pressure in the mouth piece, the slide is read and the corresponding pitch bend event is created. When the pressure drops or rises to resemble another partial, a key up event is created as well as a new key down for the new note. Or if the drop in the pressure goes below a threshold, only the key up is created, resulting in silence.
Reading the pressure might get tricky. It must be fast enough, but still it has to follow whether the rise of pressure is supposed to trigger all the partial notes from the 1st to some high note, or just the high note immediately. The difference is in the time for reaching the high note. Don't know how fast pressure gauges are. Same goes in the other direction. When is a drop in the pressure a note off event and when is it just a subsequential drop from high partials to low partials?
So, whatever will happen in the mouth piece I don't know yet. I'll be using Microbit as a micro controller. I will solder a standard midi cable to it, connecting it to an old synth. I hope the pitch bend range can be set on the synt, either on the front panel keys or through midi messages. I have no real questions at this point, but please comment if you are a trombonist or if you have experience in programming and developing midi instruments.
I don't know about the sensor, but the microcontroller stuff is doable.
What particular synth are you using?
Right now I only have an old Roland E-15, a 61 key synth. It has no pitch bend wheel. Instead it has only keys, which will perform a +-2 semitone pitch bend. I don't have info on how programmable it is. I need it to respond to pitch bend range changing messages, because the slide should be able to drop the pitch by 6 semitones. As well as raising 6 semitones, if the note is triggered while the slide is fully extended and then I slide it up while the tone is sounding.
The microcontroller runs only at 3V but on the Microbit pages I read that that is enough for midi to work. The circuit only needs two resistors, one for out port and one for in port. The rest is just logics. And of course the sensors, which occupy their own ports of the microcontroller.
The E-15 manual does not say anything about which RPN or SysEx messages it supports, but it mentions that its sound generator is GS compatible, so the standard RPN 00 00 should be able to set the pitch bend sensitivity:
Cxh 65h 00h 64h 00h 06h mm (where x = channel, mm = semitones (0–24))
You know that both Akai and Yamaha make MIDI wind controllers. Perhaps get some specs from them.
I would look at the Roli Seaboard 5D app as a synth. It has a very wide pitch bend range to work with their Seaboard controllers. I've used it with my DIY EWI and EVI builds.
Some links you might find useful:
http://www.patchmanmusic.com/WindControllerFAQ.html
http://gordophone.blogspot.com
https://hackaday.io/project/12315-teensiewi-woodwind-usb-midi-controller