﻿CRATE
Local music. Clearly organised.
=============================

START
Open CratePlayer.exe. This is the only application launcher.
Keep TagLibSharp.dll and NAudio.dll beside the executable.
Windows 10/11 with .NET Framework 4.6.2 or newer.
No installer or account is required. Local playback works offline; cover lookup needs internet.

FIND YOUR MUSIC
Open music folder is at the bottom left. Include subfolders is optional.
Library shows the loaded tracks. Artists opens artist profiles and their albums.
Queue shows the current playback order.
Saved playlists are always available in the left navigation.
The folder name is shown below the folder button; hover to see its full path.

SEARCH AND SORT
Use the search field at the top, or press Ctrl+F.
Library search matches titles, artists, albums, genres and filenames.
In Artists, the same field searches artist names.
Click a column heading to sort; click again to reverse the direction.
The sort menu also offers year, track number, genre, duration and filename.
Numeric tags sort numerically; missing values appear last.
File > Visible columns lets you choose extra tags to display.
Library order restores the original library or saved playlist order.
Sorting and searching do not interrupt the active queue.
Play all explicitly starts a new queue using the tracks currently displayed.

PLAYBACK
Double-click a track, or select it and press Enter, to play.
Space plays/pauses when you are not typing or operating another button.
Previous restarts a track after three seconds; otherwise it returns to the preceding track.
Next skips a track. Playback advances automatically at the end of each song.
Drag or click the progress bar to seek. The speaker button mutes/restores volume.
Shuffle randomizes the queue without duplicating tracks.
Repeat cycles through Off, Queue, One, then Off. Orange means active; 1 means repeat one.
The Queue navigation item opens Up next; double-click a queued song to jump to it.

TRACK SIDEBAR
The right sidebar follows your selected track, even while another song plays.
With no selection, it follows the playing track.
The cover is above a compact artist profile, with albums and tracks beneath.
Tracks without artwork show the standard CRATE vinyl cover.
Embedded covers take priority, followed by matching folder images.
The default cover is a display fallback and does not change your MP3 files.
DefaultCover.png is included if you want to embed it manually.

EDIT TAGS AND COVERS
Select one track, or Ctrl/Shift-select several, then choose Edit tags.
Only checked fields are saved. Editing a field checks it automatically.
Check an empty field explicitly to clear that tag on all selected tracks.
Separate multiple artists or genres with semicolons.
Save changes, Ctrl+S, or Enter inside the tag editor saves the selected fields. Done returns to the cover.
Escape closes the editor, or clears search when the editor is closed.
Change cover embeds a chosen JPEG/PNG in the selected MP3s.
The cover menu removes embedded artwork. Folder images may still display.
Tag and cover saves keep playback running at its current position. Audio is not re-encoded.

ARTISTS
Browse or search artists from the Artists navigation item.
Choose a picture using Add artist picture, Change picture, or the portrait menu.
Artist pictures are saved separately from MP3 artwork.
Albums and tracks appear below the profile. Double-click a song or album to play it.
Play artist plays the artist's albums in sequence.
Selecting a song in an artist profile also makes it available to the tag editor.
Click the artist name in the track sidebar to open that profile.
Click the artist name in the bottom player to open the playing artist.
For multiple-performer tracks, the sidebar shows the first performer; all performers can be browsed.
Untagged albums appear under Singles & untagged tracks.

PLAYLISTS
Use + beside PLAYLISTS to create a playlist from selected tracks, or an empty playlist.
Add to playlist adds the selected songs to an existing playlist, without duplicates.
Choose any saved playlist directly from the left navigation.
More provides rename, reorder, remove entries, export, and delete options for the active playlist.
Import playlist loads local M3U/M3U8 files; relative paths are resolved from their original folder.
Removing an entry or deleting a playlist does not delete its music files.
Playlist order is saved. Sorting the table does not rewrite the playlist.
Missing files are skipped and retained in the saved playlist.
Paths are absolute; moved songs must be added again from their new location.

BACKUPS AND PORTABILITY
Each successful tag/artwork save keeps a complete previous file in:
<music folder>\.folderplayer-backups\<save batch>\<original filename>
Backups use disk space and are excluded from recursive library scans.
To undo: stop playback, then copy a backup over the edited file.
Unreadable files cannot be edited. Saves are verified before replacing the original.

