MCPcopy
hub / github.com/Tonejs/Tone.js / getDefaults

Method getDefaults

Tone/source/buffer/ToneBufferSource.ts:90–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88 }
89
90 static getDefaults(): ToneBufferSourceOptions {
91 return Object.assign(OneShotSource.getDefaults(), {
92 url: new ToneAudioBuffer(),
93 loop: false,
94 loopEnd: 0,
95 loopStart: 0,
96 onload: noOp,
97 onerror: noOp,
98 playbackRate: 1,
99 });
100 }
101
102 /**
103 * The fadeIn time of the amplitude envelope.

Callers 1

constructorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected