mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 16:48:00 +00:00
frequency has a toFrequency
seems a little redundant, but it’s clearer.
This commit is contained in:
parent
e3ca856764
commit
26f7676ef5
1 changed files with 8 additions and 0 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue