midi pitchbend range, and usage. please help

hey there! i am working on a midi controller, and i am using the midi library found at :
http://www.arduino.cc/playground/Main/MIDILibrary

basically what i do now is i have a button on a slide. when i hold it down it sends a note on, then sends a note off when a potentiometer reads that i slid the button past a point, then sends a new note on with the note one half step up or below depending on which way the button is slid, and if the button is depressed at any time, it sends a note off to the last note played.
this while great makes the transition so sharp, and not at all a smooth transition.

therefore, i would much prefer to use the pitchbend command as detailed below:
sendPitchBend (int PitchValue, byte Channel)

i have never used this command before and im a bit unclear how to use it. i therefore have two theoretical options, of which i want to pursue one.

option one is that when i slide the button while on to the next zone, instead of turning off then on, the pitch just changes until i reach the other zone. so basically i would slide from say a c note, to a c# without a break rather than a completely new note.
to make this work basically im finding the range it takes for the pitchbend to go up the equivalent of one number in the 0 - 127 range.

i read a couple places that this depends on the synth, and that makes little sense to me, but if it does, i have option 2:

simply glide the pitch up or down close to the nearest half step note, and repeat the off on command as in my original code.

this is a very important project for me, and help would be so greatly appreciated. im sorry if how i explained this is hard to grasp. thanks!

I tried to figure out how to use MIDI.sendPitchBend but the lack of explanations and examples and my very little experience made me fail. I even wrote to the maker of this library, but no response.
So I use this instead
http://tomscarff.110mb.com/downloads/downloads.htm
Ribbon Controller.
This is really nice piece of code and works wonders.

i am going to try to avoid t use external hardware, and test more things out. i know for a fact its possible with this library, so wish me luck!

What do you mean "external hardware"? It is a code as any other.
Anyway, if you get MIDI.sendPitchBend working I would like to know how too.