SYNPLANT 2 PRESET BROWSER — WINDOWS COMMUNITY FIX
=================================================
Based on Dean Sokolov's original free Synplant 2 Preset Browser (PB_0.1).
This is an UNOFFICIAL community modification, tested by one user on Windows.
Not an official Sonic Charge release. Credit for the original browser: Dean Sokolov.
Original thread: https://soniccharge.com/forum/topic/3376-i-made-a-preset-browser-for-synplant-2-free

COMPATIBILITY: Synplant 2.0.2 or later; Windows. Not tested on macOS.

INSTALL — NO COMMAND PROMPT NEEDED FOR COPYING PRESETS
------------------------------------------------------
1. Exit Synplant and your DAW. Back up your current browser installation and
   Documents\Sonic Charge\Synplant Preset Browser*.json files, if present.
2. Open File Explorer > Documents > Sonic Charge. The Documents folder may
   be redirected to another drive; use the actual Documents folder Windows
   opens, not a hard-coded C: path.
3. Inside Sonic Charge, create the folders shown below if needed:

   Documents\Sonic Charge\Synplant Patch Mirror\By Package\
   Documents\Sonic Charge\Synplant Patch Mirror\By Category\

4. THIRD-PARTY PACKS: Locate them wherever they currently live (C:, D:, E:,
   an external drive etc). COPY, don't move, each pack folder into:

   Documents\Sonic Charge\Synplant Patch Mirror\By Package\

   Example:
   ...\Synplant Patch Mirror\By Package\My Pack\Bass\My Bass.synplant

   Keep subfolders. If you already have a 'By Package' directory, COPY ITS
   CONTENTS into the mirror's 'By Package' folder, rather than nesting an
   additional 'By Package' inside it.

5. FACTORY PRESETS (for the Factory tab): COPY the CONTENTS of your existing
   Synplant Patches\By Category directory into:

   Documents\Sonic Charge\Synplant Patch Mirror\By Category\

   Common factory location:
   C:\Program Files\Sonic Charge\Synplant Patches\By Category
   On a custom installation, find the installed 'Synplant Patches' folder.
   DO NOT move or delete the originals. Only copy the necessary preset files.
   Copying 'By Package' can also include Sonic Charge package presets. Those
   will show in Packs, as on the tested Windows setup.

6. Copy 'browserMod.js' and the ENTIRE 'PresetBrowser.spscript' folder from
   this ZIP into your Synplant Scripts\Mods directory. Typical location:

   C:\Program Files\Sonic Charge\Synplant Scripts\Mods

   Create Mods if missing; approve Windows' administrator prompt if asked.
   Do NOT put the ZIP itself inside Mods.

7. Start your DAW and Synplant. Click the browser magnifying-glass icon.
   On the FIRST RUN, let the browser finish scanning and saving its list.
   If a previous cache shows the wrong paths, use Shift + left-click on
   the NAME heading to force a full rescan. This should be necessary only
   after copying in new or reorganised packs. This is NOT the sound index.

8. Test Packs, Factory, audio preview, double-click load and favourites.
   Close and reopen the browser; it should reload the saved list without
   seeking access to the original preset folders in Program Files.

OPTIONAL — FIND SIMILAR
-----------------------
Find Similar requires small fingerprint data files created locally for EACH
user's own preset library. The working test build used private data generated
from its owner's earlier indexes; those personal paths and fingerprints are
NOT included in this public package, as they would be wrong for other users.

After step 7 (browser scan is complete):
1. Extract ALL the files from this ZIP to a normal folder (e.g. Downloads).
2. Double-click 'Build-Similarity-Data.cmd' in the extracted folder.
   (This launches the included PowerShell converter on your PC; it is NOT
   needed for copying packs and does not need to run as administrator.)
3. The converter uses old 'Synplant Preset Browser Index.json' and/or
   'Synplant Preset Browser Fingerprints.json' if available. It can also
   recognise some readable text preset formats; it may NOT support every
   .synplant or .synp format. The final output count is reported.
4. Sixteen compact Vectors_XX.json files are created in:

   Documents\Sonic Charge\Synplant Preset Browser Similarity\

5. Reopen the preset browser. Select a preset and click Find Similar.
   If the index is incomplete, results cover only those presets with
   available fingerprints. If zero were extracted, Find Similar cannot
   recommend matches; browsing/preview still work.
6. Whenever you add/move packs and Shift+NAME rescan, re-run the converter.

Only the similarity helper is a CMD/PowerShell script. You do not need any
terminal commands to place preset packs: copy them in File Explorer.

WHAT WAS FIXED
--------------
- Packs could show an empty list because 'By Package' was skipped.
- Folder discovery covered unrelated Sonic Charge directories or excluded
  needed package subdirectories on some Windows installations.
- Heavy automatic genome indexing caused Synplant 'Out of Memory' errors.
- Previously approved folders could be requested again on each reopening
  or when directly loading patches from protected Program Files directories.
- Cached library path validation could reject valid Windows separators.
- Saved library was built in two passes, causing slow reopens or long-script
  timeouts. The modified code loads compact metadata in one incremental pass.
- Preset loading and preview use the Documents mirror (originals untouched).
- Find Similar compares small per-user data shards only on demand; no
  automatic full-library indexing in Synplant.
- Existing favourites stored in the compact browser cache are preserved.

LIMITATIONS / SAFETY
--------------------
- The mirror uses extra disk space and must be updated manually whenever
  original packs change. New folders need Shift+NAME and a rebuilt
  similarity index.
- Similarity rankings depend on extracted fingerprints and are not complete
  when some patch formats cannot be read by the helper.
- Do not copy another person's Synplant Preset Browser.json or similarity
  vector files into your own Documents folder.
- Back up your existing JSON files before installation. The community ZIP
  contains no preset files, no personal preset databases, and no user paths.
- This version has been exercised by a Windows user; others' configurations
  and the optional converter have not been independently verified inside
  Synplant. Report any issues on the original discussion thread.
- The original author's redistribution terms are not stated in the provided
  release; ask Dean Sokolov before publicly rehosting modified script files.
