Monorepo for Aesthetic.Computer
aesthetic.computer
1#!/usr/bin/env node
2
3/**
4 * Quick launcher for Ableton Session View
5 *
6 * Runs the session view with the extracted XML file
7 */
8
9import { spawn } from 'node:child_process';
10import { resolve, dirname } from 'node:path';
11import { fileURLToPath } from 'node:url';
12
13const __dirname = dirname(fileURLToPath(import.meta.url));
14const sessionViewerPath = resolve(__dirname, 'ableton-simple-viewer.mjs');
15
16console.log('🎛️ Starting Simple Ableton Session View (Auto-Play Fast)...\n');
17
18const child = spawn('node', [sessionViewerPath, '/workspaces/aesthetic-computer/system/public/assets/wipppps/zzzZWAP_extracted.xml'], {
19 stdio: 'inherit',
20 cwd: __dirname
21});
22
23child.on('close', (code) => {
24 console.log(`\n🎵 Session ended with code ${code}`);
25});
26
27child.on('error', (error) => {
28 console.error('❌ Error starting session:', error.message);
29});