[PD] nn_tile - search file

Denis Połeć denis.polec at gmail.com
Wed Aug 24 21:55:33 CEST 2022


Hello,

I am currently experimenting with the external nn_tilde. (https://github.com/acids-ircam/nn_tilde) I compiled it for my machine (Apple Silicion) and it works so far. It is fun.

There is a little thing which is annoying. I just can load the pretrained models with the absolute path. Everything else fails. (declare paths etc....) This is not really handy. 
Does someone face the same problem?

This should be the function which handle the file search. (https://github.com/acids-ircam/nn_tilde/blob/master/src/frontend/puredata/nn_tilde/nn_tilde.cpp) I can't see any issue.
... Let's say I am not able to see any issue. ;) 

 // SEARCH FOR FILE
  if (!sys_isabsolutepath(x->m_path->s_name)) {
    char dirname[MAXPDSTRING], *dummy;
    auto fd = open_via_path("", x->m_path->s_name, "", dirname, &dummy,
                            MAXPDSTRING, 1);
    std::string found_path;
    found_path += dirname;
    found_path += "/";
    found_path += x->m_path->s_name;
    x->m_path = gensym(found_path.c_str());
  } 

cheers
denis




More information about the Pd-list mailing list