u-he-preset-randomizer
Version:
Create random u-he synth presets through randomization and merging of your existing presets.
19 lines (18 loc) • 960 B
TypeScript
import { ParamsModel } from "./analyzer.js";
import { Preset } from "./parser.js";
import { PresetLibrary } from "./presetLibrary.js";
import { Config } from "./config.js";
/**
* Fully randomized presets, with real values from library
*/
export declare function generateFullyRandomPresets(presetLibrary: PresetLibrary, paramModel: ParamsModel, config: Config): PresetLibrary;
/**
* Randomize a given preset, with specific randomization ratio
*/
export declare function generateRandomizedPresets(presetLibrary: PresetLibrary, paramModel: ParamsModel, config: Config): PresetLibrary;
/**
* Merge multiple presets together, with randomization amount
*/
export declare function generateMergedPresets(presetLibrary: PresetLibrary, paramModel: ParamsModel, config: Config): PresetLibrary;
export declare function getRandomArrayItem<T>(list: T[]): T;
export declare function randomizePreset(basePreset: Preset, paramModel: ParamsModel, config: Config): Preset;