Create a TimeClass from a time string or number. The time is computed against the global Tone.Context. To use a specific context, use TimeClass
Optional
A value which represents time
The value's units if they can't be inferred by the value.
const time = Tone.Time("4n").toSeconds();console.log(time); Copy
const time = Tone.Time("4n").toSeconds();console.log(time);
const note = Tone.Time(1).toNotation();console.log(note); Copy
const note = Tone.Time(1).toNotation();console.log(note);
const freq = Tone.Time(0.5).toFrequency();console.log(freq); Copy
const freq = Tone.Time(0.5).toFrequency();console.log(freq);
Create a TimeClass from a time string or number. The time is computed against the global Tone.Context. To use a specific context, use TimeClass