The pieces / weirdnet-songnotes

weirdnet-songnotesnew

SongNotes collaboration: the roles, permissions, links, consent requests and session transport for a SongNotes session, built on weirdnet-collab.

v0.11.0 GitHub crates.io docs.rs weirdnet-songnotes = "0.11.0"

What it is

The rules engine is weirdnet-collab; this crate fixes what SongNotes means by a role and a permission.

Key types and modules

  • Roles: Host, Editor, Engineer, Viewer (the default for a new invitee) and Listener, with the permission catalog in perm. Recording someone’s audio, connecting to it, and recording the talkback need that audio owner’s consent; talking needs the local mic switch.
  • Links: weirdnet-songnotes://join/<token> joins a session; weirdnet-songnotes://collab/<project>/<panel> opens a panel of a project. Both parse and print.
  • Session: start a session, share a link, let people in (directly or after the host approves), ask can or explain (the reason chain), and turn a “needs consent” answer into a ConsentRequest the audio owner can accept. Session::standalone and quick_link give a single host.
  • transport: the session host is the clock master. Followers learn their clock offset from the exchange with the shortest round trip and read the plan in beats, so each app maps beats to its own frames; followers report themselves ready and may ask for start, stop, locate or tempo if they hold transport.control. It runs on /songnotes/transport, served and called through weirdnet-service.

Usage

[dependencies]
weirdnet-songnotes = "0.11.0"

Where it fits

Version 0.11.0 is on crates.io (docs.rs, repository).