mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-15 16:17:58 +00:00
adding AMSynth to polysynth options
This commit is contained in:
parent
cd37884156
commit
51af0138fc
1 changed files with 4 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue