<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: Does $ need a space in front?</title>
		<atom:link href="http://cycling74.com/forums/topic/does-need-a-space-in-front/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/does-need-a-space-in-front/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 13:09:30 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/does-need-a-space-in-front/#post-34295</guid>
					<title><![CDATA[Does $ need a space in front?]]></title>
					<link>http://cycling74.com/forums/topic/does-need-a-space-in-front/#post-34295</link>
					<pubDate>Wed, 24 Oct 2007 04:11:10 +0000</pubDate>
					<dc:creator>bkshepard</dc:creator>

					<description>
						<![CDATA[
						<p>I&#8217;m trying to use a variable to tell a buffer to read different audio files and so I&#8217;m using the following configuration to change a file&#8217;s name for the buffer.</p>
<p>max v2;<br />
#N vpatcher 10 59 610 459;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 1;<br />
#P message 95 32 14 196617 3;<br />
#P message 67 32 14 196617 2;<br />
#P message 41 32 14 196617 1;<br />
#P button 50 93 15 0;<br />
#P newex 50 115 43 196617 delay 1;<br />
#P message 50 142 72 196617 read file 3.aif;<br />
#P message 50 64 95 196617 set read file $1.aif;<br />
#P newex 50 170 67 196617 buffer~ files;<br />
#P connect 7 0 1 0;<br />
#P connect 6 0 1 0;<br />
#P connect 5 0 1 0;<br />
#P connect 1 0 4 0;<br />
#P connect 4 0 3 0;<br />
#P fasten 1 0 2 0 55 85 32 85 32 137 55 137;<br />
#P connect 3 0 2 0;<br />
#P connect 2 0 0 0;<br />
#P pop;</p>
<p>My question&#8212;</p>
<p>Is it not possible to use $1 without a space in front of $-sign?  When I use the text string [set read file$1.aif] it doesn&#8217;t work, but [set read file $1.aif] works just fine.  Yeah, I know I can just name all my files as &#8220;file 1.aif,&#8221; &#8220;file 2.aif,&#8221; but I&#8217;d really prefer to not have a space in the file name.  Thanks.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/does-need-a-space-in-front/#post-115456</guid>
					<title><![CDATA[Re: Does $ need a space in front?]]></title>
					<link>http://cycling74.com/forums/topic/does-need-a-space-in-front/#post-115456</link>
					<pubDate>Wed, 24 Oct 2007 04:18:00 +0000</pubDate>
					<dc:creator>Emmanuel Jourdan</dc:creator>

					<description>
						<![CDATA[
						<p>On 24 oct. 07, at 06:11, Brian Shepard wrote:</p>
<p>> My question&#8212;<br />
><br />
> Is it not possible to use $1 without a space in front of $-sign?   <br />
> When I use the text string [set read file$1.aif] it doesn&#8217;t work,  <br />
> but [set read file $1.aif] works just fine.  Yeah, I know I can  <br />
> just name all my files as &#8220;file 1.aif,&#8221; &#8220;file 2.aif,&#8221; but I&#8217;d  <br />
> really prefer to not have a space in the file name.  Thanks.</p>
<p>Right, $n needs a space before. For string concatenation, have a look  <br />
to the sprintf object: [sprintf symout file %d.aif] should do what  <br />
you need.</p>
<p>HTH,<br />
ej</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/does-need-a-space-in-front/#post-115457</guid>
					<title><![CDATA[Re: Does $ need a space in front?]]></title>
					<link>http://cycling74.com/forums/topic/does-need-a-space-in-front/#post-115457</link>
					<pubDate>Wed, 24 Oct 2007 17:50:54 +0000</pubDate>
					<dc:creator>bkshepard</dc:creator>

					<description>
						<![CDATA[
						<p>ej,</p>
<p>Thanks for the tip on sprintf.  I was afraid that would be the case.  I may just opt for the space in the file name rather than the extra processing of sprintf since this will be a pretty processor-intensive patch when it&#8217;s done.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/does-need-a-space-in-front/#post-115458</guid>
					<title><![CDATA[Re: Does $ need a space in front?]]></title>
					<link>http://cycling74.com/forums/topic/does-need-a-space-in-front/#post-115458</link>
					<pubDate>Wed, 24 Oct 2007 21:16:17 +0000</pubDate>
					<dc:creator>Emmanuel Jourdan</dc:creator>

					<description>
						<![CDATA[
						<p>On 24 oct. 07, at 19:50, Brian Shepard wrote:</p>
<p>> ej,<br />
><br />
> Thanks for the tip on sprintf.  I was afraid that would be the  <br />
> case.  I may just opt for the space in the file name rather than  <br />
> the extra processing of sprintf since this will be a pretty  <br />
> processor-intensive patch when it&#8217;s done.</p>
<p>I&#8217;ve never seen any problem of performance with sprintf. I wouldn&#8217;t  <br />
worry too much about the overhead.</p>
<p>ej</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/does-need-a-space-in-front/#post-115459</guid>
					<title><![CDATA[Re: Does $ need a space in front?]]></title>
					<link>http://cycling74.com/forums/topic/does-need-a-space-in-front/#post-115459</link>
					<pubDate>Thu, 25 Oct 2007 01:44:40 +0000</pubDate>
					<dc:creator>bkshepard</dc:creator>

					<description>
						<![CDATA[
						<p>You&#8217;re right, sprintf works great!  Thanks for the tip.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

