frequency has a toFrequency

seems a little redundant, but it’s clearer.
This commit is contained in:
Yotam Mann 2016-09-20 18:35:49 -04:00
parent e3ca856764
commit 26f7676ef5

View file

@ -160,6 +160,14 @@ define(["Tone/core/Tone", "Tone/type/TimeBase"], function (Tone) {
return 1 / this.eval();
};
/**
* Return the value in Hertz
* @return {Frequency}
*/
Tone.Frequency.prototype.toFrequency = function(){
return this.eval()
};
/**
* Return the duration of one cycle in ticks
* @return {Ticks}