Sharp IR sensor to MIDI. Tutorial? Help.

What and where should I modify the code to get a broad range of tones that the pitch bend should slide between?

Not sure what you mean. The pitch bend will apply to all notes you are producing. I think you haven't thought of exactly what you want to do.
What will trigger these extra notes?