Keep the Playlists and Artists folders when moving or upgrading CRATE.
They store your playlist files and artist portraits.
Copy the whole application folder to move the portable app.
The portable ZIP includes the app, artwork, instructions, license and source code.
Build.ps1 rebuilds the app using Windows PowerShell; no .NET SDK is needed.
Run: powershell -NoProfile -ExecutionPolicy Bypass -File Build.ps1
TagLibSharp provides metadata support under LGPL-2.1; its license is included.
Source: https://github.com/mono/taglib-sharp


CRATE 2 — LIBRARY & PLAYBACK UPGRADE

Open CratePlayer.exe. Keep NAudio.dll and TagLibSharp.dll next to the executable.
Audio now plays through NAudio, with a five-band equaliser, presets,
volume normalisation and crossfade. Windows Media Player is no longer required.

QUICK NAVIGATION
Albums and Favourites are available in the left sidebar.
The File menu at the top opens Listening history, Smart playlists, Edit history, Duplicate finder,
Find cover art, Mini player and Audio controls.
Right-click tracks for Toggle favourite, Play next or Add to queue.
History shows play counts and last-played dates. A play counts after 30 seconds
of actual listening, or half the track for shorter tracks. Skips and pauses do
not add counts. Favourites and statistics are kept separately from MP3 tags.

YOUR SESSION
CRATE remembers the folder, search, view, sort, playlist, current track,
playback position, queue order, volume, shuffle and repeat. It restores paused.
Missing queued files are skipped. Settings save every five seconds and at exit.
Settings, favourites, smart rules and statistics live in Data/library.json,
with the previous version in library.json.bak. Keep Data when updating CRATE.
For isolated runs, CRATE_STATE_DIR can point to a different data directory.

QUEUE & MINI PLAYER
Open Queue, then drag tracks to reorder them. Right-click for Move up/down,
Remove or Clear upcoming tracks. Delete removes the selected queued item.
The playing track stays in the queue until you skip it. Play next inserts
selected tracks after the playing song; Add to queue appends them.
The mini player stays on top and provides artwork and playback controls.
Media play/pause, next and previous keys also work while CRATE is minimized
when Windows makes those keys available to the app.

ALBUMS & SMART PLAYLISTS
Albums groups by album and album artist, falling back to the track artist.
Open a cover to see tracks in disc/track order, play the album or find a cover.
Artwork loads in pages to keep large libraries responsive.
Smart playlists match all or any rules. Supported fields: title, artist, album,
genre, year, favourite, play count and days since played. Set sort direction
and an optional track limit. They update from the current library automatically.
Never-played tracks match greater-than rules for days since played.

MANUAL FOLDER REFRESH
Use Refresh folder directly above Open music folder to reload files and tags.
External additions, removals, changes and renames are not refreshed automatically.
Refresh keeps playback, highlighted tracks and the list scroll position.
The Include subfolders option applies when opening or refreshing the folder.
External renames or moves may require relinking local playlists manually.

UNDO & DUPLICATES
File > Undo / restore tag edits shows backups, tag differences and batches,
including backups from older CRATE versions. Choose a version or whole batch
to restore. Current files are backed up again, making a restore reversible.
The edit journal is Data/edits.jsonl; audio backups remain beside the MP3s
under .folderplayer-backups. Preserve both when moving your library.
Duplicate finder compares decoded audio, so different tags do not hide exact
duplicates. It also flags possible matches by title, artist and duration.
Review candidates and check unwanted copies yourself. Move checked to review
moves files into .crate-review with a restore.jsonl manifest. It never selects
copies for you. Restore reviewed files uses that manifest and does not
overwrite occupied original locations. Local playlists retain original paths.

ONLINE COVER SEARCH
Select tracks, or open an album, then Find cover art. CRATE sends artist and
album search text to MusicBrainz and loads cover previews from Cover Art Archive.
Choose a release and review its image and resolution before Save album cover.
Selected tracks from the same album can be updated together. For a selection
spanning albums, use Next album to review and save each group separately.
Every save creates normal CRATE backups. Internet access is required; missing
covers and service failures are shown in the search window.
Providers: https://musicbrainz.org and https://coverartarchive.org

