<?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: making long lists from pairs</title>
		<atom:link href="http://cycling74.com/forums/topic/making-long-lists-from-pairs/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/making-long-lists-from-pairs/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 07:44:55 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/making-long-lists-from-pairs/#post-32463</guid>
					<title><![CDATA[making long lists from pairs]]></title>
					<link>http://cycling74.com/forums/topic/making-long-lists-from-pairs/#post-32463</link>
					<pubDate>Thu, 14 Jun 2007 13:51:53 +0000</pubDate>
					<dc:creator>Christopher</dc:creator>

					<description>
						<![CDATA[
						<p>Dear maxers,</p>
<p>I&#8217;m trying to build a patch that takes a row of pixel values from a matrix and maps them to the strength of harmonic partials to feed [oscbank~]. The patch below iters through the list and pairs each value with a partial. But I can&#8217;t find a way to format the resulting pairs back into a list. Obviously there are too many pairs to use [pack], and I can&#8217;t find a way for [coll] to output a list&#8230;any ideas? </p>
<p>Christopher</p>
<p>max v2;<br />
#N vpatcher 155 64 700 586;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 1;<br />
#P newex 15 340 32 196617 print;<br />
#P newex 69 372 62 196617 prepend set;<br />
#P newex 69 427 31 196617 dac~;<br />
#P newex 69 399 62 196617 oscbank~;<br />
#P newex 285 125 79 196617 vexpr $i1/255;<br />
#P newex 69 311 54 196617 pack 0. 0.;<br />
#P message 69 94 169 196617 128 14 56 25 34 21 113 49 170 1;<br />
#P number 204 249 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 176 273 38 196617 * 100;<br />
#P newex 113 169 73 196617 t i b;<br />
#P newex 69 115 86 196617 t b l b;<br />
#P newex 113 202 40 196617 / 255.;<br />
#N counter;<br />
#X flags 0 0;<br />
#P newobj 176 228 66 196617 counter;<br />
#P newex 113 144 25 196617 iter;<br />
#P comment 244 250 67 196617 Fundimental;<br />
#P comment 219 275 90 196617 Harmonic partials;<br />
#P comment 123 224 36 196617 Amps;<br />
#P message 129 350 219 196617 set 110 0.5 220 0.4 330 0.3 440 0.2 550 0.2;<br />
#P window linecount 2;<br />
#P comment 69 57 210 196617 Input a list of 200 or so numbers (from jit.spill) with values from 0-255;<br />
#P comment 129 321 268 196617 How to format the pairs back into a list that looks something like&#8230;?;<br />
#P comment 6 137 80 196617 bang out the list when formed;<br />
#P fasten 15 0 20 0 74 334 20 334;<br />
#P connect 14 0 10 0;<br />
#P fasten 12 0 15 0 181 299 74 299;<br />
#P fasten 3 0 17 0 134 392 74 392;<br />
#P connect 19 0 17 0;<br />
#P connect 17 0 18 0;<br />
#P fasten 17 0 18 1 74 421 95 421;<br />
#P fasten 10 1 7 0 112 138 118 138;<br />
#P connect 7 0 11 0;<br />
#P connect 11 0 9 0;<br />
#P connect 9 0 15 1;<br />
#P connect 11 1 8 0;<br />
#P connect 8 0 12 0;<br />
#P fasten 10 2 8 2 150 147 209 147;<br />
#P connect 13 0 12 1;<br />
#P pop;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/making-long-lists-from-pairs/#post-106857</guid>
					<title><![CDATA[Re: making long lists from pairs]]></title>
					<link>http://cycling74.com/forums/topic/making-long-lists-from-pairs/#post-106857</link>
					<pubDate>Thu, 14 Jun 2007 14:09:07 +0000</pubDate>
					<dc:creator>jbm</dc:creator>

					<description>
						<![CDATA[
						<p>Peter Elsea&#8217;s LObjects are your friend! </p>
<p>If you know how long your final list needs to be, you could use his Lin object, with an argument specifying the total list length.</p>
<p>J.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/making-long-lists-from-pairs/#post-106858</guid>
					<title><![CDATA[Re: making long lists from pairs]]></title>
					<link>http://cycling74.com/forums/topic/making-long-lists-from-pairs/#post-106858</link>
					<pubDate>Thu, 14 Jun 2007 22:15:36 +0000</pubDate>
					<dc:creator>mzed</dc:creator>

					<description>
						<![CDATA[
						<p>Quote: Christopher Keyes wrote on Thu, 14 June 2007 06:51<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
> Dear maxers,<br />
> <br />
> I&#8217;m trying to build a patch that takes a row of pixel values from a matrix and maps them to the strength of harmonic partials to feed [oscbank~]. The patch below iters through the list and pairs each value with a partial. But I can&#8217;t find a way to format the resulting pairs back into a list. Obviously there are too many pairs to use [pack], and I can&#8217;t find a way for [coll] to output a list&#8230;any ideas? <br />
> <br />
> </p>
<p>You&#8217;ve got an order of operations problem with your patch which I haven&#8217;t addressed, but here&#8217;s a list solution:</p>
<p>#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P number 326 348 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P window linecount 1;<br />
#P newex 329 310 27 196617 * 2;<br />
#P newex 66 341 46 196617 zl group;<br />
#P newex 329 197 34 196617 zl len;<br />
#P newex 47 400 32 196617 print;<br />
#P newex 285 125 79 196617 vexpr $i1/255;<br />
#P newex 69 311 54 196617 pack 0. 0.;<br />
#P message 69 94 169 196617 128 14 56 25 34 21 113 49 170 1;<br />
#P number 204 249 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 176 273 38 196617 * 100;<br />
#P newex 113 169 73 196617 t i b;<br />
#P newex 69 115 86 196617 t b l b;<br />
#P newex 113 202 40 196617 / 255.;<br />
#N counter;<br />
#X flags 0 0;<br />
#P newobj 176 228 66 196617 counter;<br />
#P newex 113 144 25 196617 iter;<br />
#P comment 244 250 67 196617 Fundimental;<br />
#P comment 219 275 90 196617 Harmonic partials;<br />
#P comment 123 224 36 196617 Amps;<br />
#P window linecount 2;<br />
#P comment 69 57 210 196617 Input a list of 200 or so numbers (from jit.spill) with values from 0-255;<br />
#P comment 6 137 80 196617 bang out the list when formed;<br />
#P connect 18 0 17 1;<br />
#P connect 18 0 19 0;<br />
#P fasten 8 1 5 0 112 138 118 138;<br />
#P connect 8 1 16 0;<br />
#P connect 12 0 8 0;<br />
#P fasten 10 0 13 0 181 299 74 299;<br />
#P connect 5 0 9 0;<br />
#P connect 9 0 7 0;<br />
#P connect 7 0 13 1;<br />
#P connect 9 1 6 0;<br />
#P connect 6 0 10 0;<br />
#P fasten 8 2 6 2 150 147 209 147;<br />
#P connect 11 0 10 1;<br />
#P connect 16 0 18 0;<br />
#P connect 13 0 17 0;<br />
#P connect 17 0 15 0;<br />
#P window clipboard copycount 20;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/making-long-lists-from-pairs/#post-106859</guid>
					<title><![CDATA[Re: making long lists from pairs]]></title>
					<link>http://cycling74.com/forums/topic/making-long-lists-from-pairs/#post-106859</link>
					<pubDate>Fri, 15 Jun 2007 02:44:50 +0000</pubDate>
					<dc:creator>Christopher</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks mzed!</p>
<p>Great solution and thanks for pointing out the operation order problem&#8230;easy to fix.</p>
<p>Christopher</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

