<?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[webpd slider onchange]]></title><description><![CDATA[<p>I`ve just started using webpd and I would be happy if someone showed me how to properly write a very simple HTML &amp; javascript code connected to the pd patch, which has a slider that fires the moment when the value of the element is changed.</p>
<p>&lt;!doctype HTML&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta charset=&quot;utf-8&quot;&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;../js/jquery-2.1.0.min.js&quot;&gt;&lt;/script&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;../js/webpd-latest.js&quot;&gt;&lt;/script&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;../js/elindit.js&quot;&gt;&lt;/script&gt;<br />
&lt;/head&gt;</p>
<p>&lt;body&gt;</p>
<pre><code>&lt;button id=&quot;startButton&quot;&gt;Start&lt;/button&gt;

&lt;div id=&quot;controls&quot;&gt;
  &lt;form&gt;
    &lt;input type=&quot;text&quot; id=&quot;freqInput&quot; /&gt;
    &lt;input type=&quot;submit&quot; value=&quot;Set frequency&quot; /&gt;
  &lt;/form&gt;
&lt;/div&gt;


&lt;script type=&quot;text/javascript&quot;&gt;
  
  webPdLali.init()

  $('form').submit(function(event) {
    event.preventDefault()
    Pd.send('freq', [parseFloat($('#freqInput').val())])
  })

  var patch
  $.get('pd/main.pd', function(mainStr) {
    // Loading the patch
    patch = Pd.loadPatch(mainStr)

    webPdLali.patchLoaded(mainStr)
  })

&lt;/script&gt;
</code></pre>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12014/webpd-slider-onchange</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 16:13:37 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/12014.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 23 Apr 2019 20:44:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to webpd slider onchange on Mon, 29 Apr 2019 23:13:15 GMT]]></title><description><![CDATA[<p>I`ve just started using webpd and I would be happy if someone showed me how to properly write a very simple HTML &amp; javascript code connected to the pd patch, which has a slider that fires the moment when the value of the element is changed.</p>
<p>&lt;!doctype HTML&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta charset=&quot;utf-8&quot;&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;../js/jquery-2.1.0.min.js&quot;&gt;&lt;/script&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;../js/webpd-latest.js&quot;&gt;&lt;/script&gt;<br />
&lt;script type=&quot;text/javascript&quot; src=&quot;../js/elindit.js&quot;&gt;&lt;/script&gt;<br />
&lt;/head&gt;</p>
<p>&lt;body&gt;</p>
<pre><code>&lt;button id=&quot;startButton&quot;&gt;Start&lt;/button&gt;

&lt;div id=&quot;controls&quot;&gt;
  &lt;form&gt;
    &lt;input type=&quot;text&quot; id=&quot;freqInput&quot; /&gt;
    &lt;input type=&quot;submit&quot; value=&quot;Set frequency&quot; /&gt;
  &lt;/form&gt;
&lt;/div&gt;


&lt;script type=&quot;text/javascript&quot;&gt;
  
  webPdLali.init()

  $('form').submit(function(event) {
    event.preventDefault()
    Pd.send('freq', [parseFloat($('#freqInput').val())])
  })

  var patch
  $.get('pd/main.pd', function(mainStr) {
    // Loading the patch
    patch = Pd.loadPatch(mainStr)

    webPdLali.patchLoaded(mainStr)
  })

&lt;/script&gt;
</code></pre>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12014/webpd-slider-onchange</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12014/webpd-slider-onchange</guid><dc:creator><![CDATA[NilaTrikona]]></dc:creator><pubDate>Mon, 29 Apr 2019 23:13:15 GMT</pubDate></item></channel></rss>