Re: [PD] nn_tile - search file
Hi Denis, open_via_path() only considers the global search paths. You (almost) always want to use canvas_open() instead, which also uses the canvas environment (i.e. patch relative paths + paths added with [declare]). Note that you would need a reference to the containing canvas. This can be done by calling canvas_getcurrent() in the constructor and storing the resulting t_canvas* in the object. Christof On 24.08.2022 21:55, Denis Połeć wrote: 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 ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
[PD] nn_tile - search file
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 ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
[PD] Using Arduino Nano 33 BLE with PD?
Hi everyone, I have used Arduino with the Firmata firmware with good results in the past (several years go.) I’m curious to know if anyone has any experience of using the Nano 33 BLE with PD. My understanding is that the Firmata firmware does not yet support the Nano 33 BLE. I’m unclear about how I would interface with the Nano because, from what I understand, instead of sending a continuous stream of data, the BLE system sends opens a connection, sends data, then closes the connection and goes back to sleep. I presume that this behaviour may not be compatible with the comport object. If anyone has any experience or guidance on this, I will be very grateful if you can share your thoughts. Thanks! - martin ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list