<?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[# in canvas label]]></title><description><![CDATA[<p>Hello everyone,</p>
<p>For some reason when I include a # in a canvas label, it's rendered as a $. For example, I have a canvas object which receives &quot;c1&quot; and when I send &quot;label F#&quot; to c1, it shows on the canvas as &quot;F$&quot;.</p>
<p>This happens in pd-extended and purrdata. Is there a type conversion I'm missing or am I doing something else wrong? Is this a known quirk of pd?</p>
<p>Thanks!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10613/in-canvas-label</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 07:26:40 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/10613.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Mar 2017 08:02:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to # in canvas label on Wed, 01 Mar 2017 08:02:12 GMT]]></title><description><![CDATA[<p>Hello everyone,</p>
<p>For some reason when I include a # in a canvas label, it's rendered as a $. For example, I have a canvas object which receives &quot;c1&quot; and when I send &quot;label F#&quot; to c1, it shows on the canvas as &quot;F$&quot;.</p>
<p>This happens in pd-extended and purrdata. Is there a type conversion I'm missing or am I doing something else wrong? Is this a known quirk of pd?</p>
<p>Thanks!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10613/in-canvas-label</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10613/in-canvas-label</guid><dc:creator><![CDATA[driedstr]]></dc:creator><pubDate>Wed, 01 Mar 2017 08:02:12 GMT</pubDate></item><item><title><![CDATA[Reply to # in canvas label on Wed, 01 Mar 2017 08:50:47 GMT]]></title><description><![CDATA[<p>I guess # is a special character in Pd. If you open a Pd patch in a text editor, you'll see that all lines begin with #. I tried what you describe (I just set the name &quot;test#&quot; through canvas' properties, didn't send a symbol to it) and it's true indeed. I did save a test patch and then edited it in nano (terminal based text editor) like this:</p>
<pre><code>#N canvas 343 280 450 300 10;
#X obj 107 93 cnv 15 100 60 empty empty test\# 20 12 0 14 -233017 -66577 0;
</code></pre>
<p>Notice that I put a &quot;&quot; before # which is an escape character for special characters. Now, when I open the patch, the canvas reads &quot;test#&quot;.<br />
I tried to simulate this in a patch by sending the message &quot;list 92 70 35&quot; to [list tosymbol] (these values are ASCII &quot;&quot;, &quot;F&quot;, and &quot;#&quot;) and then to a message &quot;set label $1&quot;, which is sent to an empty message, but this results in &quot;\F#&quot;, and when sent to a canvas, it results in &quot;\F$&quot;.<br />
I think # (and ) is out of the question for use inside Pd patches, but if someone can prove me wrong, I'd be happy to see that.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10613/in-canvas-label/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10613/in-canvas-label/2</guid><dc:creator><![CDATA[alexandros]]></dc:creator><pubDate>Wed, 01 Mar 2017 08:50:47 GMT</pubDate></item><item><title><![CDATA[Reply to # in canvas label on Wed, 01 Mar 2017 09:16:14 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/alexandros">@alexandros</a> And if you put a $ in a property box send/receive name it magically transforms to hash....... so the opposite.<br />
What a wonderful world!<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10613/in-canvas-label/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10613/in-canvas-label/3</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Wed, 01 Mar 2017 09:16:14 GMT</pubDate></item><item><title><![CDATA[Reply to # in canvas label on Thu, 02 Mar 2017 11:39:33 GMT]]></title><description><![CDATA[<p>And it's weirder than that.......<br />
Notice the hash converted to dollars and &quot;vice&quot;-versa in the properties dialog....<br />
Could this be political?....... Columbia University?....... <a href="/uploads/files/1488454643465-cartel.pd">cartel.pd</a><br />
David.<br />
<img src="/uploads/files/1488454662377-capture.jpg" alt="Capture.JPG" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10613/in-canvas-label/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10613/in-canvas-label/4</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Thu, 02 Mar 2017 11:39:33 GMT</pubDate></item><item><title><![CDATA[Reply to # in canvas label on Tue, 07 Mar 2017 06:31:52 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a>, your hash labels actually work as expected in purrdata. <img src="/uploads/files/1488867493752-screen-shot-2017-03-06-at-10.17.10-pm.png" alt="Screen Shot 2017-03-06 at 10.17.10 PM.png" class="img-responsive img-markdown" /></p>
<p>Here's what I just found out after a little more tinkering: sending a hash as a symbol to a canvas label in purrdata works as expected <em>UNLESS</em> there's a digit after it, then it turns to a dollarsign. Furthermore, if that digit happens to be a <code>0</code>, it turns into <code>1003</code>, eg</p>
<pre><code>[A#0(
|
[label $1(
|
[s my-canvas]     

[A1003] // my-canvas
</code></pre>
<p>Unfortunately this leads me no closer to being able to nicely display scientific pitch notation (eg, <code>G#4</code>) in a canvas.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10613/in-canvas-label/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10613/in-canvas-label/5</guid><dc:creator><![CDATA[driedstr]]></dc:creator><pubDate>Tue, 07 Mar 2017 06:31:52 GMT</pubDate></item><item><title><![CDATA[Reply to # in canvas label on Tue, 07 Mar 2017 07:06:46 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/driedstr">@driedstr</a> You might be able to do it by dripping G#4 into [list fromsymbol] then prepending whitespace (32) and then turning it into a real symbol that ignores whitespace using [list tosymbol]<br />
The # might then no longer be recognised as a special character.<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10613/in-canvas-label/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10613/in-canvas-label/6</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Tue, 07 Mar 2017 07:06:46 GMT</pubDate></item><item><title><![CDATA[Reply to # in canvas label on Thu, 09 Mar 2017 02:37:42 GMT]]></title><description><![CDATA[<p>I wish my #### turned into $$$$ in real life as well!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10613/in-canvas-label/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10613/in-canvas-label/7</guid><dc:creator><![CDATA[LiamG]]></dc:creator><pubDate>Thu, 09 Mar 2017 02:37:42 GMT</pubDate></item></channel></rss>