mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-12 22:28:37 +00:00
30 lines
498 B
Markdown
30 lines
498 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!
|
|
|
|
## 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')
|
|
)
|
|
```
|