1.0.8 • Published 6 years ago

sf2-loader v1.0.8

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

sf2-loader

sf2-loader is a webpack loader to parse sf2 soundfont file. It is based on https://github.com/colinbdclark/sf2-parser. The output file is formatted for use with https://github.com/danigb/sample-player.

Installation

Requirement

sf2-loader uses LAME and FluidSynth.

  • To install LAME, see here
  • To install FluidSynth, see here

install from npm

npm i -D sf2-loader

webpack config file

module.exports = {
  // ...

  module: {
    rules: [
      {
        test: /\.sf2$/,
        use: [
          {
            loader: 'sf2-loader',
            options: {
              bitrate: 64,
            },
          },
        ],
      },
    ],
  },

  // ...
}

Options

sf2-loader options is for node-lame. You can specify bitrate(REQUIRED) and resample. About deteail, see here.

LICENSE

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago