Browser patch editor for Pure Data #1

Closed
opened 2026-11-05 03:19:48 +00:00 by david · 0 comments
Owner

Build a web frontend for Pure Data on top of Dragology.

Goal

Open a .pd file in the browser, move boxes and wire cords by dragging, save it back as a file Pd will load.

Done

  • Byte-exact .pd parse/serialise (comments count in the connect index space; ;; differs from a blank line)
  • Drag boxes with d.vary
  • Pull cords from outlets with d.closest(...).whenFar(vary) — snaps to the nearest inlet, cancels on empty space
  • Add and delete objects
  • Grid snap on drop
  • Verify edited patches load in pd -nogui without new complaints
  • WebSocket bridge: save + run in pd, stream pd's output, send messages over UDP/FUDI
  • Flag records Pd will reject instead of silently keeping them

Not yet

  • Edit an object's text in place
  • Undo/redo
  • Navigate into subpatches
  • Re-patch an existing cord by dragging its destination end

Found along the way

synth.pd in the uno-q-audio-synth project (and its generator) emits # DO NOT EDIT ...;, which Pd rejects with error: #: no such object. A comment has to be written as #X text x y .... The editor preserves the line and shows a warning.

Build a web frontend for Pure Data on top of [Dragology](https://declarative-dragging.github.io/). ## Goal Open a `.pd` file in the browser, move boxes and wire cords by dragging, save it back as a file Pd will load. ## Done - [x] Byte-exact `.pd` parse/serialise (comments count in the connect index space; `;;` differs from a blank line) - [x] Drag boxes with `d.vary` - [x] Pull cords from outlets with `d.closest(...).whenFar(vary)` — snaps to the nearest inlet, cancels on empty space - [x] Add and delete objects - [x] Grid snap on drop - [x] Verify edited patches load in `pd -nogui` without new complaints - [x] WebSocket bridge: save + run in pd, stream pd's output, send messages over UDP/FUDI - [x] Flag records Pd will reject instead of silently keeping them ## Not yet - [ ] Edit an object's text in place - [ ] Undo/redo - [ ] Navigate into subpatches - [ ] Re-patch an existing cord by dragging its destination end ## Found along the way `synth.pd` in the uno-q-audio-synth project (and its generator) emits `# DO NOT EDIT ...;`, which Pd rejects with `error: #: no such object`. A comment has to be written as `#X text x y ...`. The editor preserves the line and shows a warning.
david closed this issue 2026-11-05 03:19:57 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: david/dragology-pd#1