<?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[Netreceive 3000 &#x2F; Send2Pd on strike?]]></title><description><![CDATA[<p><img src="/uploads/files/1618955168064-schermata-2021-04-20-alle-23.40.49.png" alt="Schermata 2021-04-20 alle 23.40.49.png" class="img-responsive img-markdown" /> Hello! i need help for a weird issue with Netreceive which is receiving messages from Send2Pd of  a Python script.<br />
in the past i followed this article <a href="https://guitarextended.wordpress.com/2012/11/03/make-python-and-pure-data-communicate-on-the-raspberry-pi/" rel="nofollow">https://guitarextended.wordpress.com/2012/11/03/make-python-and-pure-data-communicate-on-the-raspberry-pi/</a><br />
and i was receiving the messages (i received a nice Bang every time the code on python was running)</p>
<p>Now Puredata doesn't seem to receive the messages anymore but i'm using the same patch/ same script!<br />
This is totally weird to me and i can't really understand why. It looks like they are on 2 different worlds.<br />
This is probably something very stupid but indeed i need help!<br />
What could be now the obstacle?<br />
thanks for any help!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Nov 2026 08:18:08 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/13411.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 Apr 2021 21:47:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Netreceive 3000 &#x2F; Send2Pd on strike? on Tue, 20 Apr 2021 21:59:58 GMT]]></title><description><![CDATA[<p><img src="/uploads/files/1618955168064-schermata-2021-04-20-alle-23.40.49.png" alt="Schermata 2021-04-20 alle 23.40.49.png" class="img-responsive img-markdown" /> Hello! i need help for a weird issue with Netreceive which is receiving messages from Send2Pd of  a Python script.<br />
in the past i followed this article <a href="https://guitarextended.wordpress.com/2012/11/03/make-python-and-pure-data-communicate-on-the-raspberry-pi/" rel="nofollow">https://guitarextended.wordpress.com/2012/11/03/make-python-and-pure-data-communicate-on-the-raspberry-pi/</a><br />
and i was receiving the messages (i received a nice Bang every time the code on python was running)</p>
<p>Now Puredata doesn't seem to receive the messages anymore but i'm using the same patch/ same script!<br />
This is totally weird to me and i can't really understand why. It looks like they are on 2 different worlds.<br />
This is probably something very stupid but indeed i need help!<br />
What could be now the obstacle?<br />
thanks for any help!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike</guid><dc:creator><![CDATA[nhouse]]></dc:creator><pubDate>Tue, 20 Apr 2021 21:59:58 GMT</pubDate></item><item><title><![CDATA[Reply to Netreceive 3000 &#x2F; Send2Pd on strike? on Wed, 21 Apr 2021 06:55:29 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/nhouse">@nhouse</a> The port could be blocked by security (antivirus?) or the firewall or in use by another program.<br />
If it is a localhost port then being already in use is most likely.<br />
I assume you are using Linux as using python.<br />
In a terminal you can check port status with &quot;netstat -a&quot;<br />
You should see either localhost:3000 listen or 0.0.0.0:3000 listen...... which will tell you that the port is listening.<br />
Unfortunately it doesn't tell you which program opened the port.<br />
Maybe run netstat before opening the patch to see if the port is already in use......... and then run the patch to see whether Pd has opened the listening port.<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/2</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Wed, 21 Apr 2021 06:55:29 GMT</pubDate></item><item><title><![CDATA[Reply to Netreceive 3000 &#x2F; Send2Pd on strike? on Wed, 21 Apr 2021 07:57:13 GMT]]></title><description><![CDATA[<p>chenged port and it doesn't change anything.<br />
also, &quot;netstat -a&quot;, shows that the port 3000 was free.</p>
<p>if someone would be so kind to try this on their computer, i uploaded the 2 patches on  github:<br />
<a href="https://github.com/Nhouse111/Python_to_Puredata.git" rel="nofollow">https://github.com/Nhouse111/Python_to_Puredata.git</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/3</guid><dc:creator><![CDATA[nhouse]]></dc:creator><pubDate>Wed, 21 Apr 2021 07:57:13 GMT</pubDate></item><item><title><![CDATA[Reply to Netreceive 3000 &#x2F; Send2Pd on strike? on Wed, 21 Apr 2021 08:30:24 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/nhouse">@nhouse</a> said:</p>
<blockquote>
<p><a href="https://github.com/Nhouse111/Python_to_Puredata.git" rel="nofollow">https://github.com/Nhouse111/Python_to_Puredata.git</a></p>
</blockquote>
<p>Tested and It works on OSX, as soon as you put the same port number (your script has 6000 and your pd patch have 3000 in your exemple)</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/4</guid><dc:creator><![CDATA[60hz]]></dc:creator><pubDate>Wed, 21 Apr 2021 08:30:24 GMT</pubDate></item><item><title><![CDATA[Reply to Netreceive 3000 &#x2F; Send2Pd on strike? on Wed, 21 Apr 2021 16:04:24 GMT]]></title><description><![CDATA[<p><img src="/uploads/files/1619020870777-schermata-2021-04-21-alle-17.57.29.png" alt="Schermata 2021-04-21 alle 17.57.29.png" class="img-responsive img-markdown" /> <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/60hz">@60hz</a> yes was a mistake when i saved the patch for the test.<br />
As i imagined. (all this stopped working at same point, now they are not working neither on my macbook nor on the Raspberry Pi.<br />
no idea what is blocking such communication. It really could be a strike?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/5</guid><dc:creator><![CDATA[nhouse]]></dc:creator><pubDate>Wed, 21 Apr 2021 16:04:24 GMT</pubDate></item><item><title><![CDATA[Reply to Netreceive 3000 &#x2F; Send2Pd on strike? on Wed, 21 Apr 2021 17:59:44 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/nhouse">@nhouse</a> Maybe python cannot actually find the pdsend binary?<br />
Does it need to be copied from Pd/bin into a folder known to python or registered somehow with the OS?<br />
So has that link (Python finding pdsend.linux) been broken when updating Python for your original setup and not made at all (pdsend.darwin) for your OSX test?<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/6</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Wed, 21 Apr 2021 17:59:44 GMT</pubDate></item><item><title><![CDATA[Reply to Netreceive 3000 &#x2F; Send2Pd on strike? on Wed, 21 Apr 2021 18:37:56 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> said:</p>
<blockquote>
<p>Maybe python cannot actually find the pdsend binary?</p>
</blockquote>
<p>Maybe yes, under OSX, I changed to an absolute path in order to make it work actually...</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/7</guid><dc:creator><![CDATA[60hz]]></dc:creator><pubDate>Wed, 21 Apr 2021 18:37:56 GMT</pubDate></item><item><title><![CDATA[Reply to Netreceive 3000 &#x2F; Send2Pd on strike? on Thu, 22 Apr 2021 07:51:46 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> i thought about a similar issue, but i really don't know how to check or fix!<br />
i have tried:</p>
<ul>
<li>old mac/same puredata/same python 3.8</li>
<li>old raspberry(linux)/python 3.7</li>
<li>freshly new installed Raspberry/python 3.9</li>
<li>new mac/new puredata/new python3.9</li>
<li>new mac/new puredata/new python2.7</li>
</ul>
<p>i'm thinking that maybe i'm doing something wrong because i tried to run the Pd patch and the python script on a different computer (again mac) but it doesn't work.</p>
<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/60hz">@60hz</a> can you tell me what you have done to change to an absolute path?<br />
do you get the bang message in the Puredata window as intended?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/8</guid><dc:creator><![CDATA[nhouse]]></dc:creator><pubDate>Thu, 22 Apr 2021 07:51:46 GMT</pubDate></item><item><title><![CDATA[Reply to Netreceive 3000 &#x2F; Send2Pd on strike? on Thu, 22 Apr 2021 10:47:13 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/nhouse">@nhouse</a><br />
Under OSX, I just replaced the os.system line with:</p>
<p>os.system(&quot;echo '&quot; + message + &quot;' | /Users/path_to_pure_data/PureData.app/Contents/Resources/bin/pdsend 3000&quot;)</p>
<p>And yes, the bang came into pd for me</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/9</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/9</guid><dc:creator><![CDATA[60hz]]></dc:creator><pubDate>Thu, 22 Apr 2021 10:47:13 GMT</pubDate></item><item><title><![CDATA[Reply to Netreceive 3000 &#x2F; Send2Pd on strike? on Thu, 22 Apr 2021 11:04:45 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/60hz">@60hz</a> it works! so that was really the issue! will try to understand the reason now (and eventually how to fix it)<br />
thanks to both of you! <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/10</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/10</guid><dc:creator><![CDATA[nhouse]]></dc:creator><pubDate>Thu, 22 Apr 2021 11:04:45 GMT</pubDate></item><item><title><![CDATA[Reply to Netreceive 3000 &#x2F; Send2Pd on strike? on Tue, 16 Nov 2021 13:12:25 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>trying to figure this out too. Followed the same tutorial. Nothing happens.</p>
<p>I am on OSX 10.14.6 Mojave running Pd 0.51-4</p>
<p>netstat -a ---&gt;</p>
<pre><code>tcp46      0      0  *.hbci                 *.*                    LISTEN     
tcp4       0      0  localhost.51108        localhost.51109        ESTABLISHED
tcp4       0      0  localhost.51109        localhost.51108        ESTABLISHED
tcp6       0      0  localhost.51108        *.*                    LISTEN     
tcp6       0      0  localhost.51108        *.*                    LISTEN     
tcp4       0      0  localhost.51108        *.*                    LISTEN     
tcp4       0      0  192.168.100.86.51101   dj-in-f95.1e100..https ESTABLISHED
</code></pre>
<p>Python code:</p>
<pre><code>import os

#write code here

def send2Pd (message=''):
    
    # os.system(&quot;echo '&quot; + message + &quot;' | pdsend 3000&quot;)
    
    #quoted out above and replaced with:

    os.system(&quot;echo '&quot; + message + &quot;' | /Nicklas/Applications/Pd-0.51-4.app/Contents/Resources/bin/pdsend 3000&quot;)


def audioOn():
    message = '0 1;' #Id = 0 (DSP), message=1 (turn it on)
    send2Pd(message)

def setVolume():
   vol = 80 #Set volume value (0-100)
   message = '1' + str(vol) + ';' # make a string for use with psend
   send2Pd(message)

print (&quot;send to Pd done?&quot;)
</code></pre>
<p>Pd code</p>
<p><img src="/uploads/files/1637068309177-pd_n_python.png" alt="Pd_n_Python.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/11</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/11</guid><dc:creator><![CDATA[cfry]]></dc:creator><pubDate>Tue, 16 Nov 2021 13:12:25 GMT</pubDate></item><item><title><![CDATA[Reply to Netreceive 3000 &#x2F; Send2Pd on strike? on Wed, 17 Nov 2021 05:54:55 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/cfry">@cfry</a> I am seldom an OSX user........ but maybe the path should be........<br />
/Users/Nicklas/Applications/Pd-0.51-4.app/Contents/Resources/bin/pdsend 3000<br />
...... i.e the path from root (C:/ ?) ...... as in a previous post?<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/12</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/12</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Wed, 17 Nov 2021 05:54:55 GMT</pubDate></item><item><title><![CDATA[Reply to Netreceive 3000 &#x2F; Send2Pd on strike? on Tue, 16 Nov 2021 19:36:55 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> actually this is the absolute path</p>
<pre><code>/Applications/Pd-0.51-4.app/Contents/Resources/bin/pdsend
</code></pre>
<p>that is what I get when I drag pdsend to Terminal</p>
<p>Is there some flag I should use in Pd?</p>
<p>I noticed that when I open the help patch and try it while already started my patch, Pd log window reports that [netreceive] channel is already active. So something is happening, at least.</p>
<p><img src="/uploads/files/1637091119738-taken.png" alt="taken.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/13</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/13</guid><dc:creator><![CDATA[cfry]]></dc:creator><pubDate>Tue, 16 Nov 2021 19:36:55 GMT</pubDate></item><item><title><![CDATA[Reply to Netreceive 3000 &#x2F; Send2Pd on strike? on Tue, 16 Nov 2021 21:32:01 GMT]]></title><description><![CDATA[<p>It looks like you forgot to call your functions at then end of your script. So simply adding those lines before print make it work for me:</p>
<p>audioOn();<br />
setVolume();</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/14</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/14</guid><dc:creator><![CDATA[60hz]]></dc:creator><pubDate>Tue, 16 Nov 2021 21:32:01 GMT</pubDate></item><item><title><![CDATA[Reply to Netreceive 3000 &#x2F; Send2Pd on strike? on Wed, 17 Nov 2021 05:58:16 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/cfry">@cfry</a> Yes........ your patch has made the connection....... but when you open the help patch it contains another [netreceive] with the same address........ 3000..... so the terminal tells you that the port is already open in your patch.<br />
You can avoid that by using a different port in your patch.<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/15</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/15</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Wed, 17 Nov 2021 05:58:16 GMT</pubDate></item><item><title><![CDATA[Reply to Netreceive 3000 &#x2F; Send2Pd on strike? on Wed, 17 Nov 2021 17:54:30 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/60hz">@60hz</a> Well, that was easy! Thanks!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/16</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13411/netreceive-3000-send2pd-on-strike/16</guid><dc:creator><![CDATA[cfry]]></dc:creator><pubDate>Wed, 17 Nov 2021 17:54:30 GMT</pubDate></item></channel></rss>