• 60hz

    I tried on a Intel Imac, same problems with same shaders.
    Now, I tried on a windows 10 machine... same problems again, only same 3 shaders works (like Bokeh)..

    For bleach, the error is different from apple:

    ofShader: setupShaderFromSource(): GL_FRAGMENT_SHADER shader failed to compile
    : ofShader: GL_FRAGMENT_SHADER shader reports:
    Fragment shader failed to compile with the following errors:
    ERROR: error(#60) Unknown char: ""
    ERROR: error(#273) 1 compilation errors.  No code generated
    
    
    : //fragment program
    
    uniform sampler2D Tex0;
    uniform float GaussianBlur_Radius;
    const float total = (1. + 8. + 28. + 56.) * 2. + 70.;   
                                                          
    void main(void) 
    {
        vec2 st = gl_TexCoord[0].st;
        vec4 color = vec4(0.0,0.0,0.0,0.0);
        color += (1. / total) * texture2D(Tex0, st - GaussianBlur_Radius * vec2(4. / 4., 0.));
        color += (8. / total)  * texture2D(Tex0, st - GaussianBlur_Radius * vec2(3. / 4., 0.));
        color += (28. / total)  * texture2D(Tex0, st - GaussianBlur_Radius * vec2(2. / 4., 0.));
        color += (56. / total)  * texture2D(Tex0, st - GaussianBlur_Radius * vec2(1. / 4., 0.));
        color +=  (70. / total) * texture2D(Tex0, st);
        color += (1. / total) * texture2D(Tex0, st + GaussianBlur_Radius * vec2(4. / 4., 0.));
        color += (8. / total)  * texture2D(Tex0, st + GaussianBlur_Radius * vec2(3. / 4., 0.));
        color += (28. / total)  * texture2D(Tex0, st + GaussianBlur_Radius * vec2(2. / 4., 0.));
        color += (56. / total)  * texture2D(Tex0, st + GaussianBlur_Radius * vec2(1. / 4.,ofShader: checkProgramLinkStatus(): program failed to link
    

    ofShader: ofShader: program reports:
    Fragment shader(s) were not successfully compiled before glLinkProgram() was called. Link failed.

    posted in patch~ read more
  • 60hz

    Yeah, I tried already but that's not the problem. And for example Bokeh works with the same line...

    posted in patch~ read more
  • 60hz

    This is the error I have on 90% of the shader...

    ofShader: setupShaderFromSource(): GL_FRAGMENT_SHADER shader failed to compile
    : ofShader: GL_FRAGMENT_SHADER shader reports:
    ERROR: 0:1: '<' : syntax error: syntax error
    
    : ofShader: GL_FRAGMENT_SHADER, offending line 1 :
            1   //fragment program
            2   
            3   uniform float Bleach_Opacity;
    
    ofShader: checkProgramLinkStatus(): program failed to link
    ofShader: ofShader: program reports:
    ERROR: One or more attached shaders not successfully compiled
    
    
    

    posted in patch~ read more
  • 60hz

    or me even the v3 version works without problems (with Windows) with Ofelia v4

    Ok, strange, I found an old revision of your patch somewhere that used pdCanvas and pdClock instead of ofCanvas ofClock, and ofelia object was broken...

    Maybe you need to specify the GL version in Ofelia?

    Yes, I thought about it. I tried to change different shader version adding window:setGLVersion(4,1) etc in setup but had a crash or nothing...
    Maybe I need to modify all shader and add a version directive on top to make them working in other systems (like: #version 410).

    I updated ofxOfelia

    Great, this is the openFrameworks addon, but I am trying to make classic ofelia work under pd for some teaching.

    posted in patch~ read more
  • 60hz

    I adapted the partch to ofelia v4 here.

    GLSL_Video_Effects_V01_Ofelia4.zip

    But still, only very few shader works on my macbook (like Bokeh... and two or three more).
    Any way to make them all compatible?

    posted in patch~ read more
  • 60hz

    Also I think that color parameters are now saved in hex format (html/css), which is far more easy to use.

    If someone have an account, it might be nice to update this link?

    posted in technical issues read more
  • 60hz

    Yes, K-lite should be installed to be able to play most of video formats.
    You can check which backends are installed on your system by sending a "loader" message to [pix_film]

    As an alternative, you can try pof library that is close to Gem.

    @whale-av said:

    You will find Pd extended here.......

    Not sure if it's a good idea to use such an obsolete version, but purr data should contain Gem also.

    posted in technical issues read more
  • 60hz

    I did this long time ago that use on canvas to do the (clickable) gui

    Capture d’écran 2022-09-08 à 18.52.12.png

    gswitch.pd
    gswitch-help.pd

    also the other one:

    ggate-help.pd
    ggate.pd

    posted in technical issues read more
  • 60hz

    You might check clone object for that.
    But you need to allocate a maximum number of voices or use dynamic patching technic, but I am not sure it's worth the try.

    posted in technical issues read more
  • 60hz

    @omer1789 said:

    sfplay~

    Under pure data vanilla, you can use readsf~

    posted in technical issues read more
  • 60hz

    Here is a way to do it. I would be curious if somebody have a better design in mind:

    Capture d’écran 2022-07-15 à 18.02.02.png

    posted in patch~ read more
  • 60hz

    You might need a symbol atom gui box.
    Add -> symbol
    Then type any filename in Run mode

    posted in technical issues read more
  • 60hz

    1-Go to Media-> sound settings then set your soundcard input / output.

    2-Turn on DSP in Media -> DSP ON

    3- To ear the input signal, connect the input of sound card [adc~] (Analog to Digital Converter) to the output of soundcard [dac~] (Digital to Analog Conveter):
    Capture d’écran 2022-06-16 à 20.10.18.png

    posted in technical issues read more
  • 60hz

    You can send the "offset X Y" message before creating your window to move gem window on the secondary display and run the patch on the primary instead.
    Check gemwin's help files...

    posted in technical issues read more
  • 60hz

    @ddw_music said:

    My AI professor back decades ago wished that he could start programming with MAX, but it was completely out of the range of the students. I'm hoping to pick up his dream, particularly since he's at a new institution that requires that he teach beginning computer science in Java (?!?)

    I suggest also to keep an eye to this web javascript clone of max
    https://github.com/Fr0stbyteR/jspatcher

    posted in technical issues read more
  • 60hz

    It says the time is the envelope duration. I guess It's like @gate 1 ---> delay 1000 ---> @gate 0

    posted in technical issues read more
  • 60hz

    Then try the "play 1000", It should be a similar concept to "bang" behavior.

    posted in technical issues read more
  • 60hz

    I also found env.adsr~ a bit difficult to use. You can use "@gate 1" and "@gate 0" messages to start / stop the last envelop.

    Also, if you check the help file, there is a "play" method allowing to "runs envelope and release it after specified time". You need to fill the duration as argument, like "play 1000".

    Also you can ask for a bang method here (the consistency with env.ar~ is a nice argument ).
    https://github.com/uliss/pure-data/issues
    The author is really open to discussion about his objects and already modify many of them after I sent suggestions.

    posted in technical issues read more
  • 60hz

    I also tried to read movies on a Windows10 machine, and I have the same freeze with the example movie "alea.mpeg" with Gem 0.94, k-lite codec pack and pd 0-51-4

    That's why I am using ofelia, which is much more reliable when it comes to play movies (plus it have sound synchronisation).

    You can try my set of abstractions if you want to be able to use ofelia like Gem https://github.com/60-hz/Ofelia-Fast-Prototyping

    posted in pixel# read more
  • 60hz

    another q sorry for being naive but what did you meant by (DS) backend

    It means DirectShow which is the native backend on Windows I guess.

    This is what I asked "what is printed when you send a [loader( message to [pix_film] ?"

    -> you need to send the messager "loader" to [pix_film] to know what backends are currently available on your system. It will print a list of backends with a number.

    For exemple on my apple system I have :

    [pix_film]: loader[0] quicktime4linux
    [pix_film]: loader[1] AVF
    [pix_film]: loader[2] image
    

    You can then change the backend number using for exemple "loader 1" or "loader 2" etc...

    posted in pixel# read more
Internal error.

Oops! Looks like something went wrong!