What is the fastest refresh rate of an Arduino?

The process so far is taking analogue information from maybe an IR distance sensor or similar sensor into the Arduino and using this information as a source for other software plugins.
The pitch of a software synth for example?
It is also possible that I might just need to trigger on/off at a certain threshold of the analogue value but it is critical that this is done as fast as possible.

Thanks

izzi