<?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: [sprintf] formatting</title>
		<atom:link href="http://cycling74.com/forums/topic/sprintf-formatting/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/sprintf-formatting/feed</link>
		<description></description>
		<pubDate>Thu, 20 Jun 2013 04:45:45 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/sprintf-formatting/#post-45359</guid>
					<title><![CDATA[[sprintf] formatting]]></title>
					<link>http://cycling74.com/forums/topic/sprintf-formatting/#post-45359</link>
					<pubDate>Mon, 07 Sep 2009 05:29:38 +0000</pubDate>
					<dc:creator>Brian H.</dc:creator>

					<description>
						<![CDATA[
						<p>I&#8217;m wondering how I can give [sprintf] the specific inlet number to use for a particular variable.  The string looks like this:</p>
<p>sprintf pattrforward stuff[INSERT_PATCHER_ARGUMENT]::MoreStuff::INSERT_VALUE_FROM_UI_OBJECT</p>
<p>I need the variable in the 2nd position (UI value) to be the one on the hot inlet.</p>
<p>I also looked at [combine], which is not impossible, but has some issues of its own.  Is this possible with [sprintf]?  I tried some notations to get it to look at the 2nd inlet and it didn&#8217;t seem to work (%2i, %i$2, etc.).</p>
<p>Hope that makes some sense&#8230;</p>
<p>Thanks,<br />
Brian</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/sprintf-formatting/#post-163486</guid>
					<title><![CDATA[Re: [sprintf] formatting]]></title>
					<link>http://cycling74.com/forums/topic/sprintf-formatting/#post-163486</link>
					<pubDate>Mon, 07 Sep 2009 06:56:32 +0000</pubDate>
					<dc:creator>jvkr</dc:creator>

					<description>
						<![CDATA[
						<p>Have a look at the combine object.</p>
<p>_<br />
johan</p>
<p>
</p>
<div><span id="toggle163486-0" class="patchtoggle" onmousedown="toggleMaxPatch('post163486-0', 'er163486-0');">&#8211; Pasted Max <span id="maxversion163486-0"></span> Patch, click to <span id="er163486-0">expand</span>. &#8211;</span> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  width="110" height="14" class="clippy" ><param name="allowScriptAccess" value="always" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param NAME="FlashVars" value="copied=copied!&#038;copyto=copy to clipboard"/><param name="bgcolor" value="#FFFFFF"/><param name="wmode" value="opaque"/><embed src="/wp-content/plugins/bbpress-copy-compressed/clippy.swf"  width="110" height="14"   name="clippy"  quality="high"  allowScriptAccess="always"  type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer"  FlashVars="text=----------begin_max5_patcher----------%0A390.3ocuTFsaCBBEF9Z8o3Dt1Y.s1X6CxtowrfJskEELBl0sl9tOA0l1Eaqc%0AwsavvOG37e93fGccPoxCLEBVCa.GmitNNVIifS%2BbGTI8PVAUYCCIXeHSeG40%0AsjlcPak0PJvGTEMkbQASa2AoWrhpy1yE6dqlko6xHYUfO1CH3Xymv.%2BHOH.6%0Aigj98vysGdaBeId3v2JEZAsjYW4UVcNUPuHwxF8PlC5U6jzeVw5RKJkJ1g7.%0ADWzZjjKNWE%2BKaLDhO1ndx00L3MU1zTlxp%2BkTHdgYLBaFuEDhlQHXJdudVLmP%0AnjoTzcrQoPvcnPzRauPGLVYw.IdbLD97XfbKLLuM.i%2B3HSVlxELnZ6FPoa1R%0Afj0qSKn6gvQwzhG%2BjYgsagrjbu1ExL1tX5UlDqrwfJZq2e7eEa0XzuFfJYSc%0A1PV5eoCjyYJmozbAUykhKhosxfvywrmmmyrKi6UJ44Ux1N7dK.IidYNUG09r%0ACvOvQwWEyesihmfiH%2BqNhLAGEd0M6y4n1Imb%2BF.Vkrnv%0A-----------end_max5_patcher-----------&#038;copied=copied!&#038;;copyto=copy to clipboard"  bgcolor="#ffffff"  wmode="opaque" /> </object></div>
<div id="post163486-0" style="display:none;visibility:hidden;" >
<div class="patchtoggleInfo"><small>Copy <b>all</b> of the following text.Then, in Max, select <em>New From Clipboard</em>.</small></div>
<div class="patchtogglediv">
<pre><code id="pastedcode163486-0">----------begin_max5_patcher----------
390.3ocuTFsaCBBEF9Z8o3Dt1Y.s1X6CxtowrfJskEELBl0sl9tOA0l1Eaqc
wsavvOG37e93fGccPoxCLEBVCa.GmitNNVIifS+bGTI8PVAUYCCIXeHSeG40
sjlcPak0PJvGTEMkbQASa2AoWrhpy1yE6dqlko6xHYUfO1CH3Xymv.+HOH.6
igj98vysGdaBeId3v2JEZAsjYW4UVcNUPuHwxF8PlC5U6jzeVw5RKJkJ1g7.
DWzZjjKNWE+KaLDhO1ndx00L3MU1zTlxp+kTHdgYLBaFuEDhlQHXJdudVLmP
njoTzcrQoPvcnPzRauPGLVYw.IdbLD97XfbKLLuM.i+3HSVlxELnZ6FPoa1R
fj0qSKn6gvQwzhG+jYgsagrjbu1ExL1tX5UlDqrwfJZq2e7eEa0XzuFfJYSc
1PV5eoCjyYJmozbAUykhKhosxfvywrmmmyrKi6UJ44Ux1N7dK.IidYNUG09r
CvOvQwWEyesihmfiH+qNhLAGEd0M6y4n1Imb+F.Vkrnv
-----------end_max5_patcher-----------</code></pre></div>
</div>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/sprintf-formatting/#post-163487</guid>
					<title><![CDATA[Re: [sprintf] formatting]]></title>
					<link>http://cycling74.com/forums/topic/sprintf-formatting/#post-163487</link>
					<pubDate>Mon, 07 Sep 2009 09:04:20 +0000</pubDate>
					<dc:creator>Luke Hall</dc:creator>

					<description>
						<![CDATA[
						<p>It is possible with [sprintf] and [combine] although the latter is easier, check out the use of the &#8220;triggers&#8221; attribute which is built in.</p>
<p>lh</p>
<p>
<div><span id="toggle163487-0" class="patchtoggle" onmousedown="toggleMaxPatch('post163487-0', 'er163487-0');">&#8211; Pasted Max <span id="maxversion163487-0"></span> Patch, click to <span id="er163487-0">expand</span>. &#8211;</span> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  width="110" height="14" class="clippy" ><param name="allowScriptAccess" value="always" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param NAME="FlashVars" value="copied=copied!&#038;copyto=copy to clipboard"/><param name="bgcolor" value="#FFFFFF"/><param name="wmode" value="opaque"/><embed src="/wp-content/plugins/bbpress-copy-compressed/clippy.swf"  width="110" height="14"   name="clippy"  quality="high"  allowScriptAccess="always"  type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer"  FlashVars="text=----------begin_max5_patcher----------%0A694.3ocyW1raiBCD.9L4ovBodiMBayeIm18AXOsR6kpnUNfSh2ELHiSaZq56%0A9ZaHoIsgDRHP6Ea4gA7LedXlwuLxxdd9FZoMXJ3dfk0KirrLhzBrpWaYmQ1D%0AmRJMpYmQKKIKo1NUOSR2HMxm%2BzNYEDY7JFe4eDzXY02F4hG65.BLiXzXeG.L%0AZrKXV8qvWmw3oToYOP0BWjykbRF078%2BgfQRseS870xs5CqkxRLZlO%2BueCsUy%0AJ0jOUPqLDa6c6o9yWxd17.HZrqV5qiFoGb5HLVQSSyOANfA96gi.8XuhCugA%0AGJ6XNUbB%2BF6iL9smdz2UOhbaxugWnei9neGzney3RaGUTKgu71h.5ipM9CAD%0Aw4YyYbJnTtdwh6AOPDPvroSyxETinoS0xPfuKErkKohR.9DXLzPwHSbCZxjS%0AiQuigweSEIDNo0fLp4.HmFChf2RB9bJPPe3rPA4ZvA9LPA08XKD9ZXxMMppf%0AD%2BOfqIZ5rfAFEpmBw2VvbrbunuHYapc7pbsCP1lICd1lqqXLrJ%2Ba8z.TMN7K%0Ad0XTv97n%2BKG6%2Bovil%2BCAWkT.526dNbfb8lRXJnETdBPgBoXQt3QhH473wMxL%0AglbEYPNYg1iAH7kBHXuFaf7CFpXC7mZnQYgPkkdwAgF0sqcWopUsepZU6WUs%0ApcW44wFFZl7P8d4VX2vlQG6TUyou6ZfFeSK%2BPVVluVDucGpaMD7l2kn5mkwI%0ARVNeOczQ06ozJVRB07b2ZIYrjhbE%2BqsAvridv1VS5caWC1jJUD.1daJBZpSh%0Aq5iHLb2pNZrAsvV0LFOX3C0RK5BfGBZ5xHxTnAF5MNBiwnnJIczb8t8laWi%2B%0AZgEgulnOjOdunOyptdV2peUFz%2Bd8agEouiw.dfNoslzvQITa9KEMr4cC6gSN%0An5Fql6mTcmEr%2BtUGXrpEuN5%2Bc9pxwC%0A-----------end_max5_patcher-----------&#038;copied=copied!&#038;;copyto=copy to clipboard"  bgcolor="#ffffff"  wmode="opaque" /> </object></div>
<div id="post163487-0" style="display:none;visibility:hidden;" >
<div class="patchtoggleInfo"><small>Copy <b>all</b> of the following text.Then, in Max, select <em>New From Clipboard</em>.</small></div>
<div class="patchtogglediv">
<pre><code id="pastedcode163487-0">----------begin_max5_patcher----------
694.3ocyW1raiBCD.9L4ovBodiMBayeIm18AXOsR6kpnUNfSh2ELHiSaZq56
9ZaHoIsgDRHP6Ea4gA7LedXlwuLxxdd9FZoMXJ3dfk0KirrLhzBrpWaYmQ1D
mRJMpYmQKKIKo1NUOSR2HMxm+zNYEDY7JFe4eDzXY02F4hG65.BLiXzXeG.L
ZrKXV8qvWmw3oToYOP0BWjykbRF078+gfQRseS870xs5CqkxRLZlO+ueCsUy
J0jOUPqLDa6c6o9yWxd17.HZrqV5qiFoGb5HLVQSSyOANfA96gi.8XuhCugA
GJ6XNUbB+F6iL9smdz2UOhbaxugWnei9neGzney3RaGUTKgu71h.5ipM9CAD
w4YyYbJnTtdwh6AOPDPvroSyxETinoS0xPfuKErkKohR.9DXLzPwHSbCZxjS
iQuigweSEIDNo0fLp4.HmFChf2RB9bJPPe3rPA4ZvA9LPA08XKD9ZXxMMppf
D+OfqIZ5rfAFEpmBw2VvbrbunuHYapc7pbsCP1lICd1lqqXLrJ+a8z.TMN7K
d0XTv97n+KG6+ovil+CAWkT.526dNbfb8lRXJnETdBPgBoXQt3QhH473wMxL
glbEYPNYg1iAH7kBHXuFaf7CFpXC7mZnQYgPkkdwAgF0sqcWopUsepZU6WUs
pcW44wFFZl7P8d4VX2vlQG6TUyou6ZfFeSK+PVVluVDucGpaMD7l2kn5mkwI
RVNeOczQ06ozJVRB07b2ZIYrjhbE+qsAvridv1VS5caWC1jJUD.1daJBZpSh
q5iHLb2pNZrAsvV0LFOX3C0RK5BfGBZ5xHxTnAF5MNBiwnnJIczb8t8laWi+
ZgEgulnOjOdunOyptdV2peUFz+d8agEouiw.dfNoslzvQITa9KEMr4cC6gSN
n5Fql6mTcmEr+tUGXrpEuN5+c9pxwC
-----------end_max5_patcher-----------</code></pre></div>
</div>
</p>						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/sprintf-formatting/#post-163488</guid>
					<title><![CDATA[Re: [sprintf] formatting]]></title>
					<link>http://cycling74.com/forums/topic/sprintf-formatting/#post-163488</link>
					<pubDate>Sat, 12 Sep 2009 06:21:14 +0000</pubDate>
					<dc:creator>Brian H.</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks&#8230;[combine] worked OK, just had to break it up a bit more than I was thinking.  But it came together well.  Just to check, there is no way to make a [sprintf] outlet other than the left hot?</p>
<p>Thanks again,<br />
Brian</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/sprintf-formatting/#post-163489</guid>
					<title><![CDATA[Re: [sprintf] formatting]]></title>
					<link>http://cycling74.com/forums/topic/sprintf-formatting/#post-163489</link>
					<pubDate>Sat, 12 Sep 2009 10:15:41 +0000</pubDate>
					<dc:creator>Luke Hall</dc:creator>

					<description>
						<![CDATA[
						<p>Not that I am aware of. You&#8217;d have to patch together your own way, perhaps storing the output with [zl reg] and using [trigger] to cause bang this only from the desired inlets. If you want only one inlet other than the first to be the trigger then you could always [pack] your inputs into a list and use [zl rot] to change the order.</p>
<p>lh</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/sprintf-formatting/#post-163490</guid>
					<title><![CDATA[Re: [sprintf] formatting]]></title>
					<link>http://cycling74.com/forums/topic/sprintf-formatting/#post-163490</link>
					<pubDate>Tue, 15 Sep 2009 03:58:57 +0000</pubDate>
					<dc:creator>seejayjames</dc:creator>

					<description>
						<![CDATA[
						<p>
<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1">
<tr>
<td class="SmallText"><b>Brian H. wrote on Sat, 12 September 2009 01:21</b></td>
</tr>
<tr>
<td class="quote">Thanks&#8230;[combine] worked OK, just had to break it up a bit more than I was thinking.  But it came together well.  Just to check, there is no way to make a [sprintf] outlet other than the left hot?</td></tr></table></p>



<p>just use [trigger], first store the %s or %c or whatever you want to first, then bang the hot inlet to send out the sprintf result. </p>
<p>like if [UI_VALUE] = a float<br />
[t b f]<br />
f to second inlet, then bang to first.</p>
<p>bang won&#8217;t change the contents, it makes the object spit out what&#8217;s currently there, similar to lots of other objects like zl, pack, matrixctrl, etc.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/sprintf-formatting/#post-163491</guid>
					<title><![CDATA[Re: [sprintf] formatting]]></title>
					<link>http://cycling74.com/forums/topic/sprintf-formatting/#post-163491</link>
					<pubDate>Tue, 15 Sep 2009 05:25:23 +0000</pubDate>
					<dc:creator>Brian H.</dc:creator>

					<description>
						<![CDATA[
						<p>Perfectly fine solution&#8230;I get stuck in a loop where I am compelled to think there *must* be a more elegant solution than the one I&#8217;m imagining, because often there are some wonderful ones&#8230;and then, while this one is not bad at all, there are some that are not so much&#8230;</p>
<p>Thanks much,<br />
Brian</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/sprintf-formatting/#post-163492</guid>
					<title><![CDATA[Re: [sprintf] formatting]]></title>
					<link>http://cycling74.com/forums/topic/sprintf-formatting/#post-163492</link>
					<pubDate>Tue, 15 Sep 2009 05:36:55 +0000</pubDate>
					<dc:creator>seejayjames</dc:creator>

					<description>
						<![CDATA[
						<p>watch out for stack overflows in your brain too. max can cause these.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

