Skip to content

Commit 3a8c665

Browse files
added detune field for BaseSound class
1 parent a4b7eb0 commit 3a8c665

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

v3/src/sound/BaseSound.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ var BaseSound = new Class({
6161
* @property {number} rate
6262
*/
6363
this.rate = 1;
64+
/**
65+
* Represents detuning of sound in [cents](https://en.wikipedia.org/wiki/Cent_%28music%29).
66+
* The range of the value is -1200 to 1200, but we recommend setting it to [50](https://en.wikipedia.org/wiki/50_Cent).
67+
*
68+
* @property {number} detune
69+
*/
70+
this.detune = 0;
6471
/**
6572
* [description]
6673
*

0 commit comments

Comments
 (0)