lib/legacy.js
function loadBuffers (ac, name, options) {
  console.warn('Soundfont.loadBuffers is deprecate.')
  console.log('Use Soundfont.instrument(..) and get buffers properties from the result.')
  return Soundfont.instrument(ac, name, options).then(function (inst) {
    return inst.buffers
  })
}
function loadBuffers (ac, name, options) {
  console.warn('Soundfont.loadBuffers is deprecate.')
  console.log('Use Soundfont.instrument(..) and get buffers properties from the result.')
  return Soundfont.instrument(ac, name, options).then(function (inst) {
    return inst.buffers
  })
}
/*
Load the buffers of a given instrument name. It returns a promise that resolves
to a hash with midi note numbers as keys, and audio buffers as values.

@param {AudioContext} ac - the audio context
@param {String} name - the instrument name (it accepts an url if starts with "http")
@param {Object} options - (Optional) options object
@return {Promise} a promise that resolves to a Hash of { midiNoteNum: <AudioBuffer> }

The options object accepts the following keys:

- nameToUrl {Function}: a function to convert from instrument names to urls.
By default it uses Benjamin Gleitzman's package of
[pre-rendered sound fonts](https://github.com/gleitz/midi-js-soundfonts)
- notes {Array}: the list of note names to be decoded (all by default)

@example
var Soundfont = require('soundfont-player')
Soundfont.loadBuffers(ctx, 'acoustic_grand_piano').then(function(buffers) {
buffers[60] // => An <AudioBuffer> corresponding to note C4
})