You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 23, 2020. It is now read-only.
According the The documentation for the Synth options, modulationType, modulationIndex, and harmonicity are not used on the synth at all, which makes sense.
Instead of including the entire OscillatorOptions type or breaking DRY principles by defining it over again, I propose using the "Pick" type tool to pull only the type type out of the OscillatorOptions list like so:
This would communicate to users of the Synth instrument that they only relevant oscillator configuration is the type, and they would not get lost wondering what the modulator and harmonicity are doing there (like I may have done for like an hour).
If this solution is acceptable I will make the change and submit a PR. LMK
The text was updated successfully, but these errors were encountered:
Thanks for the issue @jcapinc , this is pretty comparable to how it's typed in the new typescript branch which is where i'm putting my effort instead of updating these type definitions. Feel free to submit a PR if that's helpful for you. Once the main repo is done with the typescript conversion, i will archive this repo.
Contributions on the typescript branch of Tone.js would also be really helpful!
The SynthOptions includes the Oscillator Options type in its entirety:
According the The documentation for the Synth options,
modulationType
,modulationIndex
, andharmonicity
are not used on the synth at all, which makes sense.Instead of including the entire OscillatorOptions type or breaking DRY principles by defining it over again, I propose using the "Pick" type tool to pull only the
type
type out of the OscillatorOptions list like so:This would communicate to users of the Synth instrument that they only relevant oscillator configuration is the type, and they would not get lost wondering what the modulator and harmonicity are doing there (like I may have done for like an hour).
If this solution is acceptable I will make the change and submit a PR. LMK
The text was updated successfully, but these errors were encountered: