CutMusic beta
Interface of @v12-engine/client
ts
export interface CutMusicThe music playing, as code holds it (cut.audio.musicNow(), a music clip's RunningClip.handle): its tracks, the <audio> element that plays them, its own volume's node, and the context
Members
context
ts
readonly context: BaseAudioContext;The Web Audio context the music is made in
element
ts
readonly element: HTMLAudioElement;The <audio> element that plays the tracks
gain
ts
readonly gain: GainNode;Its own volume's node, between the element and the output
tracks
ts
readonly tracks: readonly string[];The tracks it plays, by name, one after the other
volume
ts
volume(level: number, seconds?: number): void;Its own volume, eased over seconds