<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[symbol argument]]></title><description><![CDATA[<p>Yop,</p>
<p>I'm trying to learn how to make my first useful externals from scratch.  I managed to use a float argument, as in the famous counter example, passing a float argument.  But now I'd like to be able to take a symbolic argument, a string of characters (something that I'll use within a sprintf to get a correct formatted string later).  A name, basically <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":-)" alt=":-)" /></p>
<p>It's stupid, but couldn't remember a simple external using only a symbol as argument to get inspired from.  Could someone point me to a simple external source that could serve as an example ?  I know i will have to put A_DEFSYMBOL in the setup routine, but besides that I'm not finding my way out.</p>
<p>I'll be away from keyboard for 20 days so no matter if you take your time <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/wink.png" title=";-)" alt=";-)" /></p>
<p>Thanks</p>
<p>Nau</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8509/symbol-argument</link><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 15:11:28 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/8509.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Jul 2014 22:05:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to symbol argument on Thu, 24 Jul 2014 22:05:24 GMT]]></title><description><![CDATA[<p>Yop,</p>
<p>I'm trying to learn how to make my first useful externals from scratch.  I managed to use a float argument, as in the famous counter example, passing a float argument.  But now I'd like to be able to take a symbolic argument, a string of characters (something that I'll use within a sprintf to get a correct formatted string later).  A name, basically <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":-)" alt=":-)" /></p>
<p>It's stupid, but couldn't remember a simple external using only a symbol as argument to get inspired from.  Could someone point me to a simple external source that could serve as an example ?  I know i will have to put A_DEFSYMBOL in the setup routine, but besides that I'm not finding my way out.</p>
<p>I'll be away from keyboard for 20 days so no matter if you take your time <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/wink.png" title=";-)" alt=";-)" /></p>
<p>Thanks</p>
<p>Nau</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8509/symbol-argument</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/8509/symbol-argument</guid><dc:creator><![CDATA[nau]]></dc:creator><pubDate>Thu, 24 Jul 2014 22:05:24 GMT</pubDate></item><item><title><![CDATA[Reply to symbol argument on Thu, 24 Jul 2014 22:21:06 GMT]]></title><description><![CDATA[<p>yep,</p>
<p>just replyingto myself, partially : this site could be useful : <a href="http://www.ime.usp.br/~fls/PDExternal-generator/PDExternal_generator.html" rel="nofollow">http://www.ime.usp.br/~fls/PDExternal-generator/PDExternal_generator.html</a></p>
<p>Cheers</p>
<p>Nau</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8509/symbol-argument/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/8509/symbol-argument/2</guid><dc:creator><![CDATA[nau]]></dc:creator><pubDate>Thu, 24 Jul 2014 22:21:06 GMT</pubDate></item><item><title><![CDATA[Reply to symbol argument on Sun, 17 Aug 2014 22:51:31 GMT]]></title><description><![CDATA[<p>Back here,</p>
<p>still can't find a way to handle a symbol argument.  I'm a total noob in C, so I try to find my way step by step, and I'm stuck with something like a type mismatch I can't resolve with my  poor means.  Sorry for beeing so noob.</p>
<p>Basically I'd like to get a string of caracters as unique argument and use it to create a filename with a  sprintf.</p>
<p>I illustrate my problem with two externals, the first one uses a floatarg and works fine, the second tries to the content of the symbol argument but fails.  (compiled on a cubieboard2 (armf)).<br />
<a href="/uploads/upload-11a5925f-2187-41d9-95eb-a57d0bfc646b.bz2">arguse.tar.bz2</a></p>
<p>Anyone knows what to  do here ?</p>
<p>Sorry again for the noobness,<br />
Thank you,</p>
<p>Nau</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8509/symbol-argument/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/8509/symbol-argument/3</guid><dc:creator><![CDATA[nau]]></dc:creator><pubDate>Sun, 17 Aug 2014 22:51:31 GMT</pubDate></item><item><title><![CDATA[Reply to symbol argument on Mon, 18 Aug 2014 12:20:34 GMT]]></title><description><![CDATA[<p>In the source code of [filter~] from iemlib, you get this line in the new method:<br />
filt_typ = atom_getsymbolarg(0, argc, argv);</p>
<p>This gets a string passed as an argument when you create the object. Can't you use this technique?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8509/symbol-argument/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/8509/symbol-argument/4</guid><dc:creator><![CDATA[alexandros]]></dc:creator><pubDate>Mon, 18 Aug 2014 12:20:34 GMT</pubDate></item><item><title><![CDATA[Reply to symbol argument on Mon, 18 Aug 2014 21:17:04 GMT]]></title><description><![CDATA[<p>I'll try, for sure.</p>
<p>Thank you !</p>
<p>Nau</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8509/symbol-argument/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/8509/symbol-argument/5</guid><dc:creator><![CDATA[nau]]></dc:creator><pubDate>Mon, 18 Aug 2014 21:17:04 GMT</pubDate></item><item><title><![CDATA[Reply to symbol argument on Tue, 19 Aug 2014 22:35:34 GMT]]></title><description><![CDATA[<p>when A_GIMME is used as the argument to the constructor the method alexandros proposes should work well.<br />
However, you can also use A_DEFSYMBOL as you were doing. I think maybe your problem was that you were thinking that a symbol was a <code>char *</code>, which is not the case. the definition of t_symbol is in m_pd.h, and the actual array of characters is in <code>t_symbol.s_name</code>.<br />
At any rate, here's the corrected .c file:<a href="/uploads/upload-38b4b955-cfce-4904-975a-dd595230ac82.c">arguse2.c</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8509/symbol-argument/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/8509/symbol-argument/6</guid><dc:creator><![CDATA[seb-harmonik.ar]]></dc:creator><pubDate>Tue, 19 Aug 2014 22:35:34 GMT</pubDate></item><item><title><![CDATA[Reply to symbol argument on Tue, 19 Aug 2014 23:06:24 GMT]]></title><description><![CDATA[<p>Thank you Sebfumaster, that was exactly what I needed.</p>
<p>Nau</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8509/symbol-argument/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/8509/symbol-argument/7</guid><dc:creator><![CDATA[nau]]></dc:creator><pubDate>Tue, 19 Aug 2014 23:06:24 GMT</pubDate></item></channel></rss>