Cleaned up some code now that we index samplerate.rates by rix