• JackPD

    Thanks @reflect_ , in pure data I have the netsend localhost port object for sending messages to a specific port in the localhost, but then in Python I have no idea of how to receive these messages.

    posted in technical issues read more
  • JackPD

    Hi everyone,

    Lately, I've been trying to receive messages from pure data in a python script with the os.system module. I've followed this tutorial, but I don't know how to implement the pd receive command in python with the os.system:

    https://guitarextended.wordpress.com/2012/11/03/make-python-and-pure-data-communicate-on-the-raspberry-pi/

    Is there any simple and efficient solution to receive messages from pure data in python?

    posted in technical issues read more
  • JackPD

    @Greener said:

    Hello @offtandiscord

    I made this for my RP3 and never had this problem, maybe try looking at it or using it, it uses 5 GPIOS and send bangs, but you can make it to send a complex message

    Netsend-Example.py
    Netreceive-example.pd

    Hope it helps :D
    Greener

    How would you make it for receiving messages from puredata in python? I use the same function as you to send messages from python to puredata, but I'm having issues for making the pdreceive function in python.

    posted in technical issues read more
  • JackPD

    Seems interesting what LiamG did with puredata, pretty impressive. For the moment I'm working arround netsend / netreceive in puredata and pdsend and pdreceive in python, this tutorial shows how to send messages from python to puredata via os commands:

    Tutorial

    But now I'm stuck figuring out how to arm the pdreceive function to be able to receive messages from puredata in my python script.
    Any idea about it?

    posted in libpd / webpd read more
  • JackPD

    You mean pvu~ right? Like dxk says, it's the [env~] ----- [- 100]) equivalent in one object. If you want to use the equivalent pvu~ object, you have to download pd-extended, that's what I did and worked in there.

    posted in technical issues read more
  • JackPD

    @weightless Yes, in python is easy to split strings by counting whitespaces:

    >>>data = “'1 1.19'”
    >>>split = data.split(“ “)
    >>>split
    
    [‘1’, 1.19’]
    

    And it will work to with the pack too:

    >>>data = “'1 1.19 2 5.6 3 7.3'”
    >>>split = data.split(“ “)
    >>>split
    
    [‘1’, ’1.19’, ’2’, 5.6’, ’3’, ’7.3’]
    

    The second way I think is better because I have the data always in the same position and I can make a function that take the data from the same position everytime and assign each of them to different variables.

    Maybe this is not the best way of communication, but I think it is pretty solid for its simplicity.

    And again, thanks man for helping me out, this was driving me crazy.

    posted in technical issues read more
  • JackPD

    I've made a receive object and seems that the messages are shown in the order that I've made the three send objects (1 3 2), and the most important, each one in separate messages. That's very interesting.

    Screenshot_2.png

    posted in technical issues read more
  • JackPD

    In case that the three elements are sending values at the same time, will the three be sent separately at different times? I'm reading about the pack and route function in puredata, but your solution it's pretty simple and looks efective, I'm gonna create a netreceive to see what it receives from the netsend.

    posted in technical issues read more
  • JackPD

    Thank you weightless, sounds like a good idea. With this method, will the 3 variables be sent as one big string? If I have the first pvu 10, the second 6 and the third 20 for example, how netsend will send this? Something like 1 10 2 6 3 20?

    posted in technical issues read more

Internal error.

Oops! Looks like something went wrong!