You can try baton: a Python OSC <-> websocket server. The examples are Pd + basic HTML+JS.
https://github.com/zkmkarlsruhe/baton
On Jan 10, 2025, at 4:30 PM, Winfried Ritsch ritsch@iem.at wrote:
Trying to find "best practices" to control a Pd application via HTML5 or javascript or the like. There is probably solution with Pd as server and (simple to handle) middleware as web-server in between and Pd and browser.
As Example usage to clarify the need:
Providing a Web user interface (GUI) for a synthesizer with a lot of parameter running on a headless embedded Linux computer only connected with MIDI keyboard over an Ethernet interface for network connection. The logic of UI should be done within the Webpage volume, program change, ... and also key-press should be monitored.
Description of any use case and suggestion is appreciated.
The goal is to compile different recipes, solutions for comparison and helping to make development decisions. Examples and solution with open Source and free software are appreciated.
mfg winfried
--
- ao.Univ.Prof. DI Winfried Ritsch
- ritsch@iem.at - http://iem.at/ritsch
- Institut fuer Elektronische Musik und Akustik
- University of Music and Dramatic Art Graz
- Tel. ++43-316-389-3510 (3170) Fax ++43-316-389-3171
- mobile: 0043 664 2439369
pd-dev@lists.iem.at - the Pd developers' mailinglist https://lists.iem.at/hyperkitty/list/pd-dev@lists.iem.at/message/Y5MMV2WO4MO...
-------- Dan Wilcox danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/