mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-27 12:03: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
|
* @example
|
||||||
* const pianoSamples = new Tone.ToneAudioBuffers({
|
* const pianoSamples = new Tone.ToneAudioBuffers({
|
||||||
* C1: "https://tonejs.github.io/examples/audio/casio/C1.mp3",
|
* A1: "https://tonejs.github.io/audio/casio/A1.mp3",
|
||||||
* C2: "https://tonejs.github.io/examples/audio/casio/C2.mp3",
|
* A2: "https://tonejs.github.io/audio/casio/A2.mp3",
|
||||||
* }, () => {
|
* }, () => {
|
||||||
* const player = new Tone.Player().toDestination();
|
* const player = new Tone.Player().toDestination();
|
||||||
* // play one of the samples when they all load
|
* // play one of the samples when they all load
|
||||||
|
@ -34,11 +34,11 @@ interface ToneAudioBuffersOptions {
|
||||||
* // To pass in additional parameters in the second parameter
|
* // To pass in additional parameters in the second parameter
|
||||||
* const buffers = new Tone.ToneAudioBuffers({
|
* const buffers = new Tone.ToneAudioBuffers({
|
||||||
* urls: {
|
* urls: {
|
||||||
* C1: "C1.mp3",
|
* A1: "A1.mp3",
|
||||||
* C2: "C2.mp3",
|
* A2: "A2.mp3",
|
||||||
* },
|
* },
|
||||||
* onload: () => console.log("loaded"),
|
* onload: () => console.log("loaded"),
|
||||||
* baseUrl: "https://tonejs.github.io/examples/audio/casio/"
|
* baseUrl: "https://tonejs.github.io/audio/casio/"
|
||||||
* });
|
* });
|
||||||
* @category Core
|
* @category Core
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -37,14 +37,14 @@ export interface SamplerOptions extends InstrumentOptions {
|
||||||
* @example
|
* @example
|
||||||
* const sampler = new Tone.Sampler({
|
* const sampler = new Tone.Sampler({
|
||||||
* urls: {
|
* urls: {
|
||||||
* C1: "C1.mp3",
|
* A1: "A1.mp3",
|
||||||
* C2: "C2.mp3",
|
* A2: "A2.mp3",
|
||||||
* },
|
* },
|
||||||
* baseUrl: "https://tonejs.github.io/examples/audio/casio/",
|
* baseUrl: "https://tonejs.github.io/audio/casio/",
|
||||||
* onload: () => {
|
* onload: () => {
|
||||||
* sampler.triggerAttackRelease(["C1", "E1", "G1", "B1"], 0.5);
|
* sampler.triggerAttackRelease(["C1", "E1", "G1", "B1"], 0.5);
|
||||||
* },
|
* }
|
||||||
* });
|
* }).toDestination();
|
||||||
* @category Instrument
|
* @category Instrument
|
||||||
*/
|
*/
|
||||||
export class Sampler extends Instrument<SamplerOptions> {
|
export class Sampler extends Instrument<SamplerOptions> {
|
||||||
|
|
Loading…
Reference in a new issue