• harpylistens

    hi all,
    i need pure data to read lines from a textfile on my server
    I thought that pyext would be a good solution. however, im having difficulties in writing the script.
    are you able to help me with that? or any other suggestions on how i can get pure data to read lines from a textfile on server?
    thanks

    posted in extra~ read more
  • harpylistens

    hi all

    I am no expert in Python although I can see the wonder it does with Pure Data

    I am looking for a way to use pyext in PD to write user input (on Pure Data) into a textfile and also to be able to read it from the text file (line by line, or character by character) and to display on GEM. I thought it is better to use Python to manipulate text rather than PD.

    I tried with this but it didnt work

    import pyext
    class text(pyext._class):
    _inlets=2
    _outlets=2

    def write(self, *args):
    a = args
    file = open("datafile.txt", "w")
    file.write(a)
    file.close()

    def read(self):
    file = open("datafile.txt", "r")
    filedata = file.read()
    file.close()
    self._outlet(1, filedata)

    It would be great if you someone could guide me as I am pretty desperate for help! its for my Master project.

    posted in extra~ read more
  • harpylistens

    hi all

    i have just downloaded Thomas Grill's pyext package and his scripts work fine and they are brilliant

    Unfortunately, im a newbie when it comes to python...i need a python for dummy book!

    however, id like to know if i am able to write new python scripts to be loaded onto PD with pyext object?
    if yes, how do i do that?

    i tried to write a new one with Xcode and tried to load it with pyext object onto PD but PD could not recognise the script

    could someone help me out pleaseee.... i need it for my Uni project! thank you

    cheersss,,kelly

    posted in extra~ read more

Internal error.

Oops! Looks like something went wrong!