docs: add --debug flag to readme
This commit is contained in:
parent
91ad3d729f
commit
a25f763796
1 changed files with 14 additions and 3 deletions
|
|
@ -14,16 +14,28 @@ You should see something like:
|
||||||
|
|
||||||
```log
|
```log
|
||||||
osc client running on port 57120
|
osc client running on port 57120
|
||||||
osc server running on port 7771
|
osc server running on port 57121
|
||||||
websocket server running on port 8080
|
websocket server running on port 8080
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### --port
|
||||||
|
|
||||||
By default it will use port 57120 for the osc client, which is what [superdirt](https://github.com/musikinformatik/SuperDirt) uses. You can change it via the `--port` option:
|
By default it will use port 57120 for the osc client, which is what [superdirt](https://github.com/musikinformatik/SuperDirt) uses. You can change it via the `--port` option:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npx @strudel/osc --port 7771 # classic dirt
|
npx @strudel/osc --port 7771 # classic dirt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### --debug
|
||||||
|
|
||||||
|
To log all incoming osc messages, add the `--debug` flag:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npx @strudel/osc --debug
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage in Strudel
|
||||||
|
|
||||||
To test it in strudel, you have can use `all(osc)` to send all events through osc:
|
To test it in strudel, you have can use `all(osc)` to send all events through osc:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|
@ -32,7 +44,6 @@ $: s("bd*4")
|
||||||
all(osc)
|
all(osc)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[open in repl](https://strudel.cc/#JDogcygiYmQqNCIpCgphbGwob3NjKQ%3D%3D)
|
||||||
[open in repl](hhttps://strudel.cc/#JDogcygiYmQqNCIpCgphbGwob3NjKQ%3D%3D)
|
|
||||||
|
|
||||||
You can read more about [how to use Superdirt with Strudel the Tutorial](https://strudel.cc/learn/input-output/#superdirt-api)
|
You can read more about [how to use Superdirt with Strudel the Tutorial](https://strudel.cc/learn/input-output/#superdirt-api)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue