From 51af0138fc59f700608b273499fcc96b591c2407 Mon Sep 17 00:00:00 2001 From: Yotam Mann Date: Mon, 28 Oct 2019 15:12:02 -0400 Subject: [PATCH] adding AMSynth to polysynth options --- Tone/instrument/PolySynth.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Tone/instrument/PolySynth.ts b/Tone/instrument/PolySynth.ts index 9ae68fde..bb640e1a 100644 --- a/Tone/instrument/PolySynth.ts +++ b/Tone/instrument/PolySynth.ts @@ -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 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.