mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-26 03:23:11 +00:00
including MonoSynth in PolySynth types
This commit is contained in:
parent
5e3a76bb9d
commit
e40cb97e43
1 changed files with 5 additions and 3 deletions
|
@ -7,6 +7,7 @@ import { Instrument, InstrumentOptions } from "./Instrument";
|
|||
import { MembraneSynth, MembraneSynthOptions } from "./MembraneSynth";
|
||||
import { FMSynth, FMSynthOptions } from "./FMSynth";
|
||||
import { AMSynth, AMSynthOptions } from "./AMSynth";
|
||||
import { MonoSynth, MonoSynthOptions } from "./MonoSynth";
|
||||
import { MetalSynth, MetalSynthOptions } from "./MetalSynth";
|
||||
import { Monophonic } from "./Monophonic";
|
||||
import { Synth, SynthOptions } from "./Synth";
|
||||
|
@ -22,9 +23,10 @@ type VoiceOptions<T> =
|
|||
T extends MembraneSynth ? MembraneSynthOptions :
|
||||
T extends MetalSynth ? MetalSynthOptions :
|
||||
T extends FMSynth ? FMSynthOptions :
|
||||
T extends AMSynth ? AMSynthOptions :
|
||||
T extends Synth ? SynthOptions :
|
||||
never;
|
||||
T extends MonoSynth ? MonoSynthOptions :
|
||||
T extends AMSynth ? AMSynthOptions :
|
||||
T extends Synth ? SynthOptions :
|
||||
never;
|
||||
|
||||
/**
|
||||
* The settable synth options. excludes monophonic options.
|
||||
|
|
Loading…
Reference in a new issue