mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 00:27:58 +00:00
don't convert if value is overridden
This commit is contained in:
parent
58eac95314
commit
68a0f1ae8c
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ define(["Tone/core/Tone", "Tone/type/Type", "Tone/core/AudioNode", "Tone/core/Ti
|
|||
* @return {number} the number which the value should be set to
|
||||
*/
|
||||
Tone.Param.prototype._fromUnits = function(val){
|
||||
if (this.convert || Tone.isUndef(this.convert)){
|
||||
if ((this.convert || Tone.isUndef(this.convert)) && !this.overridden){
|
||||
switch (this.units){
|
||||
case Tone.Type.Time:
|
||||
return this.toSeconds(val);
|
||||
|
|
Loading…
Reference in a new issue