I have a couple requests for SampledProperty that I think could be useful to others as well. Or if these exist already and I have overlooked them, please let me know
1. Allow a getValue function that will return the closest actual sample instead of the interpolated value. The index is already retrieved internally form the binarySearch function, but it would be nice and simple to expose this function. Sometimes there are cases where you want to get an actual value and not an interpolated value even when in general you want the interpolated functionality.
2. Similarly, I would really like the ability to turn the interpolation on/off with a flag. So given a SampledProperty with many samples over a period of time, I can flip interpolation on/off with a button click or some other method. Maybe add an InterpolationType of None?