Skip to content

Latest commit

 

History

History
251 lines (141 loc) · 9.15 KB

SOURCE_TREE.md

File metadata and controls

251 lines (141 loc) · 9.15 KB

C-Psycle r12005 Source Tree Map

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.

Build Entry Points

The main upstream build entry point is:

cpsycle/makefile

Its default all target builds:

  1. host;
  2. plugins;
  3. drivers;
  4. 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.

Core Runtime and Libraries

audio/

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.

dsp/

Shared digital-signal-processing helpers used by the host and machines.

container/

General-purpose container/data-structure support used by the C codebase.

file/

Filesystem, path, file and stream support.

thread/

Threading/synchronization helpers.

script/

Scripting support shared by host/player components.

User Interface

ui/

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.

luaui/

Lua-facing UI bindings/integration.

luascripts/

Lua scripts and UI assets used by Psycle features, including pianoroll-related scripts, icons and other host-side scripting resources.

skins/

Historical Psycle skin assets and related resources.

pixmaps/

Application, installer and UI image/icon resources.

Host and Player

host/

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.

player/

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.

Audio and Input Drivers

driver/alsa/

Native ALSA audio backend.

driver/alsamidi/

Native ALSA MIDI backend.

driver/jack/

JACK audio backend.

driver/sdl2/

SDL2 backend.

driver/evjoystick/

Linux event-device joystick/input support.

Other driver directories

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.

Native Machines and Plugins

plugins/

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.

Arguru preservation targets

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.

Presets, Songs and Documentation

presets/

Historical Psycle preset banks (.prs), including Arguru Synth 2f presets and other native-machine presets.

doc/

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 and External Material

lua54/

Vendored Lua 5.4.0 source.

zlib/

Vendored zlib 1.2.11 source and upstream contribution directories.

external-packages/

Historical third-party packages/tools, notably:

  • retained Windows 7-Zip compiled help plus license/readme metadata (7z.exe and 7z.dll are intentionally omitted);
  • STK 4.5.0 source archive.

See THIRD_PARTY_INVENTORY.md.

M3 and TinyBoxes provenance omissions are documented in UPSTREAM_OMISSIONS.md; those files are not present in the public baseline.

Build-System and Platform Metadata

build-systems/

Build/packaging support, including Windows installer material.

Visual Studio project files

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.

Tests and Small Utilities

uitest/

Small UI test area from upstream.

detail/

Low-level/detail helpers used by the codebase.

Baseline Artifact Notes

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.

Maintainer Rule

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.