This repository has been archived by the owner on Oct 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Home
Alex McLean edited this page Jul 9, 2020
·
13 revisions
Welcome to the tidal-listener wiki!
This is a work-in-progress and the below is not yet implemented.
Basic protocol ideas (>
, incoming message <
, outgoing message)
> /ping
< /pong
run code, get ok or errors back
> /code <id> <source>
< /code/ok
or
< /code/error <id> <error message>
Set a name (optional, doesn't have to be unique)
> /name <name>
< /name/ok
'Expand' an expression into canonical mininotation, ref https://github.com/tidalcycles/Tidal/issues/633
< /expand <code>
> /expand/ok <expanded code>
Set port listening to replies (if not the sending port)
> /port <number>
< /port/ok
Set highlights on, get stream of active code spans+durations back (or set it off again)
> /highlights/on
< /highlights/on ok
> /highlights/off
< /highlights/off ok
< /code/highlight <duration> <cycle position> <row> <col> <row> <col>
get current cps
> /cps
< /cps <number>
set cps
> /cps/set <number>
< /cps/set ok
< /cps <number> - sent to all clients ?
Show which patterns are playing/currently active:
> /nowplaying/ <d1?>
< /nowplaying/ true/false -- add highlighting to variables currently active?
We probably need a way to add an identifier to incoming commands that gets added to outgoing commands, to help clients match up replies.