From 52cbffcf2e84aaf27089f697a8331b4b8a9f2f31 Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Thu, 16 Nov 2017 17:21:49 +0100 Subject: [PATCH] added detune field to BaseSoundManager --- v3/src/sound/BaseSoundManager.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/v3/src/sound/BaseSoundManager.js b/v3/src/sound/BaseSoundManager.js index d6796f0e1..747775d3b 100644 --- a/v3/src/sound/BaseSoundManager.js +++ b/v3/src/sound/BaseSoundManager.js @@ -36,6 +36,13 @@ var BaseSoundManager = new Class({ * @property {number} rate */ this.rate = 1; + /** + * Global detuning of all sounds in [cents](https://en.wikipedia.org/wiki/Cent_%28music%29). + * The range of the value is -1200 to 1200, but we recommend setting it to [50](https://en.wikipedia.org/wiki/50_Cent). + * + * @property {number} detune + */ + this.detune = 0; /** * Global amount of panning to apply. * The value can range between -1 (full left pan) and 1 (full right pan).