smplr 0.13.3 → 0.13.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2006,7 +2006,7 @@ function getGoldstSoundfontLoopsUrl(instrument, kit) {
2006
2006
  return void 0;
2007
2007
  return `https://goldst.dev/midi-js-soundfonts/${kit}/${instrument}-loop.json`;
2008
2008
  }
2009
- function fetchSoundfontLoopData(url) {
2009
+ function fetchSoundfontLoopData(url, sampleRate = 44100) {
2010
2010
  return __async(this, null, function* () {
2011
2011
  if (!url)
2012
2012
  return void 0;
@@ -2016,7 +2016,6 @@ function fetchSoundfontLoopData(url) {
2016
2016
  return;
2017
2017
  const raw = yield req.json();
2018
2018
  const loopData = {};
2019
- const sampleRate = 41e3;
2020
2019
  Object.keys(raw).forEach((key) => {
2021
2020
  const midi = toMidi(key);
2022
2021
  if (midi) {