mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 08:38:00 +00:00
Milliseconds type
This commit is contained in:
parent
56eca9b690
commit
94e4c882fd
2 changed files with 7 additions and 2 deletions
|
@ -115,6 +115,11 @@ define(["Tone/core/Tone"], function (Tone) {
|
|||
* @typedef {Note}
|
||||
*/
|
||||
Note : "note",
|
||||
/**
|
||||
* One millisecond is a thousandth of a second.
|
||||
* @typedef {Milliseconds}
|
||||
*/
|
||||
Milliseconds : "milliseconds",
|
||||
/**
|
||||
* A string representing a duration relative to a measure.
|
||||
* <ul>
|
||||
|
|
|
@ -12,7 +12,7 @@ function(Tone){
|
|||
* @constructor
|
||||
* @extends {Tone.StereoXFeedbackEffect}
|
||||
* @param {Frequency|Object} [frequency] The frequency of the LFO.
|
||||
* @param {Number} [delayTime] The delay of the chorus effect in ms.
|
||||
* @param {Milliseconds} [delayTime] The delay of the chorus effect in ms.
|
||||
* @param {NormalRange} [depth] The depth of the chorus.
|
||||
* @example
|
||||
* var chorus = new Tone.Chorus(4, 2.5, 0.5);
|
||||
|
@ -143,7 +143,7 @@ function(Tone){
|
|||
* will give a more pronounced effect. Nominal range a delayTime
|
||||
* is between 2 and 20ms.
|
||||
* @memberOf Tone.Chorus#
|
||||
* @type {Number}
|
||||
* @type {Milliseconds}
|
||||
* @name delayTime
|
||||
*/
|
||||
Object.defineProperty(Tone.Chorus.prototype, "delayTime", {
|
||||
|
|
Loading…
Reference in a new issue