<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1506185576740_6230"><span id="yui_3_16_0_ym19_1_1506185576740_6229">Thanks again!</span></div><div id="yui_3_16_0_ym19_1_1506185576740_6377"><span id="yui_3_16_0_ym19_1_1506185576740_6229">Very nice solution.</span></div><div id="yui_3_16_0_ym19_1_1506185576740_6488"><span id="yui_3_16_0_ym19_1_1506185576740_6229">Cheers!</span></div><div id="yui_3_16_0_ym19_1_1506185576740_6162"> </div><div class="signature" id="yui_3_16_0_ym19_1_1506185576740_6161">Hrvoje Radnic<br>http://soundcloud.com/sumovi-protiv-valova <br>00385(0)915225162</div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1506185576740_6160"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1506185576740_6081" style="display: block;">  <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;" id="yui_3_16_0_ym19_1_1506185576740_6080"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1506185576740_6079"> <div dir="ltr" id="yui_3_16_0_ym19_1_1506185576740_6078"> <font id="yui_3_16_0_ym19_1_1506185576740_6423" face="Arial" size="2"> <hr id="yui_3_16_0_ym19_1_1506185576740_6437" size="1"> <b id="yui_3_16_0_ym19_1_1506185576740_6425"><span style="font-weight:bold;" id="yui_3_16_0_ym19_1_1506185576740_6424">From:</span></b> Ingo Stock <mail@ingostock.de><br> <b><span style="font-weight: bold;">To:</span></b> "pd-list@lists.iem.at" <pd-list@lists.iem.at> <br> <b><span style="font-weight: bold;">Sent:</span></b> Saturday, September 23, 2017 6:36 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [PD] trim symbols?<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_ym19_1_1506185576740_6148"><br><div dir="ltr" id="yui_3_16_0_ym19_1_1506185576740_6149">Here it is with some comments, you are welcome!<br clear="none"><br clear="none"><br clear="none">On 23/09/17 18:04, Hrvoje Radnic wrote:<br clear="none">> Wow, thanks everybody for great solutions!<br clear="none">> <br clear="none">> Ingo's answer is the most satisfying for me because it stays in vanilla.<br clear="none">> For now, I will just subpatch it in my project and use it as a<br clear="none">> reference, but I must admit it will take some time before I really<br clear="none">> understand every part of that patch.<br clear="none">> <br clear="none">> All the best!<br clear="none">>  <br clear="none">> Hrvoje Radnic<br clear="none">> <a shape="rect" href="http://soundcloud.com/sumovi-protiv-valova" target="_blank">http://soundcloud.com/sumovi-protiv-valova</a><br clear="none">> 00385(0)915225162<br clear="none">> <br clear="none">> <br clear="none">> ------------------------------------------------------------------------<br clear="none">> *From:* Ingo Stock <<a shape="rect" ymailto="mailto:mail@ingostock.de" href="mailto:mail@ingostock.de" id="yui_3_16_0_ym19_1_1506185576740_6492">mail@ingostock.de</a>><br clear="none">> *To:* <a shape="rect" ymailto="mailto:pd-list@lists.iem.at" href="mailto:pd-list@lists.iem.at">pd-list@lists.iem.at</a><br clear="none">> *Sent:* Saturday, September 23, 2017 3:32 PM<br clear="none">> *Subject:* Re: [PD] trim symbols?<br clear="none">> <br clear="none">> You can use [list fromsymbol] to convert the symbol to a list of ASCII<br clear="none">> values and than work on that. See attached patch, it should do what you<br clear="none">> want.<br clear="none">> <br clear="none">> Note that the patch assumes that the ending (like .wav) is always 4<br clear="none">> characters. Also it uses a simple list-drip mechanism that should be<br clear="none">> efficient for small lists, in doubt use list-drip of list-abs instead.<br clear="none">> <br clear="none">> best wishes, ingo<br clear="none">> <br clear="none">> <br clear="none">> On 23/09/17 14:33, Hrvoje Radnic via Pd-list wrote:<br clear="none">>> Hi!<br clear="none">>><br clear="none">>> I would like to display the name of the .wav file loaded from the HDD<br clear="none">>> (using [openpanel]), but, without a full path and without the file<br clear="none">>> extension. For example, [openpanel] outputs "symbol<br clear="none">>> C:/Users/Hrvoje/Desktop/my_patches/SAMP_SEQ/samples/BD.wav" and I just<br clear="none">>> want "BD" to be displayed. Is it possible in pd vanilla? Thank you for<br clear="none">>> the help!<br clear="none">>> Cheers!<br clear="none">>> <br clear="none">>> Hrvoje Radnic<br clear="none">>> <a shape="rect" href="http://soundcloud.com/sumovi-protiv-valova" target="_blank">http://soundcloud.com/sumovi-protiv-valova</a><br clear="none">>> 00385(0)915225162<br clear="none">>><br clear="none">>><br clear="none">>> _______________________________________________<br clear="none">>> <a shape="rect" ymailto="mailto:Pd-list@lists.iem.at" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> <mailto:<a shape="rect" ymailto="mailto:Pd-list@lists.iem.at" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a>> mailing list<br clear="none">>> UNSUBSCRIBE and account-management -><br clear="none">> <a shape="rect" href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br clear="none">>><br clear="none">> _______________________________________________<br clear="none">> <a shape="rect" ymailto="mailto:Pd-list@lists.iem.at" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> <mailto:<a shape="rect" ymailto="mailto:Pd-list@lists.iem.at" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a>> mailing list<div class="yqt0144031688" id="yqtfd47993"><br clear="none">> UNSUBSCRIBE and account-management -><br clear="none">> <a shape="rect" href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br clear="none">> <br clear="none">> </div></div><div class="yqt0144031688" id="yqtfd59403">_______________________________________________<br clear="none"><a shape="rect" ymailto="mailto:Pd-list@lists.iem.at" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br clear="none">UNSUBSCRIBE and account-management -> <a shape="rect" href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br clear="none"></div><br><br></div> </div> </div>  </div></div></body></html>