Serve samples from a local directory. Useful if you're loading samples from a browser.
- Install dependencies
nvm use
npm install- Drag folders of samples into
samplesfolder. The file structure should look something like this:
├── samples
│ ├── bd
│ │ ├── *.wav
│ ├── sd
│ │ ├── *.wav
│ ├── pads
│ │ ├── *.wav
N.B. browsers don't like .aif or .aiff files.
- run
npm run startto compile json file of file tree and spin up local server servemessage should show address of local server- fetch
http://<address>/samples.jsonfrom a browser script to get a list of url paths, grouped by directory