AUDIO CONTROLS
Five equaliser bands: 80 Hz, 250 Hz, 1 kHz, 4 kHz and 12 kHz, plus presets/reset.
Positive boosts reserve headroom to reduce clipping. Crossfade is 0–12 seconds
and applies to automatic transitions between different tracks. Manual track changes use a brief smooth transition. Repeat-one and very short
tracks do not use the longer automatic crossfade.
Choose Analyze library volume, then enable Volume normalisation. Analysis runs
in the background and stores RMS matching levels with sample-peak protection;
it does not rewrite audio. This is RMS matching, not calibrated LUFS analysis.
Changed files need re-analysis. Analysis results and audio settings persist.

DEPENDENCIES
TagLibSharp: see LICENSE-TagLibSharp.txt.
NAudio 1.10.0: see LICENSE-NAudio.txt (Microsoft Public License).
Source and Build.ps1 are included for rebuilding with Windows PowerShell.

The search bar is centered at the top of the window. File contains the library,
maintenance, audio and playlist options previously available under More.

Playback keeps a compressed audio snapshot in memory, so saving tags or covers
does not interrupt the playing track. Folder refreshes and same-folder rescans
keep the top visible song and list scroll position.


MULTIPLE TRACK SELECTION
Click a track to select it. Hold Ctrl and click to add or remove individual
tracks. Hold Shift and click to select the range from the focused track.
Ctrl+A selects every displayed track; Ctrl+Shift+A clears the selection.
Select All and Clear selection are also in File and the track context menu.
Highlighted tracks are used for bulk tag edits, cover changes, favourites,
playlist actions and queue actions. Selection and scroll position survive
folder refreshes. No checkboxes are used.

GOOGLE DRIVE AND ICLOUD DRIVE
File > Open cloud folder > Google Drive / iCloud Drive opens the Windows folder
picker at a detected cloud location. Open music folder uses the same modern
picker, including its address bar, Quick Access, mapped drives and cloud locations.
Install and sign in to Google Drive for desktop or iCloud for Windows first.
This support reads folders exposed in Windows; it does not sign in to the web
services directly. Online-only files may download when CRATE reads their tags
or starts playback. For offline use, mark music as available offline in the
provider's desktop app. Edits to writable synced files sync through that app.
Include subfolders also traverses cloud placeholder folders, while directory
junctions and symbolic links are excluded to avoid loops.

AIRPODS AND BLUETOOTH HEADSET CONTROLS
CRATE registers a Windows System Media Transport Controls session while a track is loaded.
Play/pause, next, previous/replay, and stop work through Windows media controls, including while CRATE is minimized.
Previous restarts the current track after 3 seconds; near the start it returns to the previous track.
AirPods gestures depend on your model and its settings. Pair them in Windows Bluetooth settings first, then play a track in CRATE.
Windows chooses the active media app. If another player receives the controls, pause it and start playback in CRATE.
Volume remains controlled by Windows. Siri, noise control, and automatic ear detection are device features and are not added by CRATE.
Native Windows session and actual-player command tests passed. Physical AirPods testing has not been performed.

FASTER STARTUP
CRATE saves a metadata index in Data/library-index.json after scans, tag saves and exit.
The first launch builds this index. Later launches reopen the saved library without rereading every MP3.
The last track stays paused at its saved position; its audio loads when Play is pressed.
Use Refresh folder to detect external changes and update the saved index.
A missing, incompatible or damaged index falls back to a full folder scan.
The index contains metadata only; your music files are not copied into it.

ARTIST BANNERS
In Artists, choose an artist and click Add banner. The artist profile options menu
(the three dots beside the artist portrait) also lets you choose or remove a banner.
Choose a JPEG or PNG. CRATE saves a 600 x 200 centre-cropped copy in Artists,
separate from artist portraits and MP3 album artwork.
The banner appears at the top of the artist profile and fades into the background
behind the currently playing track. Browsing another artist does not change it.
Artists with no banner keep the existing layout and plain player background.
Keep the Artists folder when updating. Banners do not alter your music files.

PLAYING OR SELECTED TRACK DETAILS
Use the selector beside Edit tags to choose Playing track or Selected tracks.
Cover art, tag fields, artist profile, and cover/tag editing targets follow this choice.
Selected mode supports editing multiple highlighted tracks. Playing mode edits only the current song.
Change cover and its options are directly below Edit tags, available in both cover and tag views.

