<?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[[tabsend~] directly to struct data?]]></title><description><![CDATA[<p>this might be a stupid question since i still can't completely wrap my head around all the data structures stuff of Pd ...</p>
<p>i built a little abstraction to visualize 2d input data with a data structures approach. it works quite well - but i was wondering if i might possibly skip the whole part of reading out the arrays and writing the x/y positions for every plot point there (with those [until] loops on [bang~]).</p>
<p>maybe the data-template itself could reference two arrays somehow which directly receive their data through [tabsend~]?</p>
<p>attaching the patch and a screenshot: <a href="/uploads/files/1719045394306-scope2d.pd">scope2d~.pd</a><br />
<img src="/uploads/files/1719045492667-image.png" alt="image.png" class="img-responsive img-markdown" /></p>
<p>EDIT: this question was inspired by the interesting read of <a href="https://forum.pdpatchrepo.info/topic/12059/array-text-pointer" rel="nofollow">https://forum.pdpatchrepo.info/topic/12059/array-text-pointer</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14774/tabsend-directly-to-struct-data</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 07:08:23 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/14774.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 22 Jun 2024 08:42:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [tabsend~] directly to struct data? on Sat, 22 Jun 2024 08:44:51 GMT]]></title><description><![CDATA[<p>this might be a stupid question since i still can't completely wrap my head around all the data structures stuff of Pd ...</p>
<p>i built a little abstraction to visualize 2d input data with a data structures approach. it works quite well - but i was wondering if i might possibly skip the whole part of reading out the arrays and writing the x/y positions for every plot point there (with those [until] loops on [bang~]).</p>
<p>maybe the data-template itself could reference two arrays somehow which directly receive their data through [tabsend~]?</p>
<p>attaching the patch and a screenshot: <a href="/uploads/files/1719045394306-scope2d.pd">scope2d~.pd</a><br />
<img src="/uploads/files/1719045492667-image.png" alt="image.png" class="img-responsive img-markdown" /></p>
<p>EDIT: this question was inspired by the interesting read of <a href="https://forum.pdpatchrepo.info/topic/12059/array-text-pointer" rel="nofollow">https://forum.pdpatchrepo.info/topic/12059/array-text-pointer</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14774/tabsend-directly-to-struct-data</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14774/tabsend-directly-to-struct-data</guid><dc:creator><![CDATA[ben.wes]]></dc:creator><pubDate>Sat, 22 Jun 2024 08:44:51 GMT</pubDate></item><item><title><![CDATA[Reply to [tabsend~] directly to struct data? on Sat, 22 Jun 2024 21:23:48 GMT]]></title><description><![CDATA[<p>let's add this to the data structires manual!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14774/tabsend-directly-to-struct-data/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14774/tabsend-directly-to-struct-data/2</guid><dc:creator><![CDATA[porres]]></dc:creator><pubDate>Sat, 22 Jun 2024 21:23:48 GMT</pubDate></item><item><title><![CDATA[Reply to [tabsend~] directly to struct data? on Sun, 23 Jun 2024 09:56:17 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/porres">@porres</a> said:</p>
<blockquote>
<p>let's add this to the data structures manual!</p>
</blockquote>
<p>feel free! i'd omit the dynamic blocksize in that case to make it even simpler and set the sample count to constant 1024 ... and i also just saw that the tabsend~ should directly write both arrays - no need to have 2 separate ones and a snake~ out:</p>
<ul>
<li><a href="/uploads/files/1719136459106-scope2d-simple.pd">scope2d~-simple.pd</a></li>
</ul>
<p>... but i'm still curious if there's an option to directly use the data written by <code>tabsend~</code> ... i assume that it's not possible though since <code>plot</code> expects a 2d array and there's no way to directly tabsend~ to a 2d array?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14774/tabsend-directly-to-struct-data/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14774/tabsend-directly-to-struct-data/3</guid><dc:creator><![CDATA[ben.wes]]></dc:creator><pubDate>Sun, 23 Jun 2024 09:56:17 GMT</pubDate></item><item><title><![CDATA[Reply to [tabsend~] directly to struct data? on Sun, 23 Jun 2024 18:22:42 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/porres">@porres</a>: now this is a bit crazy: i managed to make the value management <strong>~30 times</strong> faster! (which probably doesn't help much since the bottleneck is the drawing, but anyway ...)</p>
<p>this is almost what i had in mind with the original question and i'm actually a bit perplexed that it works: using <code>array set</code> with <code>-s</code> and <code>-f</code> flags now. that way, i can directly copy the whole array data to the fields of the plot data. didn't check what Pd is doing there technically, but damn, it's extremely cool! - and it also looks really simple now.</p>
<p>here's the patch and a screenshot: <a href="/uploads/files/1719166922536-scope2d-simple.pd">scope2d~-simple.pd</a></p>
<p><img src="/uploads/files/1719166902975-image.png" alt="image.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14774/tabsend-directly-to-struct-data/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14774/tabsend-directly-to-struct-data/4</guid><dc:creator><![CDATA[ben.wes]]></dc:creator><pubDate>Sun, 23 Jun 2024 18:22:42 GMT</pubDate></item><item><title><![CDATA[Reply to [tabsend~] directly to struct data? on Mon, 24 Jun 2024 05:55:29 GMT]]></title><description><![CDATA[<p>yeah, I'd tell you to use [array], and I don't think you can use other objects to write data to an array defined as a Data Structure scalar.</p>
<p>Anyway, this is a very nice 2D oscilloscope for Vanilla, congrats <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /> I wanna add this to the tutorials!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14774/tabsend-directly-to-struct-data/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14774/tabsend-directly-to-struct-data/5</guid><dc:creator><![CDATA[porres]]></dc:creator><pubDate>Mon, 24 Jun 2024 05:55:29 GMT</pubDate></item><item><title><![CDATA[Reply to [tabsend~] directly to struct data? on Mon, 24 Jun 2024 07:00:56 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/porres">@porres</a> said:</p>
<blockquote>
<p>yeah, I'd tell you to use [array]</p>
</blockquote>
<p>now that i know this is possible, it seems obvious to me, too! <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /> ... since the plotted array contains 2 fields though, i didn't assume that it would be an option to copy whole arrays for one field (but maybe the fields are internally represented as separate arrays anyway?).</p>
<blockquote>
<p>and I don't think you can use other objects to write data to an array defined as a Data Structure scalar.</p>
</blockquote>
<p>you're certainly right. although, technically, it could be an additional feature to also provide these <code>-s</code> and <code>-f</code> flags for <code>tabsend~</code>, which would spare the steps of copying the buffers twice.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14774/tabsend-directly-to-struct-data/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14774/tabsend-directly-to-struct-data/6</guid><dc:creator><![CDATA[ben.wes]]></dc:creator><pubDate>Mon, 24 Jun 2024 07:00:56 GMT</pubDate></item><item><title><![CDATA[Reply to [tabsend~] directly to struct data? on Mon, 24 Jun 2024 15:45:14 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ben-wes">@ben.wes</a> said:</p>
<blockquote>
<p>you're certainly right. although, technically, it could be an additional feature to also provide these -s and -f flags for tabsend~, which would spare the steps of copying the buffers twice.</p>
</blockquote>
<p>and [tabwrite~], the question is where to stop....</p>
<p>or maybe add a 'tabsend~' feature to [array] where it can be fed signals.</p>
<p>propose the feature <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14774/tabsend-directly-to-struct-data/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14774/tabsend-directly-to-struct-data/7</guid><dc:creator><![CDATA[porres]]></dc:creator><pubDate>Mon, 24 Jun 2024 15:45:14 GMT</pubDate></item><item><title><![CDATA[Reply to [tabsend~] directly to struct data? on Mon, 24 Jun 2024 18:52:33 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/porres">@porres</a> said:</p>
<blockquote>
<p>and [tabwrite~], the question is where to stop....  or maybe add a 'tabsend~' feature to [array] where it can be fed signals.</p>
</blockquote>
<p>including these modes with [array] certainly sounds like a nice approach, too!</p>
<p>for now, i decided not to propose the feature on github yet though ... i assume that the additional array copy is negligible compared to the data structure drawing. it would certainly be nice to have - but i don't see a use case where this really becomes a requirement, i admit.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14774/tabsend-directly-to-struct-data/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14774/tabsend-directly-to-struct-data/8</guid><dc:creator><![CDATA[ben.wes]]></dc:creator><pubDate>Mon, 24 Jun 2024 18:52:33 GMT</pubDate></item><item><title><![CDATA[Reply to [tabsend~] directly to struct data? on Mon, 24 Jun 2024 21:03:24 GMT]]></title><description><![CDATA[<p>how negligible is it? I thought about it, but my intuition would say that it could make a difference, though I know how it could be just wrong...</p>
<p>anyway, bring it up to github as a request and let the wizards tell you how negligible it is to the point we can forget about it then and make peace with this...</p>
<p>but maybe we could save CPU in more crazy situations, like plotting a 512 channel signal somehow <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14774/tabsend-directly-to-struct-data/9</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14774/tabsend-directly-to-struct-data/9</guid><dc:creator><![CDATA[porres]]></dc:creator><pubDate>Mon, 24 Jun 2024 21:03:24 GMT</pubDate></item></channel></rss>