Issue #232 (round 190ns). A LYNX SHARE extra: FL Studio 2026 opens one project per program window (opening another
replaces it; a second FL window is a second copy of the program). The request: keep several .lynx / .flp projects
open in one LYNX SHARE, copy items between them and compare mixes or masters of an album.
From the programs' manuals and release notes (only FL Studio and Live are installed on the study PC):
| Program | Several projects | Which one plays | Between projects |
|---|---|---|---|
| FL Studio 2026 | no; a second copy of the program can run | each copy has its own audio device | the clipboard of one copy is not the other's (except text) |
| Ableton Live 12 | no; one Set per program (opening one closes the other) | the open Set | the browser lists another Set's tracks: drag one in to import it |
| Bitwig Studio | yes, a tab per project | only the active project's audio engine runs; the others are switched off (their plugins unloaded) until activated | copy / paste and drag clips, devices and tracks between tabs |
| Studio One | yes, songs open side by side in tabs | the active song | copy / paste between songs |
| Cubase | yes, several projects open | only the "activated" project plays | copy / paste and drag between projects |
| REAPER | yes, project tabs | the active tab; an option lets background tabs keep playing | copy / paste between tabs |
The common pattern: one window, a tab per project, one project plays at a time (the audio device and the CPU go to the active one), copy and paste work across tabs. The cost every program pays is memory: an open project keeps its samples and, unless it is switched off, its plugins.
AudioEngine and one Song, passed by reference when each panel is made. Real tabs need either a full set
of panels per tab (memory and start-up time per tab) or panels that can be pointed at another engine (every panel,
every cached index, every timer).MainComponent as single members: each becomes per tab.File › Open in new window › Open..., Start-up project and the ten
recent projects. It starts another LYNX SHARE window (its own process, as a second start already is) with that
project; the one open stays as it is. Each window has its own audio device (a driver that only one program may use
at a time, e.g. ASIO, plays in the first window only), its own undo and autosave. Cost: one more process (the
program's own memory plus the project's samples and plugins). No change to how one window works.LYNX SHARE clipboard 1, a line with the kind, a stamp and the process,
then a versioned JSON document (src/engine/CrossClipboard.h). A document larger than 64 KB (plugin states, many
notes) goes to a file in the settings folder's Clipboard folder (the four newest are kept) and the clipboard holds
its path. The project parts are written by the project's own JSON code, so a copy keeps whatever a .lynx keeps.
A paste first looks there: when the newest LYNX copy on the system clipboard was made by another window (or before a
restart) it pastes that one; otherwise the window's own clipboard pastes as before (text copied in another program
stays text). Works on Windows, Linux (X11; when the window that copied has closed and nothing keeps its clipboard,
the copy is read from the folder) and macOS. What travels:
src/core/CrossPaste.h): the patterns and their notes, the audio
clip channels (their samples by path, not copied), the automation clips (a target on a channel follows the
channel), clip envelopes and grooves. A channel the other project already has (same name and same instrument,
plugin or sample) is that project's own; the others are added at the end of the Channel Rack. Pasting the same
copy again adds no second pattern or channel. One undo step.The windows also know of each other (src/ui/LynxWindows.h): each writes an entry in the settings folder's
Windows folder and has an inbox (a FIFO on Linux and macOS, a named pipe on Windows; a thread that waits, no timer,
no network socket). While two or more are open the menu bar has WINDOW before HELP: the open windows (each with
the device it plays through), a click brings one to the front; Open in new window.... An audio driver only one program
may use at a time (ASIO, an exclusive device): the second window shows a bar under the toolbar, " plays in
another LYNX SHARE window (): only one program can use this audio device at a time", with Make this window
the one that plays (src/ui/WindowAudio.h): the other window stops, lets the device go and shows the same bar; this
one opens it. A window recording or rendering says no. The device saved in Settings › Audio stays the one both
windows want: the window without it never saves its stand-in over it (in stage 1 the second window did). When the
window that had the device closes, the one that let it go takes it back.
Not built: dragging a pattern, clip or channel from one window into another (the design did not include it; the operating system's drag and drop between two processes would need a drag format of its own on each system). Copy and paste covers the same moves.
Stages 1 and 2 are built. Stage 3 is the real "tabs" and is large: build it (0.1.32 or later), or stay with windows? Recommended: stay with windows for now, stage 3 only if users still ask after using copy and paste between windows.