<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[WEBSOCKET-SERVER IN A PATCH for Pd-extended (with demo)]]></title><description><![CDATA[<p>This single pd patch file contains a reusable and fully documented websocket server, meant as an easy way to experiment with Pd&lt;-&gt;web-browsers communications through websockets, without the need of other software or any external to compile.</p>
<p>A demo is included in the same patch : 'Flames', a simple cross-browser, multi-touch and multi-player graphical interface which makes Pd play creepy sounds <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /> and its javascript code for websockets is also documented.</p>
<p>Just try it : open it with Pd-extended 0.43.4 on Windows, Mac or Linux, fire any recent web-browsers (on same machine or other computer, smartphone or tablet on same local network) with the URL provided in the main window, and you're good to go !</p>
<p>Feel free to improve it and to let me know of eventual projects based on it.</p>
<p>(i've added a basic tutorial in a post below)</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/websocket-server-in-a-patch.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/websocket-server-in-a-patch.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8037/websocket-server-in-a-patch-for-pd-extended-with-demo</link><generator>RSS for Node</generator><lastBuildDate>Fri, 22 May 2026 01:28:25 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/8037.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 18 Jan 2014 18:21:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WEBSOCKET-SERVER IN A PATCH for Pd-extended (with demo) on Sat, 18 Jan 2014 18:21:51 GMT]]></title><description><![CDATA[<p>This single pd patch file contains a reusable and fully documented websocket server, meant as an easy way to experiment with Pd&lt;-&gt;web-browsers communications through websockets, without the need of other software or any external to compile.</p>
<p>A demo is included in the same patch : 'Flames', a simple cross-browser, multi-touch and multi-player graphical interface which makes Pd play creepy sounds <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /> and its javascript code for websockets is also documented.</p>
<p>Just try it : open it with Pd-extended 0.43.4 on Windows, Mac or Linux, fire any recent web-browsers (on same machine or other computer, smartphone or tablet on same local network) with the URL provided in the main window, and you're good to go !</p>
<p>Feel free to improve it and to let me know of eventual projects based on it.</p>
<p>(i've added a basic tutorial in a post below)</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/websocket-server-in-a-patch.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/websocket-server-in-a-patch.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8037/websocket-server-in-a-patch-for-pd-extended-with-demo</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/8037/websocket-server-in-a-patch-for-pd-extended-with-demo</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 18 Jan 2014 18:21:51 GMT</pubDate></item><item><title><![CDATA[Reply to WEBSOCKET-SERVER IN A PATCH for Pd-extended (with demo) on Sat, 18 Jan 2014 22:52:31 GMT]]></title><description><![CDATA[<p>I look forward to trying this out!! thanks!! i will let you know how it works out <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":-)" alt=":-)" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8037/websocket-server-in-a-patch-for-pd-extended-with-demo/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/8037/websocket-server-in-a-patch-for-pd-extended-with-demo/2</guid><dc:creator><![CDATA[onyxashanti]]></dc:creator><pubDate>Sat, 18 Jan 2014 22:52:31 GMT</pubDate></item><item><title><![CDATA[Reply to WEBSOCKET-SERVER IN A PATCH for Pd-extended (with demo) on Sat, 18 Jan 2014 23:44:49 GMT]]></title><description><![CDATA[<p>Wow, really cool stuff!</p>
<p>That's it for building nice GUI's for pd like that:<br />
<a href="http://kievii.net/index.html" rel="nofollow">http://kievii.net/index.html</a>#</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8037/websocket-server-in-a-patch-for-pd-extended-with-demo/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/8037/websocket-server-in-a-patch-for-pd-extended-with-demo/3</guid><dc:creator><![CDATA[Gromit]]></dc:creator><pubDate>Sat, 18 Jan 2014 23:44:49 GMT</pubDate></item><item><title><![CDATA[Reply to WEBSOCKET-SERVER IN A PATCH for Pd-extended (with demo) on Tue, 22 Jul 2014 23:32:10 GMT]]></title><description><![CDATA[<p>Thanks !</p>
<p>For those who want to make their own webpage (i realize that the demo's javascript code is a bit difficult to navigate), here is how to make the very first steps with the server :</p>
<ol>
<li>
<p>remove all the demo at the bottom of main window ([pd flames-demo-webapp] and description, [pd output~] and the 'waveform' table)</p>
</li>
<li>
<p>connect a [print] object to the output of lowest object [tof/from_ascii_code -1]</p>
</li>
<li>
<p>create, connected top to bottom in that order : message [hello( , object [tof/to_ascii_code], and an object</p>
</li>
</ol>
<p>itself connected to first inlet of [pd websocket-server]</p>
<ol start="4">
<li>type this code in a notepad (or any editor in raw text mode) et save it :</li>
</ol>
<p>&lt;html&gt;&lt;body&gt;&lt;script&gt;<br />
var websocket=new WebSocket('ws://127.0.0.1:9998');<br />
websocket.onmessage=function(event){websocket.send(event.data+&quot;!!!&quot;);};<br />
&lt;/script&gt;&lt;/body&gt;&lt;/html&gt;</p>
<ol start="5">
<li>rename the resulting file with a .html extension then open it in a web browser on same machine. Nothing is displayed (this is normal) but you should get a '1' value from 3rd outlet of [pd websocket-server]</li>
</ol>
<p>Now, when you click on [hello( message, the browser should return a message 'hello!!!', printed in Pd console. You may start by replacing 'hello' by another message...</p>
<p>Then you can try to modify the javascript code (just remember to refresh the webpage in browser once you have saved your modified .html file)</p>
<p>If you understand how this tiny piece of javascript works, then you have the basics to make a more interesting web page <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8037/websocket-server-in-a-patch-for-pd-extended-with-demo/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/8037/websocket-server-in-a-patch-for-pd-extended-with-demo/4</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Tue, 22 Jul 2014 23:32:10 GMT</pubDate></item><item><title><![CDATA[Reply to WEBSOCKET-SERVER IN A PATCH for Pd-extended (with demo) on Mon, 20 Jan 2014 08:13:43 GMT]]></title><description><![CDATA[<p>I also found this:<br />
<a href="https://github.com/automata/osc-web" rel="nofollow">https://github.com/automata/osc-web</a><br />
It's a Demo with a node.js (proxy) in between.</p>
<p>Your guess-local-ip part is a neat trick!<br />
cheers</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8037/websocket-server-in-a-patch-for-pd-extended-with-demo/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/8037/websocket-server-in-a-patch-for-pd-extended-with-demo/5</guid><dc:creator><![CDATA[Gromit]]></dc:creator><pubDate>Mon, 20 Jan 2014 08:13:43 GMT</pubDate></item></channel></rss>