#!/usr/bin/env node /** * Quick launcher for Ableton Session View * * Runs the session view with the extracted XML file */ import { spawn } from 'node:child_process'; import { resolve, dirname } from 'node:path'; import { fileURLToPath } from 'node:url'; const __dirname = dirname(fileURLToPath(import.meta.url)); const sessionViewerPath = resolve(__dirname, 'ableton-simple-viewer.mjs'); console.log('šŸŽ›ļø Starting Simple Ableton Session View (Auto-Play Fast)...\n'); const child = spawn('node', [sessionViewerPath, '/workspaces/aesthetic-computer/system/public/assets/wipppps/zzzZWAP_extracted.xml'], { stdio: 'inherit', cwd: __dirname }); child.on('close', (code) => { console.log(`\nšŸŽµ Session ended with code ${code}`); }); child.on('error', (error) => { console.error('āŒ Error starting session:', error.message); });