Because for some reason my program still isn't working I'd really like some samples of how to do it properly.
Floris Groen
Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com
this kind of script works fine on Linux :
echo "hello joe;" | pdsend 4200 localhost udp
maybe, by studying pdsend code, you can make it. the trick is really to end your messages with ';'
cheers,
sevy/yves
Floris Groen wrote:
Because for some reason my program still isn't working I'd really like some samples of how to do it properly.
Floris Groen
Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
Yep, and in Windows, you should be able to run "pdsend" on a command prompt and just type "hello joe;" into it.
cheers Miller
On Thu, Aug 15, 2002 at 03:20:12PM +0200, Yves Degoyon wrote:
this kind of script works fine on Linux :
echo "hello joe;" | pdsend 4200 localhost udp
maybe, by studying pdsend code, you can make it. the trick is really to end your messages with ';'
cheers,
sevy/yves
Floris Groen wrote:
Because for some reason my program still isn't working I'd really like some samples of how to do it properly.
Floris Groen
Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
Yikes,
Apparently there's no"pdsend" in teh windows version. My windows machine is on the road at the moment so I can't look into it right now. But the source code (u_pdsend.c) ought to be there, and to compile to a standalone "command prompt" program...
cheers Miller
On Thu, Aug 15, 2002 at 05:51:56AM -0700, Floris Groen wrote:
Because for some reason my program still isn't working I'd really like some samples of how to do it properly.
Floris Groen
Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
is there any kind of device to go back one sample of an incoming wave
file?
scott
"640K ought to be enough for anybody." -- Bill Gates, 1981
Hi, J. Scott Hildebrand hat gesagt: // J. Scott Hildebrand wrote:
is there any kind of device to go back one sample of an incoming wave file?
A delay? I'm not sure, what exactly you want this for.
Frank Barknecht _ ______footils.org__
Apparently there's no"pdsend" in teh windows version. My windows machine is on the road at the moment so I can't look into it right now. But the source code (u_pdsend.c) ought to be there, and to compile to a standalone "command prompt" program...
I alsoneed this program so I tried to compile it tonight in MSVC 6 (it needs to be linked to wsock32.lib, I assume). Compiling was not without a fight. It breaks at:
void closesocket(int fd); with error C2373: 'closesocket' : redefinition; different type modifiers
Changing the name 'closesocket'solves the problem (erm.. is it the right solution?) but when I try to send to PD netreceive patch (the one in the reference folder) with pdsend 3000 127.0.0.1 tcp "foo;" I get Socket(): Unknown error 10093
According to www.sockets.com this may mean that "the network subsystem is misconfigured or inactive" - which it isn't (AFAIK). Can it be a Windows XP thing?
I am still quite a novice in this programming/compiling field - so be gentle if I am missing the obvious.
Take care
Soeren
HI Soeren,
Thanks for catching the closesocket() name clash... I would have hit that one pretty soon myself!
I don't see anything wrong with what you did (but "foo;" will do nothing ... instead of the command line write "foo hi there;" to the program's input (on the command prompt window) once it's running.
Maybe, just maybe, it needs "localhost" or <machine name> instead of 127.0.0.1, but that's just a desperate guess. If Pd ruins at all, then "10093" can't just mean "sorry, no network"... because Pd uses exactly the same mechanism to talk to its own GUI.
baffled...
Miller
On Fri, Aug 16, 2002 at 09:38:33PM +0200, Søren Bovbjerg wrote:
Apparently there's no"pdsend" in teh windows version. My windows machine is on the road at the moment so I can't look into it right now. But the source code (u_pdsend.c) ought to be there, and to compile to a standalone "command prompt" program...
I alsoneed this program so I tried to compile it tonight in MSVC 6 (it needs to be linked to wsock32.lib, I assume). Compiling was not without a fight. It breaks at:
void closesocket(int fd); with error C2373: 'closesocket' : redefinition; different type modifiers
Changing the name 'closesocket'solves the problem (erm.. is it the right solution?) but when I try to send to PD netreceive patch (the one in the reference folder) with pdsend 3000 127.0.0.1 tcp "foo;" I get Socket(): Unknown error 10093
According to www.sockets.com this may mean that "the network subsystem is misconfigured or inactive" - which it isn't (AFAIK). Can it be a Windows XP thing?
I am still quite a novice in this programming/compiling field - so be gentle if I am missing the obvious.
Take care
Soeren
Maybe, just maybe, it needs "localhost" or <machine name> instead of 127.0.0.1, but that's just a desperate guess.
Perhaps. I tried several combinations of ports, localhost, hostname, 127.0.0.1, tcp, udp and so on which either gives me the 10093 error or prints the usage info.
Cheers Soeren
Hi,
working on something different I accidentally found the solution for the u_pdsend problem. On Win one has to init the ws2_32.dll first before using any socket functions.
Attached you'll find the adjusted code. To send data to Pd one has to type something like "; foo bla 17.3" when the program is running...
Olaf
Søren Bovbjerg schrieb:
Maybe, just maybe, it needs "localhost" or <machine name> instead of 127.0.0.1, but that's just a desperate guess.
Perhaps. I tried several combinations of ports, localhost, hostname, 127.0.0.1, tcp, udp and so on which either gives me the 10093 error or prints the usage info.
Cheers Soeren
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
Hi all,
I was recently told there's a problem opening the pd examples that come with framestein due to spaces in filenames. They have always worked fine with me though, so,
Was this a problem in earlier version of pd? Which one?
Could it be os-dependent (win98/me/nt/2000) or to some other factor that pd itself?
thanks, Juha
Maybe someone needs,
a primitive python function in a script to send messeages to pd, its done for the Zope server as External method, so you can control pd over Zope or use it in an main function.
-------- cut --------------------- ## Script (Python) ## parameters = REQUEST, pdhost, pdport, pdmessage ## ##!/usr/bin/python
"""Import socket library, create a socket connection in TCP and send data to pd which should have a netreceive to get the message """
import socket
def sendpd(pdhost='seneca.iemnet',pdport=4000,pdmessage='nothing special;'):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((pdhost, pdport))
s.send(pdmessage)
s.close()
return pdmessage
-------- cut ----------------------
mfg winfried ritsch
I've done it succesfully in tcl using tcl/tk using this format:
;message;
Ben
On Thu, 15 Aug 2002, Floris Groen wrote:
Because for some reason my program still isn't working I'd really like some samples of how to do it properly.
Floris Groen
Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list