<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Grid of struct &quot;objects&quot; 16 columns by 4 rows. Im over my head with this.]]></title><description><![CDATA[<p>Im only able to draw one element made up of 3 structs. I have not have any success turning this in to a group of elements to create my song builder. I have had to take many steps back to the most stable version that I have been able to come up with.</p>
<p><img src="/uploads/files/1593580910944-image.png" alt="image.png" class="img-responsive img-markdown" /></p>
<p>The playlist element consists of 3 structs contained inside [pd $0-display]</p>
<p>The first struct is a $0-bang object this bang will trigger the matching # to play the wave  &quot;loop&quot;</p>
<p>The second struct is the play position. &quot;the bright green bar&quot; when a wave is played its play position is updated increasing the size of this green bar. until it == 1.</p>
<p>The last struct is a background panel more details below.</p>
<p><img src="/uploads/files/1593580512329-groupofstructs.png" alt="groupofstructs.png" class="img-responsive img-markdown" /></p>
<p>The arguments for each line inside the text file are as follows.</p>
<p>1- # of wave file we wish to play. (Not to be confused with the current index of the file or line number. this argument will most likely never run in sequential order. It can be any given number.)</p>
<p>2 - R<br />
3 - G<br />
4 - B</p>
<p>The last three arguments are rgb values for the background struct.. Each playlist item should change colors when it is first drawn depending on the values set in the text file.</p>
<p>At this point im stuck I dont know how I should append more copies of this playlist element/subpatch to [pd $0-display].<br />
Also if there is more elements then space allowed I'm going to need some sort of page or bank control to update/show the rest of the playlist items.</p>
<p>I was also thinking of adding a second bang to act as a removal function for when it comes to editing items in the playlist.</p>
<p>here is my current song builder patch.<br />
<a href="/uploads/files/1593580546595-songbuilder.zip">SongBuilder.zip</a></p>
<p>I hope someone can help. I've been struggling with this for a while.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12928/grid-of-struct-objects-16-columns-by-4-rows-im-over-my-head-with-this</link><generator>RSS for Node</generator><lastBuildDate>Tue, 16 Jun 2026 12:44:54 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/12928.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Jul 2020 05:34:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Grid of struct &quot;objects&quot; 16 columns by 4 rows. Im over my head with this. on Wed, 01 Jul 2020 05:34:58 GMT]]></title><description><![CDATA[<p>Im only able to draw one element made up of 3 structs. I have not have any success turning this in to a group of elements to create my song builder. I have had to take many steps back to the most stable version that I have been able to come up with.</p>
<p><img src="/uploads/files/1593580910944-image.png" alt="image.png" class="img-responsive img-markdown" /></p>
<p>The playlist element consists of 3 structs contained inside [pd $0-display]</p>
<p>The first struct is a $0-bang object this bang will trigger the matching # to play the wave  &quot;loop&quot;</p>
<p>The second struct is the play position. &quot;the bright green bar&quot; when a wave is played its play position is updated increasing the size of this green bar. until it == 1.</p>
<p>The last struct is a background panel more details below.</p>
<p><img src="/uploads/files/1593580512329-groupofstructs.png" alt="groupofstructs.png" class="img-responsive img-markdown" /></p>
<p>The arguments for each line inside the text file are as follows.</p>
<p>1- # of wave file we wish to play. (Not to be confused with the current index of the file or line number. this argument will most likely never run in sequential order. It can be any given number.)</p>
<p>2 - R<br />
3 - G<br />
4 - B</p>
<p>The last three arguments are rgb values for the background struct.. Each playlist item should change colors when it is first drawn depending on the values set in the text file.</p>
<p>At this point im stuck I dont know how I should append more copies of this playlist element/subpatch to [pd $0-display].<br />
Also if there is more elements then space allowed I'm going to need some sort of page or bank control to update/show the rest of the playlist items.</p>
<p>I was also thinking of adding a second bang to act as a removal function for when it comes to editing items in the playlist.</p>
<p>here is my current song builder patch.<br />
<a href="/uploads/files/1593580546595-songbuilder.zip">SongBuilder.zip</a></p>
<p>I hope someone can help. I've been struggling with this for a while.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12928/grid-of-struct-objects-16-columns-by-4-rows-im-over-my-head-with-this</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12928/grid-of-struct-objects-16-columns-by-4-rows-im-over-my-head-with-this</guid><dc:creator><![CDATA[RetroMaximus]]></dc:creator><pubDate>Wed, 01 Jul 2020 05:34:58 GMT</pubDate></item><item><title><![CDATA[Reply to Grid of struct &quot;objects&quot; 16 columns by 4 rows. Im over my head with this. on Wed, 01 Jul 2020 09:16:53 GMT]]></title><description><![CDATA[<p>as your playlist element is an abstraction, you could add each player using:</p>
<p><img src="/uploads/files/1593594961429-image.png" alt="image.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12928/grid-of-struct-objects-16-columns-by-4-rows-im-over-my-head-with-this/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12928/grid-of-struct-objects-16-columns-by-4-rows-im-over-my-head-with-this/2</guid><dc:creator><![CDATA[Balwyn]]></dc:creator><pubDate>Wed, 01 Jul 2020 09:16:53 GMT</pubDate></item><item><title><![CDATA[Reply to Grid of struct &quot;objects&quot; 16 columns by 4 rows. Im over my head with this. on Wed, 01 Jul 2020 23:49:47 GMT]]></title><description><![CDATA[<p>Hmm well this is interesting I didn't think of appending the object as a whole. I was to worried about drawing everything.</p>
<p>I am definitely going to play with this.</p>
<p>I already feel a few questions bubbling up but im going to play with this for a day or 2 and see what develops. I feel like once everything is drawn a cloned object  will be needed to update any changes to a given element. such as Button_text being replaced with the first argument on x line of {textfile} and also the rgb color of the playlist element. background. correct me if im wrong?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12928/grid-of-struct-objects-16-columns-by-4-rows-im-over-my-head-with-this/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12928/grid-of-struct-objects-16-columns-by-4-rows-im-over-my-head-with-this/3</guid><dc:creator><![CDATA[RetroMaximus]]></dc:creator><pubDate>Wed, 01 Jul 2020 23:49:47 GMT</pubDate></item><item><title><![CDATA[Reply to Grid of struct &quot;objects&quot; 16 columns by 4 rows. Im over my head with this. on Thu, 02 Jul 2020 11:07:37 GMT]]></title><description><![CDATA[<p>I don't think cloned objects are expected to be visible at the same time, as they are addressed by an index $1 or &quot;all&quot; (I may be wrong) and made visible with [vis index 1( .<br />
What I had in mind was create the object with creation arguments and address those.<br />
I found it difficult to explain in words so I created this demo<br />
Where we create the object &quot;player&quot; with $2 as the x position and with the creation arguments obj-$1 (where $1 is an appended number) and $1 this time representing the colour (and would be $3 if I wasn't being lazy)<br />
Now we can send to the individual players as ob-1, ob-2, ob-3 etc<br />
<a href="/uploads/files/1593687208882-create.zip">create.zip</a><br />
I hope this helps<br />
<img src="/uploads/files/1593687216038-image.png" alt="image.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12928/grid-of-struct-objects-16-columns-by-4-rows-im-over-my-head-with-this/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12928/grid-of-struct-objects-16-columns-by-4-rows-im-over-my-head-with-this/4</guid><dc:creator><![CDATA[Balwyn]]></dc:creator><pubDate>Thu, 02 Jul 2020 11:07:37 GMT</pubDate></item><item><title><![CDATA[Reply to Grid of struct &quot;objects&quot; 16 columns by 4 rows. Im over my head with this. on Thu, 02 Jul 2020 11:51:19 GMT]]></title><description><![CDATA[<p>This is the route I went I made some progress last night and ended with something very similar.</p>
<p>So at the moment all one has to do is click the test values message or any string that is sent to [r ToProgrammer] will be added with the creation arguments.</p>
<p>As soon as I saw your first example I figured that was the route to go. I have a few more things to implement like a page or bank controls in case there is more elements then space allowed. Along changing the color of the background struct i will have to figure out how to calculate rgb values down to 1 single atom for the [obj&lt;  message to understand.</p>
<p>But now for some reason wish seams to crash when I clear the playlist every once and a while. It seams to happen every few hours and I'm not completely sure why but for the most part its fairly stable.</p>
<p><img src="/uploads/files/1593690628990-image.png" alt="image.png" class="img-responsive img-markdown" /></p>
<p><a href="/uploads/files/1593690150540-songbuilder.zip">SongBuilder.zip</a><br />
.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12928/grid-of-struct-objects-16-columns-by-4-rows-im-over-my-head-with-this/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12928/grid-of-struct-objects-16-columns-by-4-rows-im-over-my-head-with-this/5</guid><dc:creator><![CDATA[RetroMaximus]]></dc:creator><pubDate>Thu, 02 Jul 2020 11:51:19 GMT</pubDate></item><item><title><![CDATA[Reply to Grid of struct &quot;objects&quot; 16 columns by 4 rows. Im over my head with this. on Thu, 02 Jul 2020 13:57:37 GMT]]></title><description><![CDATA[<p>Here is a way to convert rgb to struct colours<br />
<a href="/uploads/files/1593698000752-rgb-struct-col.pd">rgb-struct-col.pd</a><br />
<img src="/uploads/files/1593698249858-image.png" alt="image.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12928/grid-of-struct-objects-16-columns-by-4-rows-im-over-my-head-with-this/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12928/grid-of-struct-objects-16-columns-by-4-rows-im-over-my-head-with-this/6</guid><dc:creator><![CDATA[Balwyn]]></dc:creator><pubDate>Thu, 02 Jul 2020 13:57:37 GMT</pubDate></item></channel></rss>