WaveTable::RatioToIndex

Converts a ratio [0.0, 1.0] to an index within the given number of array elements.