This document is a maintainer-oriented map of the imported C-Psycle baseline under cpsycle/.
It describes the source as received from upstream. It is not a proposal to reorganize the tree, and it is not the active implementation architecture for the final Linux tracker. Under the current roadmap, C-Psycle is retained as a preservation/reference implementation, Linux donor and regression oracle; the active implementation track audits and converges the psycle-core family before building the Phase 8 Qt tracker UI.
The main upstream build entry point is:
cpsycle/makefile
Its default all target builds:
- host;
- plugins;
- drivers;
- player.
Important sub-build entry points include:
cpsycle/host/makefile
cpsycle/plugins/makefile
cpsycle/driver/makefile
cpsycle/player/makefile
The existing Linux-oriented driver makefile targets:
- SDL2;
- ALSA;
- ALSA MIDI;
- JACK;
- Linux event joystick.
The top-level upstream README already documents Linux dependencies and a native make workflow. Phase 2 began from these files rather than replacing them; that work belongs to the completed C-Psycle preservation track.
Audio engine, machine/plugin integration, song/audio structures, playback support and related interfaces.
This area also contains historical VST2-hosting integration points. Three Steinberg SDK-derived headers are intentionally absent from the public baseline; see UPSTREAM_OMISSIONS.md.
Shared digital-signal-processing helpers used by the host and machines.
General-purpose container/data-structure support used by the C codebase.
Filesystem, path, file and stream support.
Threading/synchronization helpers.
Scripting support shared by host/player components.
Cross-platform C-Psycle UI abstraction and implementations.
The retained Linux implementation is:
cpsycle/ui/src/imps/x11/
This X11 implementation was the starting point for the completed C-Psycle Linux preservation/runtime track and remains useful as historical Linux-port evidence and a possible implementation donor. It is not the active UI target for the final PSYCLE-LINUX application. The current roadmap first audits/converges the psycle-core engine family and then builds the recognizable tracker UI in Phase 8 using Qt, with Qt Widgets evaluated first. Do not start new final-product UI work on the C-Psycle X11 layer merely because it is present in this imported baseline.
Lua-facing UI bindings/integration.
Lua scripts and UI assets used by Psycle features, including pianoroll-related scripts, icons and other host-side scripting resources.
Historical Psycle skin assets and related resources.
Application, installer and UI image/icon resources.
The main C-Psycle application/host implementation.
The host makefile builds shared support modules and host/src, producing the native host executable copied by the top-level makefile to:
cpsycle/psycle
The host tree also contains substantial historical Windows resources/project metadata. Those files are retained in the baseline but are not assumed to be relevant to a Linux build.
Standalone/smaller C-Psycle player target using the shared audio engine and support libraries.
The top-level build copies the resulting executable to:
cpsycle/psyplayer
psyplayer was an important Phase 2 C-Psycle audit target because it exercised core song/audio code with less UI complexity than the full host. It remains preservation evidence; the active Phase 6 player work targets the separately pinned psycle-player / psycle-core family.
Native ALSA audio backend.
Native ALSA MIDI backend.
JACK audio backend.
SDL2 backend.
Linux event-device joystick/input support.
The tree also retains historical Windows-oriented driver code for baseline fidelity. In particular, driver/asiodriver/ contains Psycle-side ASIO driver integration, but the bundled Steinberg asio-2/ SDK subtree is intentionally not mirrored because of its redistribution terms.
Large collection of Psycle native machines, generators and effects plus their build metadata.
The upstream Linux plugin makefile already enumerates a broad native-machine set.
The following six source directories are present in the baseline and are explicit compatibility targets:
cpsycle/plugins/arguru-compressor/
cpsycle/plugins/arguru-distortion/
cpsycle/plugins/arguru-goaslicer/
cpsycle/plugins/arguru-reverb/
cpsycle/plugins/arguru-synth-2f/
cpsycle/plugins/arguru-xfilter/
These are not candidates for replacement merely because they are old. Their behaviour, parameter/state handling and compatibility evidence are preserved by the completed Phase 5 regression corpus.
Historical Psycle preset banks (.prs), including Arguru Synth 2f presets and other native-machine presets.
Developer/user documentation and diagrams. The canonical public baseline contains no .psy example songs.
One particularly important retained source is:
cpsycle/doc/cpsycle-developer-guide.txt
It is the Psycle Developer Guide — C-Version, Feb 2021 (unfinished) and records upstream architectural intent around MFC-Psycle compatibility, stepwise cross-platform separation, the audio/UI split, Workspace, MachineFactory, PluginCatcher, the 256-sample compatibility work size, tracker/sequencer timing, VST variable process intervals, the 64-channel native-plugin limit and the platform UI bridge. The imported Visual Studio 2019 solution also references the original doc/cpsycle-developer-guide.docx. See UPSTREAM_ARCHITECTURE.md for the PSYCLE-LINUX interpretation and authority rule.
Because the guide identifies itself as unfinished, pinned r12005 source and observed compatibility behavior take precedence where its prose and code differ. Those conclusions describe C-Psycle; they do not override the active original-Psycle → psycle-core → Qt implementation plan.
The eight historical .psy demo/example files found in r12005 were omitted from public archival and canonical refs because their composition/sample redistribution permissions are unresolved; their exact upstream paths are recorded in UPSTREAM_OMISSIONS.md. Cleared project-authored fixtures created during the completed compatibility work remain the safe public regression basis unless historical material is separately cleared.
Vendored Lua 5.4.0 source.
Vendored zlib 1.2.11 source and upstream contribution directories.
Historical third-party packages/tools, notably:
- retained Windows 7-Zip compiled help plus license/readme metadata (
7z.exeand7z.dllare intentionally omitted); - STK 4.5.0 source archive.
M3 and TinyBoxes provenance omissions are documented in UPSTREAM_OMISSIONS.md; those files are not present in the public baseline.
Build/packaging support, including Windows installer material.
The root and many subdirectories contain historical Visual Studio solution/project files (.sln, .vcxproj, .vcproj, .filters, .dsw, .dsp).
They remain useful provenance and may help distinguish Windows-only assumptions. They describe this imported C-Psycle baseline and do not determine the build/UI architecture selected for the active psycle-core implementation track.
Small UI test area from upstream.
Low-level/detail helpers used by the codebase.
Phase 1 deliberately retains old build/platform artifacts when redistribution is permitted. Examples include compiled help and historical package metadata under external-packages/, installer assets and the Visual Studio resource.aps file. The upstream 7-Zip 7z.exe and 7z.dll binaries are intentionally omitted; see UPSTREAM_OMISSIONS.md.
They are identified, not cleaned up, in the preservation baseline. Deletion or replacement belongs in a later, evidence-driven change if it materially helps compatibility work.
When touching the imported cpsycle/ tree, ask first:
Is this change required to preserve, test, or reuse demonstrated Psycle-compatible behaviour on Linux?
Do not treat presence in the C-Psycle baseline as authority to redirect the active psycle-core/Qt implementation track. Source moves, renames, framework migrations or broad cleanup should still stay out of narrow preservation/compatibility fixes unless evidence requires them.