osc instructions

This commit is contained in:
Felix Roos 2022-04-12 22:58:13 +02:00
parent c69af72060
commit c9d7a2f313

View file

@ -1,33 +1,37 @@
# @strudel.cycles/osc # @strudel.cycles/osc
OSC messaging between strudel and super collider? OSC output for strudel patterns! Currently only tested with super collider / super dirt.
## Sniffing Tidal Messages ## Usage
```sh OSC will only work if you run the REPL locally + the OSC server besides it:
npm run tidal-sniffer
From the project root:
```js
npm run repl
``` ```
Now open a .tidal file and play something. There should be logs like: and in a seperate shell:
```js
npm run osc
```
This should give you
```log ```log
received: /dirt/play [ osc client running on port 57120
'_id_', '1', osc server running on port 57121
'cps', 0.5625, websocket server running on port 8080
'cutoff', 100,
'cycle', 724.1875,
'delta', 0.11111068725585938,
'orbit', 0,
's', 'arpy'
]
``` ```
## Web Client + Server (WIP) Now open Supercollider (with the super dirt startup file)
```sh Now open the REPL and type:
npm run client
npm run server # another terminal ```js
s("<bd sd> hh").osc()
``` ```
Then go to [http://localhost:4321](localhost:4321) and push the button. or just [click here](http://localhost:3000/#cygiPGJkIHNkPiBoaCIpLm9zYygp)...
In your server terminal, there should be a log.