const DrumSamples = new Tone.ToneAudioBuffers({ sampleKik: localKikURL, sampleSnare: localSnareURL, sampleSnareGhost: localGhostSnareURL, sampleSnareDva: localSnareDvaURL, sampleHat: localHiHatURL, sampleCrash: localCrashURL, sampleRide: localRideURL, sampleTom1: localTomHiURL, sampleTom2: localTomLowURL, sampleHatOpen: localOpenHatURL, sampleHatFoot: localFootHatURL, sampleRimStick: localRimStickURL, // track80: localTrack_04, // track60: localTrack_02, // drums80: localTrack_30, // drums60: localTrack_19, }); let volDrums = new Tone.Volume(0).toDestination(); volDrums.mute = false; let volKik = new Tone.PanVol(0, -6).connect(volDrums); let volSnare = new Tone.PanVol(0, -4).connect(volDrums); let volASnare = new Tone.PanVol(0, -4).connect(volDrums); let volGSnare = new Tone.PanVol(0, 2).connect(volDrums); let volHat = new Tone.PanVol(0.2, -3).connect(volDrums); let volOHat = new Tone.PanVol(0.2, 2).connect(volDrums); let volFHat = new Tone.PanVol(0.2, 0).connect(volDrums); let volCrash = new Tone.PanVol(0, -6).connect(volDrums); let volRide = new Tone.PanVol(-0.3, 0).connect(volDrums); let volTom1 = new Tone.PanVol(0, -2).connect(volDrums); let volTom2 = new Tone.PanVol(0, -2).connect(volDrums); let volRimStick = new Tone.PanVol(0, -4).connect(volDrums); // let volMusic = new Tone.PanVol(0, -10).connect(volDrums); const rim = new Tone.Player().connect(volRimStick); rim.buffer = DrumSamples.get("sampleRimStick"); const kik = new Tone.Player().connect(volKik); kik.buffer = DrumSamples.get("sampleKik"); const snare = new Tone.Player().connect(volSnare); snare.buffer = DrumSamples.get("sampleSnare"); const aSnare = new Tone.Player().connect(volASnare); aSnare.buffer = DrumSamples.get("sampleSnareDva"); const gSnare = new Tone.Player().connect(volGSnare); gSnare.buffer = DrumSamples.get("sampleSnareGhost"); const fhat = new Tone.Player().connect(volFHat); fhat.buffer = DrumSamples.get("sampleHatFoot"); const hihat = new Tone.Player().connect(volHat); hihat.buffer = DrumSamples.get("sampleHat"); const oHihat = new Tone.Player().connect(volOHat); oHihat.buffer = DrumSamples.get("sampleHatOpen"); const crash = new Tone.Player().connect(volCrash); crash.buffer = DrumSamples.get("sampleCrash"); const ride = new Tone.Player().connect(volRide); ride.buffer = DrumSamples.get("sampleRide"); const tom1 = new Tone.Player().connect(volTom1); tom1.buffer = DrumSamples.get("sampleTom1"); const tom2 = new Tone.Player().connect(volTom2); tom2.buffer = DrumSamples.get("sampleTom2"); // let tr80 = new Tone.Player().connect(volMusic); // tr80.buffer = DrumSamples.get("track80") // let tr60 = new Tone.Player().connect(volMusic); // tr60.buffer = DrumSamples.get("track60") // let tr80drums = new Tone.Player().connect(volMusic); // tr80drums.buffer = DrumSamples.get("drums80") // let tr60drums = new Tone.Player().connect(volMusic); // tr60drums.buffer = DrumSamples.get("drums60")