<?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: change dim of matrix without altering data</title>
		<atom:link href="http://cycling74.com/forums/topic/change-dim-of-matrix-without-altering-data/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/change-dim-of-matrix-without-altering-data/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 19:08:47 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/change-dim-of-matrix-without-altering-data/#post-65949</guid>
					<title><![CDATA[change dim of matrix without altering data]]></title>
					<link>http://cycling74.com/forums/topic/change-dim-of-matrix-without-altering-data/#post-65949</link>
					<pubDate>Mon, 07 Jan 2013 03:34:15 +0000</pubDate>
					<dc:creator>Robert Stratton</dc:creator>

					<description>
						<![CDATA[
						<p>Is there an optimal way to do this? Say for example I have a &#8220;char 5 5&#8243; matrix and I want to change it to a &#8220;char 1 25&#8243; matrix. Where the underlying data doesn&#8217;t change and isn&#8217;t copied, just the way its dimmed is changed. Hoping there was something like jit.coerce for changing the dimension&#8230;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/change-dim-of-matrix-without-altering-data/#post-237496</guid>
					<title><![CDATA[Re: change dim of matrix without altering data]]></title>
					<link>http://cycling74.com/forums/topic/change-dim-of-matrix-without-altering-data/#post-237496</link>
					<pubDate>Mon, 07 Jan 2013 17:08:47 +0000</pubDate>
					<dc:creator>Christopher Dobrian</dc:creator>

					<description>
						<![CDATA[
						<p>Here&#8217;s one way.</p>
<div><span id="toggle237496-0" class="patchtoggle" onmousedown="toggleMaxPatch('post237496-0', 'er237496-0');">&#8211; Pasted Max <span id="maxversion237496-0"></span> Patch, click to <span id="er237496-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----------%0A697.3oc2W00jaBBE8Y8WAiOmlQPMQ6Sa%2BczoSFzPRHiAbDxGa2Y%2BuWAzMtYa%0ARIzD6l9fvv2m6g68v0W78Bx4GHh.vWAeG348hummtKUGdss8B1fOTThE5oEv%0AH644qCFYFRRNH0culJGufVVBdZCVVSOLig2P.bFImtrfWtcCC7TUIlQ.gcqk%0AscCkURj58E11YEVVrhxVNqlTHM3JJZx3vQ.XbrpBkfzUgiCA%2B33Nw2J61JTa%0Auz4Zj0f1uDA6NzEblTAM8PeqlhK6FwrCxmqHliMHXTy2amgZgB5O0CBaffp2%0AW88UEirj5TbT0dJaNee2gVUSDDlDKobVOSNAoM4nTcUXaQe68pXtLMkACM72%0A0wbn%2BD%2B3.QbAeHi2y6cbffhU35lJThq9NSRMDwTG7chbv2owTlYLkatWzEHO%0AYMlIp3BhizTltbZhCjT3CCIIpzxTkTQCbXKkq54VclvwIgZomrzaRzHJzTEc%0A8zLJ6SpNl0b.pW3nVJxnKYOE.%2BWJHUy22oFgR.PGsdyCYvoNHFAgOLwYmKa.%0AEG5bp.ndQPnHGxDH9AO.BMEcTo1D%2BbcOnO8ND9juUJ4LGuLeKJ3hWkvOZIIm%0A0Rxwrk2bg.FmJHcQ%2BIfD2L2XnQxK0g2XeXB8a0LWP2QxeVU9WSaSRLua3PpI%0An%2BKxL45nqrINmhwc8OkzyInjxN8eN0Vhp%2B2ybB915htSoKOSvQqYNQHoLc5Z%0A8ljJKodSZEc9bhd7vtkQE37Rh1n%2B82g1hGjEv4DL%2BQ3rgNuhSYxVNoQhHYDH%0AMS%2BGfwIcMNdJ2NzmYC7gCFadxQcF7DMb3IxF7fFL7DaAbfC20EzlqK3vQO1.%0Am3ACMI136Lbtx1na9oR1bp6plnT38T0zFudGoRyCj3ppcjZQ6VpARSRDq40p%0AlSFoaRYll5cLnlri1M%2BTe0t8p%2Bu.QW0EI.%0A-----------end_max5_patcher-----------&#038;copied=copied!&#038;;copyto=copy to clipboard"  bgcolor="#ffffff"  wmode="opaque" /> </object></div>
<div id="post237496-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="pastedcode237496-0">----------begin_max5_patcher----------
697.3oc2W00jaBBE8Y8WAiOmlQPMQ6Sa+czoSFzPRHiAbDxGa2Y+uWAzMtYa
RIzD6l9fvv2m6g68v0W78Bx4GHh.vWAeG348hummtKUGdss8B1fOTThE5oEv
H644qCFYFRRNH0culJGufVVBdZCVVSOLig2P.bFImtrfWtcCC7TUIlQ.gcqk
scCkURj58E11YEVVrhxVNqlTHM3JJZx3vQ.XbrpBkfzUgiCA+33Nw2J61JTa
uz4Zj0f1uDA6NzEblTAM8PeqlhK6FwrCxmqHliMHXTy2amgZgB5O0CBaffp2
W88UEirj5TbT0dJaNee2gVUSDDlDKobVOSNAoM4nTcUXaQe68pXtLMkACM72
0wbn+D+3.QbAeHi2y6cbffhU35lJThq9NSRMDwTG7chbv2owTlYLkatWzEHO
YMlIp3BhizTltbZhCjT3CCIIpzxTkTQCbXKkq54VclvwIgZomrzaRzHJzTEc
8zLJ6SpNl0b.pW3nVJxnKYOE.+WJHUy22oFgR.PGsdyCYvoNHFAgOLwYmKa.
EG5bp.ndQPnHGxDH9AO.BMEcTo1D+bcOnO8ND9juUJ4LGuLeKJ3hWkvOZIIm
0Rxwrk2bg.FmJHcQ+IfD2L2XnQxK0g2XeXB8a0LWP2QxeVU9WSaSRLua3PpI
n+KxL45nqrINmhwc8OkzyInjxN8eN0Vhp+2ybB915htSoKOSvQqYNQHoLc5Z
8ljJKodSZEc9bhd7vtkQE37Rh1n+82g1hGjEv4DL+Q3rgNuhSYxVNoQhHYDH
MS+GfwIcMNdJ2NzmYC7gCFadxQcF7DMb3IxF7fFL7DaAbfC20EzlqK3vQO1.
m3ACMI136Lbtx1na9oR1bp6plnT38T0zFudGoRyCj3ppcjZQ6VpARSRDq40p
lSFoaRYll5cLnlri1M+Te0t8p+u.QW0EI.
-----------end_max5_patcher-----------</code></pre></div>
</div>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/change-dim-of-matrix-without-altering-data/#post-237497</guid>
					<title><![CDATA[Re: change dim of matrix without altering data]]></title>
					<link>http://cycling74.com/forums/topic/change-dim-of-matrix-without-altering-data/#post-237497</link>
					<pubDate>Tue, 08 Jan 2013 01:53:17 +0000</pubDate>
					<dc:creator>Robert Stratton</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks Chistopher. I actually am using the jit.spill and jit.fill technique now but its slow &#8211; even slower since I have 4 plane matrices and got to split apart the planes and rejoin them after. The thing that grabs me is that data is exactly the same before and after: in the &#8220;4 char 5 5&#8243; to &#8220;4 char 1 25&#8243; conversion example both matrices have the same 25 RGB values in the same order (I think). Can&#8217;t I leave the data intact and un-copied and just &#8220;header munge&#8221; (disclaimer: I&#8217;m not really sure what that means) the matrix dimensions. This would all happen in a billionth of a millisecond with one object, as opposed to the slow rube goldberg contraption I am using now ;)<br />
Anybody?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/change-dim-of-matrix-without-altering-data/#post-237498</guid>
					<title><![CDATA[Re: change dim of matrix without altering data]]></title>
					<link>http://cycling74.com/forums/topic/change-dim-of-matrix-without-altering-data/#post-237498</link>
					<pubDate>Tue, 08 Jan 2013 06:33:04 +0000</pubDate>
					<dc:creator>Christopher Dobrian</dc:creator>

					<description>
						<![CDATA[
						<p>Sure, the data is the same, and in fact I think (I haven&#8217;t looked at the Jitter SDK in a long time) that the internal storage method is extremely similar, so it would probably not be too tough to make a single Jitter object that does what you&#8217;re suggesting (just changes the matrix dimensions while holding the same data). But I&#8217;m not aware of any object that does that, and as you can see there&#8217;s more than one way to &#8220;flatten&#8221; a 2D matrix into a 1D matrix (by rows top to bottom, or by columns left to right, or by rows bottom to top, or by columns right to left, or by some other algorithm), not to mention trying to figure out a generalizable way to convert any matrix dimension to any other matrix dimension while still retaining the data in a knowable order.</p>
<p>So you might ask yourself why you need to do this conversion. Is it possible that you can just change your ideas about how to access the data in its original form? That is, what can you do with data in a 25&#215;1 matrix that you can&#8217;t do with it in a 5&#215;5 matrix?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/change-dim-of-matrix-without-altering-data/#post-237499</guid>
					<title><![CDATA[Re: change dim of matrix without altering data]]></title>
					<link>http://cycling74.com/forums/topic/change-dim-of-matrix-without-altering-data/#post-237499</link>
					<pubDate>Tue, 08 Jan 2013 08:01:24 +0000</pubDate>
					<dc:creator>tobiasros</dc:creator>

					<description>
						<![CDATA[
						<p>hey, you can use jit.scanwrap:</p>
<div><span id="toggle237499-0" class="patchtoggle" onmousedown="toggleMaxPatch('post237499-0', 'er237499-0');">&#8211; Pasted Max <span id="maxversion237499-0"></span> Patch, click to <span id="er237499-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----------%0A428.3ocwTkraCBCD8L7UX4yzJLak1a86nJJx.tMNhXircVZix%2BdwC3rzkTZR%0AS5ALZFOLukwl09d3B4JlFid.8DxyasumGjxlvqO1COitprlpgxvEyMFo.Gzs%0AUC0TNgKdYrhUZ5ZCIkbaX.hPxruhBcqnQ8eCuBZjrX5MYt9HlOiKpYF.Cxtj%0Ax4lOlsKk40FVGd3Bp3ELZjc2M991kfApkobysMK4hJ4xeVPQ2maecGoSQwes%0AhR9EJJxgohoYBC0vkh8vMgDaQJNGLxv9ksf9Ie.Gz9bA8gnzHXvlC9PNPnru%0AYvFeB1venfDrksrvwACakYqN0kTwREsAkfJmPUspBQbE9rTXDzY.93GUbZ8.%0ANVjk.tR7cG6fdz9Pn4uAPPr944aSspZ7LpQwWcQLLgjqYN2JEkdNlEIENRSB%0AyOlYQ9mLKfK3Zt3i%2BQDDjM%2BgNnVNWU5ZbOwQ6TTESa3B3V8d0DcPMS3UULXa%0Am3p3ZZQMCbivubRNT1DM.1jb0XS1.XC4pwlgLohOQ1zcLh1zrfoz8sDHR6Ut%0AoRkMLK.B4htPniXEaA2Uetusaa7eG3cfCuA%0A-----------end_max5_patcher-----------&#038;copied=copied!&#038;;copyto=copy to clipboard"  bgcolor="#ffffff"  wmode="opaque" /> </object></div>
<div id="post237499-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="pastedcode237499-0">----------begin_max5_patcher----------
428.3ocwTkraCBCD8L7UX4yzJLak1a86nJJx.tMNhXircVZix+dwC3rzkTZR
S5ALZFOLukwl09d3B4JlFid.8DxyasumGjxlvqO1COitprlpgxvEyMFo.Gzs
UC0TNgKdYrhUZ5ZCIkbaX.hPxruhBcqnQ8eCuBZjrX5MYt9HlOiKpYF.Cxtj
x4lOlsKk40FVGd3Bp3ELZjc2M991kfApkobysMK4hJ4xeVPQ2maecGoSQwes
hR9EJJxgohoYBC0vkh8vMgDaQJNGLxv9ksf9Ie.Gz9bA8gnzHXvlC9PNPnru
YvFeB1venfDrksrvwACakYqN0kTwREsAkfJmPUspBQbE9rTXDzY.93GUbZ8.
NVjk.tR7cG6fdz9Pn4uAPPr944aSspZ7LpQwWcQLLgjqYN2JEkdNlEIENRSB
yOlYQ9mLKfK3Zt3i+QDDjM+gNnVNWU5ZbOwQ6TTESa3B3V8d0DcPMS3UULXa
m3p3ZZQMCbivubRNT1DM.1jb0XS1.XC4pwlgLohOQ1zcLh1zrfoz8sDHR6Ut
oRkMLK.B4htPniXEaA2Uetusaa7eG3cfCuA
-----------end_max5_patcher-----------</code></pre></div>
</div>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/change-dim-of-matrix-without-altering-data/#post-237500</guid>
					<title><![CDATA[Re: change dim of matrix without altering data]]></title>
					<link>http://cycling74.com/forums/topic/change-dim-of-matrix-without-altering-data/#post-237500</link>
					<pubDate>Tue, 08 Jan 2013 14:52:26 +0000</pubDate>
					<dc:creator>Christopher Dobrian</dc:creator>

					<description>
						<![CDATA[
						<p>There ya go! Thanks, Tobias. I forgot about that one.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/change-dim-of-matrix-without-altering-data/#post-237501</guid>
					<title><![CDATA[Re: change dim of matrix without altering data]]></title>
					<link>http://cycling74.com/forums/topic/change-dim-of-matrix-without-altering-data/#post-237501</link>
					<pubDate>Wed, 09 Jan 2013 02:05:37 +0000</pubDate>
					<dc:creator>Robert Stratton</dc:creator>

					<description>
						<![CDATA[
						<p>Thats the ticket! Thank Tobias &#8211; and I thought I searched through all those those jit objects that I&#8217;ve never used and understood poorly, but there it is.<br />
Thanks Christopher, for the spending the time to help solve my problem. BTW, in answer to your question of what I can do with a &#8220;4 char 25 1&#8243; matrix that I can&#8217;t do with a &#8220;4 char 5 5&#8243; matrix: I need to output every frame of a playing video as a list to send to an array of LED tiles. But I need to reorder the pixels so that each tile&#8217;s pixels are sent out in consecutive order. To complicate matters I am trying to create a generalized solution for arrays of different sizes and configurations. I&#8217;ve tried a variety of solutions &#8211; currently I&#8217;m using javascript to create the right number of tile-sized jit.submatrix objects and stepping through the tile array a tile at a time. The new solution I&#8217;m investigating is to use jit.expr to reorder the pixels in a single step but the only algorithm I could muster involved &#8220;flattening&#8221; the video data to one dimension so that I only needed to calculate my displacements in x. Also trying to figure out if I can do this somehow in Gen, but so far this is exceeding my capabilities &#8211; the normalization of x and y coordinates in Gen has complicated my determination of a displacement algorithm&#8230;</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

