Skip to content

Instantly share code, notes, and snippets.

@antonhornquist
Last active October 8, 2017 21:23
Show Gist options
  • Save antonhornquist/c0f9bd03317954b0984e63a8dc25def9 to your computer and use it in GitHub Desktop.
Save antonhornquist/c0f9bd03317954b0984e63a8dc25def9 to your computer and use it in GitHub Desktop.
dw: How to load samples

( // code below loads 16 samples into first kit ~loadKit.value( 0, // kit index. four kits, indexed 0 to 3, are available ( root: "/path/to/samples", // root path for samples samples: [ // an array of up to 16 samples "kick1.wav", "kick2.wav", "snare.wav", "closed hihat.wav", "open hihat.wav", "clap.wav", "perc1.wav", "perc2.wav", "perc3.wav", "rimshot.wav", "hit1.wav", "hit2.wav", "hit3.wav", "tom1.wav", "tom2.wav", "tom3.wav", ] ) ); )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment