Is `applyGainRamp` ramping all numSamples asked?

I know, but if you divide a ramp from 0 to 1 over 1024 samples into 4 calls, you would call

applyGainRamp (0,   0, 256, 0.0,  0.25);
applyGainRamp (0, 256, 256, 0.25, 0.5);
applyGainRamp (0, 512, 256, 0.5,  0.75);
applyGainRamp (0, 768, 256, 0.75, 1.0);

If you do it your way, sample 255 AND 256 had the gain 0.25, the sample 511 AND 512 had 0.5 and so on. This is not the desired behaviour.