xxxxxxxxxx
13
const sampler = new Tone.Sampler({
urls: {
C0: "0.wav",
C1: "1.wav",
C2: "2.wav",
C3: "3.wav"
},
baseUrl: "samples/Elc_",
onload: () => {
console.log('samples loaded')
}
}).toDestination();