Revision c0e4d5cf
Added by Leszek Koltunski almost 3 years ago
src/main/java/org/distorted/library/type/Dynamic1D.java | ||
---|---|---|
390 | 390 |
case 2: curr = vv.elementAt(0); |
391 | 391 |
next = vv.elementAt(1); |
392 | 392 |
|
393 |
int segment2= (int)(2*time);
|
|
393 |
int segment= (int)(2*time); |
|
394 | 394 |
|
395 | 395 |
if( mMode==MODE_LOOP || mMode==MODE_PATH ) time = (time>0.5f ? 2-2*time : 2*time); |
396 | 396 |
|
397 | 397 |
if( vn!=null ) |
398 | 398 |
{ |
399 |
if( segment2 != mSegment )
|
|
399 |
if( segment != mSegment ) |
|
400 | 400 |
{ |
401 | 401 |
if(mMode!=MODE_JUMP || mSegment==1) vn.elementAt(0).computeNoise(); |
402 |
mSegment = segment2;
|
|
402 |
mSegment = segment; |
|
403 | 403 |
} |
404 | 404 |
|
405 | 405 |
time = noise(time,0); |
Also available in: Unified diff
Dynamics: minor.