strudel/packages/sampler
2025-11-27 21:11:50 +01:00
..
package.json fix for node 24 support #1718 2025-11-04 20:54:21 -06:00
README.md add --yes flag to readme, making sure first run works 2025-08-21 20:36:42 +02:00
sample-server.mjs Merge remote-tracking branch 'origin/main' into glossing/sounds-tab-preview 2025-11-27 21:11:50 +01:00

@strudel/sampler

This package allows you to serve your samples on disk to the strudel REPL.

cd ~/your/samples/ 
npx @strudel/sampler

This will run a server on http://localhost:5432. You can now load the samples via:

samples('http://localhost:5432')

Options

LOG=1 npx @strudel/sampler # adds logging
PORT=5555 npx @strudel/sampler # changes port

static json

when running with --json, you will simply get the json logged back:

npx --yes @strudel/sampler --json > strudel.json

this is useful if you want to create a sample pack from the current folder.