I'm trying to do the same thing. The reason that I can't use the servo library is that I'm using the sound shield from adafruit and there is a conflict when I try to #include servo.h. Here's the compile error:
/var/folders/rW/rWvoTHZWF+iF1HuGiixILU+++TI/-Tmp-/build5300156778023286889.tmp/S
ervo/Servo.cpp.o: In function `__vector_11':
/Applications/Arduino.app/Contents/Resources/Java/hardware/libraries/Servo/Servo
.cpp:104: multiple definition of `__vector_11'
/var/folders/rW/rWvoTHZWF+iF1HuGiixILU+++TI/-Tmp-/build5300156778023286889.tmp/A
F_Wave/wave.cpp.o:/Applications/Arduino.app/Contents/Resources/Java/hardware/lib
raries/AF_Wave/wave.cpp:33: first defined here
So I'm trying to build this without the servo library. Regarding the first response, what is a, "pot?" Also, just want to make sure I'm clear, by "pulse length" you're referring to the value of pwm in the code, right? Lastly, will the servo hold the last input value indefinitely, or will it return to zero after "digitalWRite(servo, LOW);"
Thanks.