mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-18 09:08:30 +00:00
37 lines
626 B
Markdown
37 lines
626 B
Markdown
# @strudel/hydra
|
|
|
|
This package integrates [hydra-synth](https://www.npmjs.com/package/hydra-synth) into strudel.
|
|
|
|
## Usage in Strudel
|
|
|
|
This package is imported into strudel by default. To activate Hydra, place this code at the top of your code:
|
|
|
|
```js
|
|
await initHydra();
|
|
```
|
|
|
|
Then you can use hydra below!
|
|
|
|
### Enable audio capture
|
|
Use `{audio: true}` param to enable Hydra's audio capture:
|
|
|
|
```js
|
|
await initHydra({audio: true});
|
|
```
|
|
|
|
## Usage via npm
|
|
|
|
```sh
|
|
npm i @strudel/hydra
|
|
```
|
|
|
|
Then add the import to your evalScope:
|
|
|
|
```js
|
|
import { evalScope } from '@strudel.cycles/core';
|
|
|
|
evalScope(
|
|
import('@strudel/hydra')
|
|
)
|
|
```
|