fix: still had strudel core imports
This commit is contained in:
parent
2778e4d697
commit
82cb4c8c11
5 changed files with 42 additions and 17 deletions
|
|
@ -17,10 +17,11 @@ npm i superdough --save
|
|||
```js
|
||||
import { superdough, samples } from 'superdough';
|
||||
// load samples from github
|
||||
const loadSamples = samples('github:tidalcycles/Dirt-Samples/master');
|
||||
const init = samples('github:tidalcycles/Dirt-Samples/master');
|
||||
|
||||
// play some sounds when a button is clicked
|
||||
document.getElementById('play').addEventListener('click', () => {
|
||||
document.getElementById('play').addEventListener('click', async () => {
|
||||
await init;
|
||||
superdough({ s: "bd", delay: .5 }, 0);
|
||||
superdough({ s: "sawtooth", cutoff: 600, resonance: 8 }, 0);
|
||||
superdough({ s: "hh" }, 0.25);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue