diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d596af..47f6f24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ Now you can pass the DrumMachineInstrument object directly to the constructor: const context = new AudioContext(); const drums = new DrumMachine(context, { instrument: { - baseUrl: "https://danigb.github.io/samples/drum-machines/roland-cr-8000/", + baseUrl: "https://smpldsnds.github.io/drum-machines/roland-cr-8000/", name: "roland-cr-8000", samples: [ "Cr8kbass", diff --git a/README.md b/README.md index fa157b6..48b6f80 100644 --- a/README.md +++ b/README.md @@ -302,8 +302,8 @@ An audio buffer sampler. Pass a `buffers` object with the files to be load: import { Sampler } from "smplr"; const buffers = { - kick: "https://danigb.github.io/samples/drum-machines/808-mini/kick.m4a", - snare: "https://danigb.github.io/samples/drum-machines/808-mini/snare-1.m4a", + kick: "https://smpldsnds.github.io/drum-machines/808-mini/kick.m4a", + snare: "https://smpldsnds.github.io/drum-machines/808-mini/snare-1.m4a", }; const sampler = new Sampler(new AudioContext(), { buffers }); ``` diff --git a/site/src/SamplerExample.tsx b/site/src/SamplerExample.tsx index 68c1fb7..82107c2 100644 --- a/site/src/SamplerExample.tsx +++ b/site/src/SamplerExample.tsx @@ -31,11 +31,14 @@ export function SamplerExample({ className }: { className?: string }) { setStatus("loading"); const context = getAudioContext(); reverb ??= new Reverb(context); - const buffers = samples.reduce((samples, name) => { - const url = `https://danigb.github.io/samples/drum-machines/808-mini/${name}.m4a`; - samples[name] = url; - return samples; - }, {} as Record); + const buffers = samples.reduce( + (samples, name) => { + const url = `https://smpldsnds.github.io/drum-machines/808-mini/${name}.m4a`; + samples[name] = url; + return samples; + }, + {} as Record + ); const sampler = new Sampler(context, { buffers }); sampler.output.addEffect("reverb", reverb, reverbMix); diff --git a/src/drum-machine/drum-machine.test.ts b/src/drum-machine/drum-machine.test.ts index d1be138..409021a 100644 --- a/src/drum-machine/drum-machine.test.ts +++ b/src/drum-machine/drum-machine.test.ts @@ -3,7 +3,7 @@ import { DrumMachine } from "./drum-machine"; function setup() { createFetchMock({ - "https://danigb.github.io/samples/drum-machines/TR-808/dm.json": { + "https://smpldsnds.github.io/drum-machines/TR-808/dm.json": { baseUrl: "", name: "", samples: ["kick/low"], @@ -11,8 +11,7 @@ function setup() { nameToSample: { kick: "kick/low" }, sampleNameVariations: {}, }, - "https://danigb.github.io/samples/drum-machines/TR-808/kick/low.ogg": - "kick", + "https://smpldsnds.github.io/drum-machines/TR-808/kick/low.ogg": "kick", }); const mock = createAudioContextMock(); const context = mock.context;