TimelineValue < Type >

  • Type: [object Object]

Represents a single value which is gettable and settable in a timed way

Hierarchy

  • Tone
    • TimelineValue

Index

Constructor

new TimelineValue (
initialValue:Type

The value to return if there is no scheduled values

) => TimelineValue

Properties

debug #

boolean

Set this debug flag to log all events that happen in this class.

disposed #

readonly boolean

Indicates if the instance was disposed. 'Disposing' an instance means that all of the Web Audio nodes that were created for the instance are disconnected and freed for garbage collection.

static version #

string

The version number semver

Methods

dispose #

disconnect and dispose.

dispose ( ) => this

get #

Get the value at the given time

get (
time:Seconds
) => Type

static getDefaults #

Returns all of the default options belonging to the class.

getDefaults ( ) => BaseToneOptions

set #

Set the value at the given time

set (
value:Type ,
time:Seconds
) => this

toString #

Convert the class to a string


import { Oscillator } from "tone";
const osc = new Oscillator();
console.log(osc.toString());
toString ( ) => string