spessasynth_lib
Version:
MIDI and SoundFont2/DLS library for the browsers with no compromises
25 lines (21 loc) • 943 B
JavaScript
import { DEFAULT_CHORUS_CONFIG } from "./fancy_chorus.js";
/**
* @typedef {Object} SynthConfig
* @property {boolean?} chorusEnabled - indicates if the chorus effect is enabled.
* @property {ChorusConfig?} chorusConfig - the configuration for chorus. Pass undefined to use defaults
* @property {boolean?} reverbEnabled - indicates if the reverb effect is enabled.
* @property {AudioBuffer?} reverbImpulseResponse - the impulse response for the reverb. Pass undefined to use defaults
* @property {{
* worklet: function(context: object, name: string, options?: Object)
* }?} audioNodeCreators - custom audio node creation functions for Web Audio wrappers.
*/
/**
* @type {SynthConfig}
*/
export const DEFAULT_SYNTH_CONFIG = {
chorusEnabled: true,
chorusConfig: DEFAULT_CHORUS_CONFIG,
reverbEnabled: true,
reverbImpulseResponse: undefined, // will load the integrated one
audioNodeCreators: undefined
};