mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-26 19:43:12 +00:00
fixing example links
This commit is contained in:
parent
f20d19beed
commit
e673387cbb
2 changed files with 10 additions and 10 deletions
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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<SamplerOptions> {
|
||||
|
|
Loading…
Reference in a new issue