// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Retiming a sequence to a target duration // Not compiled or tested in-world // Setup: Place in a spare owned prim. Set positive DURATIONS and positive TARGET. Owner touch runs a bounded local calculation. // Stop / restore: Disable/remove. No travel, publication, payments or external operations occur. // Notes: Retiming may violate media lengths or platform minimum delays; this only calculates a proposed timeline. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Local planning demonstration. list DURATIONS=[2.0,5.0,3.0]; float TARGET=24.0; default { touch_start(integer detectedCount) { if(llDetectedKey(0)!=llGetOwner())return; if(TARGET<=0.0) { llOwnerSay("Positive target required."); return; } float total; integer i; for(i=0;i