Curtain Call

[ v. alpha ] 2026.03.31.3

## ADDED

- **Show Duration Tracking**: Live timer in the header that starts with the first cue and ends with the last, showing total elapsed time for the performance.
- **Log Export Utility**: Functionality to export on-screen logs (Cue and Console) as a text file for post-show review.

## UPDATED

- **Playback Engine Refinement**: Improved `fadeAudioOut` logic to allow proper `nextCue` countdowns during the final play of a loop or sequence.
- **Global Reset**: ESC key now fully resets the show timer, stops all audio, and clears all playback states.

## FIXED

- **UI Feedback Restoration**: Corrected `setPlaybackState` and element targeting to ensure colors and status updates work reliably regardless of DOM insertion timing.
- **Logging Reliability**: Fixed `console.log` override to handle multiple argument signatures and mirror all logs to the on-screen footer.
- **Service Worker Error**: Fixed "Request method 'HEAD' is unsupported" errors by filtering non-GET requests in the fetch event handler.

[ v. alpha ] 2026.03.31

## UPDATED

- **Timing Precision**: Migrated audio engine to **Web Audio API** (`linearRampToValueAtTime`) for sample-accurate scheduling.
- **Audio Stability**: Migrated to `AudioContext`, `GainNode`, and `MediaElementSourceNode` for professional-grade playback control.
- **State Management**: Implemented a formal **Playback State Machine** (`Idle`, `Loading`, `Playing`, `Fading`, `Error`, `Elapsed`).
- **Project Structure**: Reorganized codebase into an `assets/` directory (CSS/JS) and moved logic out of the main HTML file.
- **Modernization**: Refactored to ES6+ standards (`let`, `const`) and improved code modularity.
- **Offline Support**: Implemented a **Service Worker** (`sw.js`) with versioned caching and network-first strategies for show data.
- **Pre-flight Validation**: Added `validateShow()` to verify all audio cues are accessible before the performance begins.
- **UI Improvements**: Integrated a **Global Status Indicator** and **Sandbox/Portal Detection**.
- **AI-Driven Improvements**: Leveraged AI for code refactoring, structural reorganization, and core issue identification.

[ v. alpha ] 2025.09.09

## UPDATED

- Enhanced the user interface for a more intuitive experience.

[ v. alpha ] 2023.10.20

## UPDATED

- Improved the color palette to provide a more visually appealing experience.
- Restored the native console log functionality for better debugging capabilities.
- Ensured that headers are now consistently and always visible.
- Transitioned from using 'em' units to 'rem' units for enhanced design consistency and scalability.

[ v. alpha ] 2023.09.03

## UPDATED

- Performed additional cleanup and improvements in the help section (press F1 for assistance).

[ v. alpha ] 2023.08.16

## UPDATED

- Conducted cleanup in the help section to enhance user guidance (press F1 for assistance).

[ v. alpha ] 2023.08.08

## FIXED

- Fixed the archive constructor to ensure proper functionality.

## UPDATED

- Updated the application by removing unnecessary configuration variables.
- The interface now prominently displays the application's version name and update date.

[ v. alpha ] 2023.07.25

## ADDED

- Added a versioning log file for better tracking and documentation of changes.
^