add superdough package
This commit is contained in:
parent
2483bf812f
commit
30fe2dd502
19 changed files with 1384 additions and 17 deletions
35
packages/superdough/README.md
Normal file
35
packages/superdough/README.md
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# superdough
|
||||
|
||||
superdough is a simple web audio sampler and synth, intended for live coding.
|
||||
It is the default output of [strudel](https://strudel.tidalcycles.org/).
|
||||
This package has no ties to strudel and can be used to quickly bake your own music system on the web.
|
||||
|
||||
## Install
|
||||
|
||||
via npm:
|
||||
|
||||
```js
|
||||
npm i superdough --save
|
||||
```
|
||||
|
||||
## Use
|
||||
|
||||
```js
|
||||
import { superdough, samples } from 'superdough';
|
||||
// load samples from github
|
||||
const loadSamples = samples('github:tidalcycles/Dirt-Samples/master');
|
||||
|
||||
// play some sounds when a button is clicked
|
||||
document.getElementById('play').addEventListener('click', () => {
|
||||
superdough({ s: "bd", delay: .5 }, 0);
|
||||
superdough({ s: "sawtooth", cutoff: 600, resonance: 8 }, 0);
|
||||
superdough({ s: "hh" }, 0.25);
|
||||
superdough({ s: "sd", room: .5 }, 0.5);
|
||||
superdough({ s: "hh" }, 0.75);
|
||||
})
|
||||
```
|
||||
|
||||
## Credits
|
||||
|
||||
- [SuperDirt](https://github.com/musikinformatik/SuperDirt)
|
||||
- [WebDirt](https://github.com/dktr0/WebDirt)
|
||||
Loading…
Add table
Add a link
Reference in a new issue