StructsΒ§
- Audio
History - Audio
Sample - Audio
Scan Diff - Audio
Scan Snapshot - Audio
Scan Summary - DawHistory
- DawProject
- DawScan
Diff - DawScan
Snapshot - DawScan
Summary - KvrCache
Entry - KvrCache
Update Entry - Midi
File - Midi
Scan Diff - Midi
Scan Snapshot - Midi
Scan Summary - PdfFile
- PdfScan
Diff - PdfScan
Snapshot - PdfScan
Summary - Preset
File - Preset
History - Preset
Scan Diff - Preset
Scan Snapshot - Preset
Scan Summary - Scan
Diff - Scan
History - Scan
Snapshot - Scan
Summary - Version
Changed Plugin
ConstantsΒ§
- APP_
DATA_ πIDENTIFIER - Bundle / data subdir β must match
identifierintauri.conf.jsonand Tauriapp_data_dir(). - PREF_
CACHE_ πTTL_ MS - SECTION_
MAP π
StaticsΒ§
- PREF_
CACHE π - Avoid re-reading preferences.toml on every hot path (e.g.
get_process_statsonce per second). Cache entries are keyed by the resolved preferences path so parallel tests (each with a thread-local temp data dir) and the main app never share aPrefsMapacross different files. - PREF_
RMW_ πLOCK - Serializes read-modify-write preference updates so concurrent
prefs_set/prefs_removecalls (e.g. color scheme + removingcustomSchemeVars) cannot clobber each other on disk.
FunctionsΒ§
- app_
data_ πdir_ from_ home - When
dirs::data_dir()is unavailable, resolve under the home directory β never use the process working directory. A cwd-based path changes with how the app is launched (Finder vs Terminal vs IDE), so prefs and DB would appear to βresetβ every run. - audio_
history_ πfile - build_
audio_ snapshot - Build an AudioScanSnapshot without file I/O (for SQLite path).
- build_
daw_ snapshot - build_
midi_ snapshot - build_
pdf_ snapshot - build_
plugin_ snapshot - Build a ScanSnapshot without file I/O (for SQLite path).
- build_
preset_ snapshot - clear_
audio_ history - clear_
daw_ history - clear_
history - clear_
preset_ history - compute_
audio_ diff - Compute diff between two audio snapshots (no file I/O).
- compute_
daw_ diff - compute_
midi_ diff - compute_
pdf_ diff - compute_
plugin_ diff - Compute diff between two plugin snapshots (no file I/O).
- compute_
preset_ diff - daw_
history_ πfile - default_
config π - delete_
audio_ scan - delete_
daw_ scan - delete_
preset_ scan - delete_
scan - diff_
audio_ scans - diff_
daw_ scans - diff_
preset_ scans - diff_
scans - ensure_
data_ dir - Creates
get_data_dir()if needed; safe to call before writing files there. - flat_
to_ πtoml - Convert a flat PrefsMap into sectioned TOML string.
- gen_id
- get_
audio_ scan_ detail - get_
audio_ scans - get_
data_ dir - get_
daw_ scan_ detail - get_
daw_ scans - get_
latest_ audio_ scan - get_
latest_ daw_ scan - get_
latest_ preset_ scan - get_
latest_ scan - get_
preference - get_
preferences_ path - get_
preset_ scan_ detail - get_
preset_ scans - get_
scan_ detail - get_
scans - history_
file π - invalidate_
prefs_ πcache - json_
to_ πtoml_ value - kvr_
cache_ πfile - legacy_
preferences_ πfile - load_
audio_ πhistory - load_
daw_ πhistory - load_
history π - load_
kvr_ cache - load_
preferences - load_
preferences_ πfrom_ disk - load_
preset_ πhistory - merge_
prefs π - migrate_
json_ πstring - If a value is a string that looks like JSON array/object, parse it to native. Handles migration from old format where structured data was JSON-stringified.
- now_iso
- preferences_
file π - prefs_
cache_ πnow_ ms - preset_
history_ πfile - radix_
string - remove_
preference - save_
audio_ πhistory - save_
audio_ scan - save_
daw_ πhistory - save_
daw_ scan - save_
history π - save_
kvr_ πcache - save_
preferences - save_
preset_ πhistory - save_
preset_ scan - save_
scan - set_
preference - toml_
key_ πto_ flat - Build a reverse lookup: (section, toml_key) β flat_key
- toml_
to_ πflat - Parse a TOML string into a flat PrefsMap. Top-level sections become either a nested JSON value (for βwindowβ) or their inner keys are promoted to flat top-level keys using SECTION_MAP.
- toml_
value_ πto_ json - update_
kvr_ cache