UNPKG

u-he-preset-randomizer

Version:

Create random u-he synth presets through randomization and merging of your existing presets.

33 lines (32 loc) 1.03 kB
/** * @file Preset library management and loading. * Handles discovery, loading, filtering, and writing of u-he preset libraries. */ import type { Config } from './config.js'; import { type Preset } from './parser.js'; import { type DetectedPresetLibrary, type SynthNames } from './utils/detector.js'; export interface PresetLibrary { synth: SynthNames; rootFolder: string; userPresetsFolder: string; presetsFolder?: string; presets: Preset[]; favorites: FavoriteFile[]; } interface FavoriteFile { fileName: string; presets: { name: string; path: string; }[]; } export interface UheFavoriteFile { 'tag-category-fav': Record<string, UheFavoriteFileEntry[]>; } export interface UheFavoriteFileEntry { db_path: string; name: string; } export declare function loadPresetLibrary(synth: SynthNames, config: Config, preDetectedLocation?: DetectedPresetLibrary): PresetLibrary; export declare function writePresetLibrary(presetLibrary: PresetLibrary): string[]; export {};