How hundredrabbits/orca works
Main Components Identification
The system should be represented with these primary components:
a) Desktop Application Layer (Electron-based):
• Main Process (desktop/main.js)
• Renderer Process (desktop/sources/index.html)
b) Core Engine Layer:
• ORCA Engine (core/orca.js)
• Operator System (core/operator.js)
• Library Management (core/library.js)
c) I/O Interface Layer:
• MIDI Interface (core/io/midi.js)
• OSC Interface (core/io/osc.js)
• UDP Interface (core/io/udp.js)
• CC Interface (core/io/cc.js)
• Mono Output (core/io/mono.js)
d) User Interface Components:
• Clock System (scripts/clock.js)
• Command Interface (scripts/commander.js)
• Cursor Management (scripts/cursor.js)
• Client Handler (scripts/client.js)
┌─ User Interface Layer ─────────────────┐
• [Client] ←→ [Commander] ←→ [Clock] │
• ↕ │
• Core Engine Layer ────────────────────┤
• [ORCA Engine] ←→ [Operator System] │
• ↕ ↕ │
• [Library] ←→ [Transpose System] │
• ↓ │
• I/O Interface Layer ─────────────────-┤
• [MIDI] [OSC] [UDP] [CC] [Mono Output] │
• ┘
Connection Types
• Double lines: Data flow
Additional Elements
• The different operator types (A-Z)
• The base36 numerical system
• The MIDI/OSC/UDP port configurations
• The command system structure
Implementation Notes
• Keep the main electron process and renderer process relationship clear
• How the library system integrates with the core engine
• Event loop for the clock system
• Demonstrate how the I/O interfaces interact with external systems