adding AMSynth to polysynth options

This commit is contained in:
Yotam Mann 2019-10-28 15:12:02 -04:00
parent cd37884156
commit 51af0138fc

View file

@ -6,6 +6,7 @@ import { isArray, isNumber } from "../core/util/TypeCheck";
import { Instrument, InstrumentOptions } from "./Instrument";
import { MembraneSynth, MembraneSynthOptions } from "./MembraneSynth";
import { FMSynth, FMSynthOptions } from "./FMSynth";
import { AMSynth, AMSynthOptions } from "./AMSynth";
import { MetalSynth, MetalSynthOptions } from "./MetalSynth";
import { Monophonic } from "./Monophonic";
import { Synth, SynthOptions } from "./Synth";
@ -21,8 +22,9 @@ type VoiceOptions<T> =
T extends MembraneSynth ? MembraneSynthOptions :
T extends MetalSynth ? MetalSynthOptions :
T extends FMSynth ? FMSynthOptions :
T extends Synth ? SynthOptions :
never;
T extends AMSynth ? AMSynthOptions :
T extends Synth ? SynthOptions :
never;
/**
* The settable synth options. excludes monophonic options.