Skip to content

Commit

Permalink
updating link to Context instead of BaseContext (#1238)
Browse files Browse the repository at this point in the history
  • Loading branch information
tambien authored Apr 29, 2024
1 parent f216061 commit 4b3d371
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Tone/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export { getContext, setContext } from "./core/Global";
import { BaseContext } from "./core/context/BaseContext";
import { Context } from "./core/context/Context";
export * from "./classes";
export * from "./version";
import { getContext } from "./core/Global";
Expand All @@ -10,16 +10,16 @@ export { supported } from "./core/context/AudioContext";

/**
* The current audio context time of the global {@link BaseContext}.
* @see {@link BaseContext.now}
* @see {@link Context.now}
* @category Core
*/
export function now(): Seconds {
return getContext().now();
}

/**
* The current audio context time of the global {@link BaseContext} without the {@link BaseContext.lookAhead}
* @see {@link BaseContext.immediate}
* The current audio context time of the global {@link Context} without the {@link Context.lookAhead}
* @see {@link Context.immediate}
* @category Core
*/
export function immediate(): Seconds {
Expand Down Expand Up @@ -100,7 +100,7 @@ export function getDraw(): import("./core/util/Draw").DrawClass {

/**
* A reference to the global context
* @see {@link BaseContext}
* @see {@link Context}
* @deprecated Use {@link getContext} instead
*/
export const context = getContext();
Expand Down

0 comments on commit 4b3d371

Please sign in to comment.