<?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: if statement and read/writeagain coll in saving clock</title>
		<atom:link href="http://cycling74.com/forums/topic/if-statement-and-readwriteagain-coll-in-saving-clock/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/if-statement-and-readwriteagain-coll-in-saving-clock/feed</link>
		<description></description>
		<pubDate>Tue, 18 Jun 2013 21:28:53 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/if-statement-and-readwriteagain-coll-in-saving-clock/#post-60954</guid>
					<title><![CDATA[if statement and read/writeagain coll in saving clock]]></title>
					<link>http://cycling74.com/forums/topic/if-statement-and-readwriteagain-coll-in-saving-clock/#post-60954</link>
					<pubDate>Sun, 01 Jan 2012 21:17:51 +0000</pubDate>
					<dc:creator>elburz_s</dc:creator>

					<description>
						<![CDATA[
						<p>Hey there,</p>
<p>Been working on this clock for a bit with help from others (Broc has been super helpful so far!), I feel like I&#8217;m making baby steps to having it done. It&#8217;s basically a clock that saves how long you&#8217;ve been working on a project in Ableton as you work. Problems encountered were that having the clock just simply tick into a live.numbox or any other live.* object would write to the undo history, which wasnt good at all. So there&#8217;s a coll in it&#8217;s place now and I&#8217;ve been reading about writeagain and readgain messages going into coll, so my current attempt was to the try have a load bang that would trigger a live.numbox to send its output into an if statement which depending on whether it was 0 or anything other than 0 (if its the first time you dropped it into your session, or if you&#8217;re opening a new session) would either immediately ask you to name the file and save it somewhere, or it would send a readagain to read what it saved from the session before. </p>
<p>I guess before anything else, can readagain and writeagain work over the closing of a session in live? Or does closing the session basically make them just send normal read and write commands when you re-open the session? If it&#8217;s the latter, I&#8217;ll have to think of something else entirely I&#8217;m afraid!</p>
<p>Thanks</p>
<div><span id="toggle60954-0" class="patchtoggle" onmousedown="toggleMaxPatch('post60954-0', 'er60954-0');">&#8211; Pasted Max <span id="maxversion60954-0"></span> Patch, click to <span id="er60954-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----------%0A1377.3oc6Z10ihaCEF9ZleEVndWYG4OyGUUUcW0apzdUusZ0n.wv3pPBJwvt%0ASWs82disSBILfwYmPXXZuf.1wIb7iOG62iS95cSlNO6K7hofeB7mfIS95cSl%0AnqRUwjpxSltN5KKRhJzMaZJ%2ByYy%2BqoyLmRx%2BhTWsDfpqKc65rsxDtTeAnpZE%0Aw51UdsuC2zzMQxEOJRW8PNegzXE3ff68Yy.XRv8vxuvpinxeC9T0EYt4xm1v%0AMWwTQZ40Ve1kYoxzn05yM884hnDvGxRhm15zEh%2BVeZDr7d2XyhzFSVU22t6N%0A0gYuLrDyShdp7OBBcmNPWnCjp3hG57zYdT5pAEO3gCO%2BXO7ZPgV4hu1awWCD%0AB9d1X6zfGZmFVO7YHVPCxDHQHZzv7tQ7XVyKJhVweFb9btPxcGLTajgocZnL%0AcrDCpIimMx7Z0iQrD7CBzu.AxG4ofBtDjyihiVEIRA7jBttpdRNrsvMBSEgQ%0ABzLCCcXZnq9LzIhc76KuKpVUcO2Ek2XHG4zcYD9HLBd9ojHPcDGwD2wrhnYf%0AoKSxhZMwzln7RCTxyefmFMOg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55W8ESPtL%2Bs5ATOV1iuK1iWOm.mB0a8tQ.GERaJcAh.Nv3NQOnmwv01rQX%0AE0yrYFcKYzxSCYldG5xz6bZA1wS9Ah5p%2BBxh8zIGF3rVGZSwCGSpHsmdYTZo%0AOF9HEMuKBTTPyalvkXTwIJvNCENd%2BCaRBmgzpezktD8.xPH6Y.sG7EPFFine%0ADfTpIIIy60V2RDe%2BNhL8uLzFMDyQ8cE0TKvzDPvLOOktkFoYxTL.eNFLdR%2BP%0AtnTg85xbPin83hNtQ0ZPNXMnuCqA7o691c%2Bqs9BnM%0A-----------end_max5_patcher-----------&#038;copied=copied!&#038;;copyto=copy to clipboard"  bgcolor="#ffffff"  wmode="opaque" /> </object></div>
<div id="post60954-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="pastedcode60954-0">----------begin_max5_patcher----------
1377.3oc6Z10ihaCEF9ZleEVndWYG4OyGUUUcW0apzdUusZ0n.wv3pPBJwvt
SWs82disSBILfwYmPXXZuf.1wIb7iOG62iS95cSlNO6K7hofeB7mfIS95cSl
nqRUwjpxSltN5KKRhJzMaZJ+yYy+qoyLmRx+hTWsDfpqKc65rsxDtTeAnpZE
w51UdsuC2zzMQxEOJRW8PNegzXE3ff68Yy.XRv8vxuvpinxeC9T0EYt4xm1v
MWwTQZ40Ve1kYoxzn05yM884hnDvGxRhm15zEh+VeZDr7d2XyhzFSVU22t6N
0gYuLrDyShdp7OBBcmNPWnCjp3hG57zYdT5pAEO3gCO+XO7ZPgV4hu1awWCD
B9d1X6zfGZmFVO7YHVPCxDHQHZzv7tQ7XVyKJhVweFb9btPxcGLTajgocZnL
crDCpIimMx7Z0iQrD7CBzu.AxG4ofBtDjyihiVEIRA7jBttpdRNrsvMBSEgQ
BzLCCcXZnq9LzIhc76KuKpVUcO2Ek2XHG4zcYD9HLBd9ojHPcDGwD2wrhnYf
oK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cAh.Nv3NQOnmwv01rQX
E0yrYFcKYzxSCYldG5xz6bZA1wS9Ah5p+Bxh8zIGF3rVGZSwCGSpHsmdYTZo
OF9HEMuKBTTPyalvkXTwIJvNCENd+CaRBmgzpezktD8.xPH6Y.sG7EPFFine
DfTpIIIy60V2RDe+NhL8uLzFMDyQ8cE0TKvzDPvLOOktkFoYxTL.eNFLdR+P
tnTg85xbPin83hNtQ0ZPNXMnuCqA7o691c+qs9BnM
-----------end_max5_patcher-----------</code></pre></div>
</div>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/if-statement-and-readwriteagain-coll-in-saving-clock/#post-219493</guid>
					<title><![CDATA[Re: if statement and read/writeagain coll in saving clock]]></title>
					<link>http://cycling74.com/forums/topic/if-statement-and-readwriteagain-coll-in-saving-clock/#post-219493</link>
					<pubDate>Sun, 01 Jan 2012 23:30:17 +0000</pubDate>
					<dc:creator>broc</dc:creator>

					<description>
						<![CDATA[
						<p>It&#8217;s unlikely that readagain/writeagain would work across sessions.</p>
<p>So you probably need to store the filename in your patch and use it for read/write operations.<br />
The filename could for example be stored in [textedit] and typed in from the user.</p>
<p>But finding an elegant solution seems tricky. Good luck!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/if-statement-and-readwriteagain-coll-in-saving-clock/#post-219494</guid>
					<title><![CDATA[Re: if statement and read/writeagain coll in saving clock]]></title>
					<link>http://cycling74.com/forums/topic/if-statement-and-readwriteagain-coll-in-saving-clock/#post-219494</link>
					<pubDate>Fri, 06 Jan 2012 05:13:27 +0000</pubDate>
					<dc:creator>elburz_s</dc:creator>

					<description>
						<![CDATA[
						<p>Sorry about the delay getting back to you. Sad to hear that the readagain/writeagain idea wont work. Almost wondering if having a C/C++ external that deals with either the whole saving process or just the naming process might be the best bet. Will have to read up on that. Thanks for all the help again!!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/if-statement-and-readwriteagain-coll-in-saving-clock/#post-219495</guid>
					<title><![CDATA[Re: if statement and read/writeagain coll in saving clock]]></title>
					<link>http://cycling74.com/forums/topic/if-statement-and-readwriteagain-coll-in-saving-clock/#post-219495</link>
					<pubDate>Fri, 06 Jan 2012 12:33:20 +0000</pubDate>
					<dc:creator>eleven_t</dc:creator>

					<description>
						<![CDATA[
						<p>Hey, I suggest looking into [pattr]. Activate parameter_enable attribute and it will save clock state together with your live set ;></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/if-statement-and-readwriteagain-coll-in-saving-clock/#post-219496</guid>
					<title><![CDATA[Re: if statement and read/writeagain coll in saving clock]]></title>
					<link>http://cycling74.com/forums/topic/if-statement-and-readwriteagain-coll-in-saving-clock/#post-219496</link>
					<pubDate>Fri, 06 Jan 2012 14:10:54 +0000</pubDate>
					<dc:creator>broc</dc:creator>

					<description>
						<![CDATA[
						<p>[pattr] can be used to save the clock state but it writes the clock values to the undo history.<br />
As mentioned in the original post, this behavior is not wanted.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

