UNPKG

u-he-preset-randomizer

Version:

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

20 lines (19 loc) 670 B
interface TemplateFile { path: string; weight: number; } /** * Loads available binary templates for a given synth. * Templates are expected to be in src/templates/{synthName}/*.h2p * Filenames should be prefixed with a weight, e.g. "15-Basic Shapes.h2p" */ export declare function getBinaryTemplates(synthName: string): TemplateFile[]; /** * Picks a template based on weighted probability. */ export declare function pickWeightedTemplate(templates: TemplateFile[]): TemplateFile | undefined; /** * Reads the template file and extracts its binary section. */ export declare function getTemplateBinary(templatePath: string): string | undefined; export {};