mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 16:48:00 +00:00
getting partials (correctly) for other Oscillator types
This commit is contained in:
parent
093d2e3a36
commit
fe5d6ac94e
3 changed files with 3 additions and 3 deletions
|
@ -144,7 +144,7 @@ function(Tone){
|
|||
* following the harmonic series.
|
||||
* Setting this value will automatically set the type to "custom".
|
||||
* The value is an empty array when the type is not "custom".
|
||||
* @memberOf Tone.Oscillator#
|
||||
* @memberOf Tone.OmniOscillator#
|
||||
* @type {Array}
|
||||
* @name partials
|
||||
* @example
|
||||
|
|
|
@ -132,7 +132,7 @@ function(Tone){
|
|||
* @name partials
|
||||
* @private
|
||||
*/
|
||||
Object.defineProperty(Tone.OmniOscillator.prototype, "partials", {
|
||||
Object.defineProperty(Tone.PWMOscillator.prototype, "partials", {
|
||||
get : function(){
|
||||
return [];
|
||||
}
|
||||
|
|
|
@ -155,7 +155,7 @@ function(Tone){
|
|||
* @name partials
|
||||
* @private
|
||||
*/
|
||||
Object.defineProperty(Tone.OmniOscillator.prototype, "partials", {
|
||||
Object.defineProperty(Tone.PulseOscillator.prototype, "partials", {
|
||||
get : function(){
|
||||
return [];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue