• cleberpedrozo

    I'm having some problems, each time i do the maths for each pixel (500x500) the cpu gonna very loaded doing the maths slowing the music...
    then i tryied to use gl shader language, but i'm with some dificults because i'm new in shader and pd and GEM.... so i dont know where i can write the codes before render (init() codes)...

    i tried write:
    shader1 = new Glsl("hello.vert", "hello.frag");
    at the construction method, because normaly is writen at main, but then the object in pd is cannot be created...

    well maybe is a very confused post but if you can help me to do these render's maths in shader at this external it will be great...

    these are the commands i use to compile the project:

    gcc -c fractal.cpp -o fractal.o
    ld -export-dynamic -shared -o teste.pd_linux fractal.o -lc -lm
    and
    sudo mv teste.pd_linux /usr/lib/pd-extended/extra/

    thx if anyone can help...

    posted in pixel# read more
  • cleberpedrozo

    hi there... i need to get the frequency from a music that i read from oggread... what objects can i use to get the frequency of the sounds??
    i saved some piano notes C,G,E how can i get the frequency from one by one notes from that .ogg file???

    thx

    posted in output~ read more
  • cleberpedrozo

    hi... i'm trying to do a helloworld external but i'm with some errors,
    this is what i did so far:
    i copied and paste the helloworld from how to do an external tutorial and tried to compile with following commands and respectives errors:

    gcc -c helloworld.c -o helloworld.o
    helloworld.c: In function ‘helloworld_setup’:
    helloworld.c:19: warning: passing argument 1 of ‘class_new’ makes pointer from integer without a cast
    /usr/include/pdextended/m_pd.h:423: note: expected ‘struct t_symbol *’ but argument is of type ‘int’

    ld -export_dynamic -shared -o helloworld.pd_linux helloworld.o -lc -lm
    ld: warning: cannot find entry symbol xport_dynamic; defaulting to 00000000000002a0

    **because is just a warnings i tried to move this external to extra but when i try to create a helloworld object on pd says the simbol "gemsym" is not defined

    so i found another comands to test:

    gcc -DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -I ./ -o helloworld.o -c helloworld.c

    helloworld.c: In function ‘helloworld_setup’:
    helloworld.c:16: warning: implicit declaration of function ‘gemsym’
    helloworld.c:19: warning: passing argument 1 of ‘class_new’ makes pointer from integer without a cast
    /usr/include/pdextended/m_pd.h:423: note: expected ‘struct t_symbol *’ but argument is of type ‘int’

    gcc -bundle -undefined -suppress -flat_namespace -o helloworld.pd_darwin helloworld.o

    cc: unrecognized option '-bundle'
    cc: unrecognized option '-suppress'
    /usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000008048220
    helloworld.o: In function `helloworld_setup':
    helloworld.c:(.text+0xe): undefined reference to `gemsym'
    helloworld.c:(.text+0x3e): undefined reference to `class_new'
    helloworld.c:(.text+0x53): undefined reference to `class_addbang'
    helloworld.o: In function `helloworld_new':
    helloworld.c:(.text+0x6f): undefined reference to `pd_new'
    helloworld.o: In function `helloworld_bang':
    helloworld.c:(.text+0x8f): undefined reference to `post'
    collect2: ld returned 1 exit status

    if someone can help with this... maybe i didnt install everything i need...
    thx!!

    posted in technical issues read more
  • cleberpedrozo

    hi, i'm trying to do a external using GEM, but i have no idea how to start, i tried to search for any tutorial but i didnt find anyone...

    if anyone can write some simple code for me i'm very thankfull

    what i'm trying to do first of all is something like this:

    for(int y=0 ; y< GEMwidth; y++)
    for(int x=0; x<GEMheight; x++)
    {
    glColor3f(0, 0, 1);
    glBegin(GL_POINTS);
    glVertex2i(x,y);
    glEnd();
    }

    but on render of GEM in pd

    a simple tutorial will help me a lot... thx

    posted in technical issues read more
  • cleberpedrozo

    thx... i'll try...

    posted in output~ read more
  • cleberpedrozo

    got it.... but i still need how i get width and height from GEM window... if anyone knows plz let me know

    posted in technical issues read more
  • cleberpedrozo

    thx a lot... it worked... well datailed help...

    posted in technical issues read more
Internal error.

Oops! Looks like something went wrong!