broke out getsamplerate into its own file, updating median descriptors
oops, forgot to save this one..