# Whats the amplitude of 1 samp duration?

103 views
I noticed in the `LossyIntegratorAsExponentialSmoother` prototype there is a time based value in the Scale field.

`1 / !Tc s samp removeUnits`

If I wanted to figure out the 'amp' of 1 samp though, rather than a seconds Unit on the time constant, this expresssion evaluates to -1 .

So I wondered if I wanted to offset a read-index by 1 samp into an addWrap , what should that constant value be?
What Alan said. Another way to say it would be:
wavetableLengthInSamples inverse * 2
It's scaled by 2 because the time index is (-1,1]
Might I add that you may need to make use of the `removeUnits` CapyTalk if using these formulas in a constant or Scale field.

I think I've understood your question, let me a try an answer...

Let's say your time index ramp has a duration of 5 seconds.
If you're at 48kHz sample rate that ramp will take 5 * 48000 samples to complete.

Over that duration the time index will go from -1 to +1,  a range of 2.

So the increment that's added on to the time index at every sample is ((1 / (5 * 48000)) * 2)

If you want to offset by one sample then add ((1 / (5 * 48000)) * 2) into the AddWrap. Or another way of writing that would be:

(!Duration s removeUnits * SignalProcessor halfSampleRate) inverse

Where !Duration represents the length of the time index ramp.