Skip to content

Commit 52cbffc

Browse files
added detune field to BaseSoundManager
1 parent 8ede77d commit 52cbffc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

v3/src/sound/BaseSoundManager.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ var BaseSoundManager = new Class({
3636
* @property {number} rate
3737
*/
3838
this.rate = 1;
39+
/**
40+
* Global detuning of all sounds in [cents](https://en.wikipedia.org/wiki/Cent_%28music%29).
41+
* The range of the value is -1200 to 1200, but we recommend setting it to [50](https://en.wikipedia.org/wiki/50_Cent).
42+
*
43+
* @property {number} detune
44+
*/
45+
this.detune = 0;
3946
/**
4047
* Global amount of panning to apply.
4148
* The value can range between -1 (full left pan) and 1 (full right pan).

0 commit comments

Comments
 (0)