fix: still had strudel core imports

This commit is contained in:
Felix Roos 2023-08-11 10:51:59 +02:00
parent 2778e4d697
commit 82cb4c8c11
5 changed files with 42 additions and 17 deletions

View file

@ -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);