mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-27 03:53:07 +00:00
updating doc links
This commit is contained in:
parent
510a08df4e
commit
23af858ef2
5 changed files with 8 additions and 8 deletions
|
@ -437,7 +437,7 @@ export class Context extends BaseContext {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Starts the audio context from a suspended state. This is required
|
* Starts the audio context from a suspended state. This is required
|
||||||
* to initially start the AudioContext.
|
* to initially start the AudioContext. See [[Tone.start]]
|
||||||
*/
|
*/
|
||||||
resume(): Promise<void> {
|
resume(): Promise<void> {
|
||||||
if (this._context.state === "suspended" && isAudioContext(this._context)) {
|
if (this._context.state === "suspended" && isAudioContext(this._context)) {
|
||||||
|
@ -448,8 +448,8 @@ export class Context extends BaseContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Promise which is invoked when the context is running.
|
* Close the context. Once closed, the context can no longer be used and
|
||||||
* Tries to resume the context if it's not started.
|
* any AudioNodes created from the context will be silent.
|
||||||
*/
|
*/
|
||||||
async close(): Promise<void> {
|
async close(): Promise<void> {
|
||||||
if (isAudioContext(this._context)) {
|
if (isAudioContext(this._context)) {
|
||||||
|
@ -461,7 +461,7 @@ export class Context extends BaseContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate a looped buffer at some constant value.
|
* **Internal** Generate a looped buffer at some constant value.
|
||||||
*/
|
*/
|
||||||
getConstant(val: number): AudioBufferSourceNode {
|
getConstant(val: number): AudioBufferSourceNode {
|
||||||
if (this._constants.has(val)) {
|
if (this._constants.has(val)) {
|
||||||
|
|
|
@ -17,7 +17,7 @@ export interface SynthOptions extends MonophonicOptions {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Synth is composed simply of a {@link OmniOscillator} routed through an {@link AmplitudeEnvelope}.
|
* Synth is composed simply of a [[OmniOscillator]] routed through an [[AmplitudeEnvelope]].
|
||||||
* ```
|
* ```
|
||||||
* +----------------+ +-------------------+
|
* +----------------+ +-------------------+
|
||||||
* | OmniOscillator +>--> AmplitudeEnvelope +>--> Output
|
* | OmniOscillator +>--> AmplitudeEnvelope +>--> Output
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { WaveShaper } from "./WaveShaper";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AudioToGain converts an input in AudioRange [-1,1] to NormalRange [0,1].
|
* AudioToGain converts an input in AudioRange [-1,1] to NormalRange [0,1].
|
||||||
* See {@link GainToAudio}.
|
* See [[GainToAudio]].
|
||||||
* @category Signal
|
* @category Signal
|
||||||
*/
|
*/
|
||||||
export class AudioToGain extends SignalOperator<ToneAudioNodeOptions> {
|
export class AudioToGain extends SignalOperator<ToneAudioNodeOptions> {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { WaveShaper } from "./WaveShaper";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GainToAudio converts an input in NormalRange [0,1] to AudioRange [-1,1].
|
* GainToAudio converts an input in NormalRange [0,1] to AudioRange [-1,1].
|
||||||
* See {@link AudioToGain}.
|
* See [[AudioToGain]].
|
||||||
* @category Signal
|
* @category Signal
|
||||||
*/
|
*/
|
||||||
export class GainToAudio extends SignalOperator<ToneAudioNodeOptions> {
|
export class GainToAudio extends SignalOperator<ToneAudioNodeOptions> {
|
||||||
|
|
|
@ -43,7 +43,7 @@ export class Multiply<TypeName extends "number" | "positive" = "number"> extends
|
||||||
input: InputNode;
|
input: InputNode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The product of the input and {@link factor}
|
* The product of the input and [[factor]]
|
||||||
*/
|
*/
|
||||||
output: OutputNode;
|
output: OutputNode;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue