commit 3fa519ee9d35dacadb0b615f182484f8dd75c3b7
Author: leszek <leszek@koltunski.pl>
Date:   Tue Apr 22 13:18:38 2025 +0200

    minor

diff --git a/src/main/java/org/distorted/library/type/Dynamic.kt b/src/main/java/org/distorted/library/type/Dynamic.kt
index 54eb59b..002464a 100644
--- a/src/main/java/org/distorted/library/type/Dynamic.kt
+++ b/src/main/java/org/distorted/library/type/Dynamic.kt
@@ -731,18 +731,18 @@ abstract class Dynamic
     *
     * @param buffer Float buffer we will write the results to.
     * @param offset Offset in the buffer where to write the result.
-    * @param tm Time of interpolation. Time=0.0 is the beginning of the first revolution, time=1.0 - the end
+    * @param time Time of interpolation. Time=0.0 is the beginning of the first revolution, time=1.0 - the end
     * of the first revolution, time=2.5 - the middle of the third revolution.
     * What constitutes 'one revolution' depends on the MODE:
     * [Dynamic.MODE_LOOP], [Dynamic.MODE_PATH] or [Dynamic.MODE_JUMP].
-    * @param st Time difference between now and the last time we called this function. Needed to figure
+    * @param step Time difference between now and the last time we called this function. Needed to figure
     * out if the previous time we were called the effect wasn't finished yet, but now it is.
     * @return true if the interpolation reached its end.
     */
-    fun get(buffer: FloatArray, offset: Int, tm: Long, st: Long): Boolean
+    fun get(buffer: FloatArray, offset: Int, time: Long, step: Long): Boolean
     {
-        var time = tm
-        var step = st
+        var tm = time
+        var st = step
         val pos: Double
 
         if (duration <= 0.0f)
@@ -753,22 +753,22 @@ abstract class Dynamic
 
         if (mStartTime == -1L)
         {
-            mStartTime = time
+            mStartTime = tm
             mLastPos   = -1.0
         }
 
-        val diff = time-mPausedTime
+        val diff = tm-mPausedTime
 
-        if (mStartTime<mPausedTime && mCorrectedTime<mPausedTime && diff>=0 && diff<=step)
+        if (mStartTime<mPausedTime && mCorrectedTime<mPausedTime && diff>=0 && diff<=st)
         {
             mCorrectedTime = mPausedTime
             mStartTime += diff
-            step -= diff
+            st -= diff
         }
 
-        time -= mStartTime
+        tm -= mStartTime
 
-        if (time+step > duration*count && count>0.0f)
+        if (tm+st > duration*count && count>0.0f)
         {
             interpolate(buffer, offset, count-count.toInt())
             return true
@@ -776,12 +776,12 @@ abstract class Dynamic
 
         if (mAccessType == ACCESS_TYPE_SEQUENTIAL)
         {
-            pos = if (mLastPos < 0) time.toDouble()/duration else step.toDouble()/duration + mLastPos
+            pos = if (mLastPos < 0) tm.toDouble()/duration else st.toDouble()/duration + mLastPos
             mLastPos = pos
         }
         else
         {
-            pos = time.toDouble() / duration
+            pos = tm.toDouble() / duration
         }
 
         interpolate(buffer, offset, (pos-pos.toInt()).toFloat())