LIGHTWEIGHT AUDIO EDITOR
Select a track and open File > Audio editor, or right-click a track > Audio editor.
Set start/end in seconds, pitch from -12 to +12 semitones, and speed from 50 to 200 percent.
Pitch and speed adjust independently. Save a copy exports MP3 (320 kbps) or 16-bit WAV.
The original and any existing destination file are never overwritten. Choose a new filename each time.
Export runs in the background and can be cancelled; unfinished temporary files are removed.
Use Refresh folder to discover saved MP3 copies. WAV copies can be played in other audio players.
Large pitch/time changes can produce audible processing artifacts.
The search bar hides its placeholder on focus so the standard blinking Windows caret is visible.

GRAPHICAL AUDIO CONTROLS AND IMPROVED PROCESSING
Drag the Start, End, Pitch and Speed sliders, or enter precise numeric values.
Reset pitch / speed restores 0 semitones and 100%.
SoundTouch 2.3.3 now processes pitch and tempo together in one stereo-linked pass,
with anti-alias filtering and quick-seek disabled. The former FFT shifter is removed.
Unchanged pitch/speed bypass processing. MP3 export uses 320 kbps; WAV avoids MP3 re-encoding.
Large shifts can still produce artifacts; the new processing does not add reverb.
Keep SoundTouchDLL.dll and SoundTouchDLL_x64.dll beside CratePlayer.exe when updating.
See LICENSE-SoundTouch.txt and THIRD-PARTY-SoundTouch.txt; matching source is included.

APPEARANCE SETTINGS
Open File > Settings. Choose Dark or Light appearance and Orange, Ocean, Violet,
Forest or Rose colors. Apply saves your choices and updates the app immediately.
Choose a JPEG or PNG background, adjust image strength, or remove it.
CRATE stores an optimized image copy in Data/background.png and settings in Data/appearance.json.
Keep Data when updating to preserve appearance. Reset restores Dark/Orange with no background.
Appearance changes keep the current song playing and preserve unsaved tag edits.

SMOOTHER BACKGROUND RENDERING
Background images are scaled and tinted once per window size/theme, then reused.
Library rows copy from a cached viewport image instead of rescaling the original.
Resize updates are debounced, and opening/closing tag editing batches layout changes.
The native track list and sidebar containers use buffered painting.

GOOGLE DRIVE CONNECTION
File > Connect Google Drive opens the cloud library. Import a Google Cloud Desktop app OAuth client JSON, connect in your system browser, navigate into a music folder by double-clicking it, then choose Use this folder. The web player's Web application client remains separate.
CRATE downloads MP3s (including subfolders) into Data/GoogleDrive/Music for local playback. First sync needs space for the chosen folder. Subsequent syncs download changed files only. Refresh folder opens Drive sync for a connected library; no automatic cloud scanning is enabled.
Tag and cover saves upload to the same Drive file IDs. Failed uploads stay pending; use Pending edits to retry. If the cloud revision changed, CRATE refuses to overwrite it. Pending edits > No preserves local copies in Data/GoogleDrive/Conflicts before downloading cloud versions. Removed Drive tracks are preserved under Data/GoogleDrive/Removed. Original edit backups remain in .folderplayer-backups.
Drive client configuration and refresh credentials are protected with Windows user encryption in Data/GoogleDrive/connection.bin. These credentials are tied to this Windows user and are not included in the portable download. Keep Data during upgrades. The native app requests read/write Drive permission to save tags; it operates on the music folder you select. Google Cloud must have Drive API enabled, External audience when using personal Google accounts, and your email added as a test user during testing.

AUDIO COPIES AND DRIVE REFRESH
Saving an edited MP3 or WAV automatically refreshes the current library. For tracks in a connected Google Drive library, the new copy uploads beside the original cloud track (including its source subfolder). Its readable export filename is used in Drive. An interrupted upload remains queued locally and retries on Refresh folder; pre-generated Drive file IDs prevent duplicate files after an uncertain response. Keep the local export until upload completes.
Refresh folder now checks the connected Drive library and refreshes the current local folder in one action without opening a separate connection window. Playback continues during syncing. WAV exports are included in folder scans and Drive sync, alongside MP3s.

AUDIO EDITOR SAVE DESTINATIONS
Save to file opens the local folder/file chooser and does not upload through CRATE. Save to drive asks for a filename and MP3/WAV format, then uploads a new copy. For a Drive source it uses the original's cloud folder; for a local source it uses the connected Drive music folder. Connect a Drive folder first. This replaces the older single Save a copy action and its automatic upload behavior. Both destinations refresh the library; originals stay unchanged.
