// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Reserve preparation and cleanup around cues // Not compiled or tested in-world // Setup: Place in a spare owned prim. Set cue start/end pairs and nonnegative buffer durations. Owner touch runs a bounded local calculation. // Stop / restore: Disable/remove. No travel, publication, payments or external operations occur. // Notes: Buffers may begin before time0; callers decide whether that is permitted. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Local planning demonstration. list CUES=[2.0,4.0,5.0,7.0,10.0,12.0]; float SETUP_TIME=0.75; float CLEANUP_TIME=0.5; default { touch_start(integer detectedCount) { if(llDetectedKey(0)!=llGetOwner())return; integer n=llGetListLength(CUES); if(n%2||SETUP_TIME<0.0||CLEANUP_TIME<0.0) { llOwnerSay("Invalid input."); return; } list expanded; integer i; for(i=0;iend)end=b; llOwnerSay("Reserved="+(string)a+".."+(string)b); } llOwnerSay("Conflicting starts="+(string)conflicts); } }