diff --git a/Tone/core/context/ToneAudioBuffers.ts b/Tone/core/context/ToneAudioBuffers.ts index ac711075..81455b42 100644 --- a/Tone/core/context/ToneAudioBuffers.ts +++ b/Tone/core/context/ToneAudioBuffers.ts @@ -22,8 +22,8 @@ interface ToneAudioBuffersOptions { * * @example * const pianoSamples = new Tone.ToneAudioBuffers({ - * C1: "https://tonejs.github.io/examples/audio/casio/C1.mp3", - * C2: "https://tonejs.github.io/examples/audio/casio/C2.mp3", + * A1: "https://tonejs.github.io/audio/casio/A1.mp3", + * A2: "https://tonejs.github.io/audio/casio/A2.mp3", * }, () => { * const player = new Tone.Player().toDestination(); * // play one of the samples when they all load @@ -34,11 +34,11 @@ interface ToneAudioBuffersOptions { * // To pass in additional parameters in the second parameter * const buffers = new Tone.ToneAudioBuffers({ * urls: { - * C1: "C1.mp3", - * C2: "C2.mp3", + * A1: "A1.mp3", + * A2: "A2.mp3", * }, * onload: () => console.log("loaded"), - * baseUrl: "https://tonejs.github.io/examples/audio/casio/" + * baseUrl: "https://tonejs.github.io/audio/casio/" * }); * @category Core */ diff --git a/Tone/instrument/Sampler.ts b/Tone/instrument/Sampler.ts index 36f5fb9b..4e50833e 100644 --- a/Tone/instrument/Sampler.ts +++ b/Tone/instrument/Sampler.ts @@ -37,14 +37,14 @@ export interface SamplerOptions extends InstrumentOptions { * @example * const sampler = new Tone.Sampler({ * urls: { - * C1: "C1.mp3", - * C2: "C2.mp3", + * A1: "A1.mp3", + * A2: "A2.mp3", * }, - * baseUrl: "https://tonejs.github.io/examples/audio/casio/", + * baseUrl: "https://tonejs.github.io/audio/casio/", * onload: () => { * sampler.triggerAttackRelease(["C1", "E1", "G1", "B1"], 0.5); - * }, - * }); + * } + * }).toDestination(); * @category Instrument */ export class Sampler extends Instrument {