• Jose


    I want to send some variables from a program wrote in c++ to pd. How can I do that?


    posted in technical issues read more
  • Jose

    Hi all,

    I am trying to use the keyboard with fullscreen(gemwin_mess fullscreen $1) mode. when fullscreen mode is off, gemkeyname works ok, but when i have fullcreen mode, the kerboard doesn´t work. i have tried also with gemkeyboard without positive results.
    technical info: fedora 3, ibm t40, ati radeon 7500, pd 0.37.1, GEM 0.90

    any sugestions, thanks in advance

    posted in pixel# read more
  • Jose

    i am using the command key. it works properly when the fullscreen function is on. i used sockets to send the info from c.

    alejandro lopez

    posted in pixel# read more
  • Jose

    For this code I used the src from pd. This lines are written in c and they create, communicate and write info to a socket. I added a ';' at the end of the string that is generated from the interaction with the keyboard. That allows to send the info to pd. the patch with netreceive has to be open in pd otherwise the socket won't be created. It was written in fc3.

    #include <sys/types.h>
    #include <string.h>
    #include <stdio.h>
    #include <errno.h>
    #include <stdlib.h>
    #include <sys/socket.h>
    #include <netinet/in.h>
    #include <netinet/tcp.h>
    #include <netdb.h>
    #include <stdio.h>
    #include <unistd.h>
    #define SOCKET_ERROR -1
    #define BUFSIZE 4096
    int main(int argc, char **argv)
        int sockfd, portno=3000, protocol;
        struct sockaddr_in server;
        struct hostent *hp;
        char *hostname;
        hostname = "";
        protocol = SOCK_STREAM;
        sockfd = socket(AF_INET, protocol, 0);
        if (sockfd < 0) exit(1);
        server.sin_family = AF_INET;//connect socket using hostname 
        hp = gethostbyname(hostname);
        if (hp == 0) exit(1);
        memcpy((char *)&server.sin_addr, (char *)hp->h_addr, hp->h_length);
        server.sin_port = htons((unsigned short)portno); //assign client port number
        connect(sockfd,(struct sockaddr *) &server, sizeof (server));//connect    
        while (1) //now loop reading stdin and sending  it to socket
        char buf[BUFSIZE], *bp, nsent, nsend;
        fgets(buf, BUFSIZE, stdin);
            nsend = strlen(buf);
            for (bp = buf, nsent = 0; nsent < nsend;)
            int res = send(sockfd, buf, nsend-nsent, 0);
            if (res < 0) exit(1);
            send(sockfd, ";", 1, 0);
            nsent += res;
            bp += res;


    posted in technical issues read more
  • Jose

    i am working on fedorra core 3. I got the package from planet crrma that doesn't provide OSC. I will check the forum discussions to find out how to solve this issue. Thanks.

    posted in technical issues read more
  • Jose


    I am trying with OSC. I followd the ling you gave me. From there I followed the pd link to http://barely.a.live.fm/pd/OSC/, that it is not working right now. But I found that in http://barely.a.live.fm/pd/OSC/OLD are some files. From those files I tried OSCx.tgz and OSCx.0.15b1.tgz. I tried to followed the instructions and I had a problem with tne m_imp.h with both packages. I got

    In file included from dumpOSC.c:71:
    m_imp.h:17: error: syntax error before "t_symbol"

    followd by a huge list of errors.

    I also tried with the flies from [url=http://cvs.sourceforge.net/viewcvs.py/pure-data/externals/OSCx/#dirlist, ]http://cvs.sourceforge.net/viewcvs.py/pure-data/externals/OSCx/#dirlis t,
    I downloaded them manually because I don´t know a more smart way to do that. I followd the instructions in the readme file. When I get to execute the command "make OSC" in the folder OSC I get

    /usr/lib/gcc/i386-redhat-linux/3.4.3/../../../crt1.o(.text+0x18): In function `_start':
    : undefined reference to `main'
    OSC.o(.text+0x17): In function `OSC_new':
    : undefined reference to `pd_new'

    followd by many lines.

    How did you install the OSC library? Any idea where is my mistake?

    posted in technical issues read more
  • Jose


    where can i find some examples of osc communication?
    i have tried with c not with c++, but i get a message form pd when i try to execute netreceive saying that the port is busy.

    posted in technical issues read more
  • Jose


    if the mouse works directly, maybe i can use a code in c to send the key-press to pd. how can i send variables from c++ or c?


    posted in pixel# read more

Internal error.

Oops! Looks like something went wrong!