<div dir="ltr"><div class="gmail_quote"><div dir="ltr">[this mail was bounced, so it arrives a bit late to the thread]<br><div><br><div class="gmail_quote">Not sure if this makes sense, but:<div dir="ltr"><div dir="ltr"><div><br></div><div>- are you using data structures graphically, or just to store data? Once you have the model, are data structures really necessary anymore? Gem is much faster if you only need to show the data, but don't need the interaction.<br></div><div>- [array]'s helpfile show how to get/set data from data structures. That could copy the data to normal arrays, so that they're accessed by [tabread~]</div><div>- or see if Miller can add a -s flag to [tabread~] and similars, as it was done with [array]</div><div><br></div><div>jmmmp<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Fr., 3. Jan. 2020 um 18:05 Uhr schrieb x nor <<a href="mailto:x37v.alex@gmail.com" target="_blank">x37v.alex@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>This past week I've finally learned a bit more about data structures in PD and I've successfully created my own data structures that model data from ATS files (sines + noise analysis models).</div><div>The re-synthesis ended up being a bit heavy because I didn't see a way to use tabread~/tabread4~ directly with arrays of complex data, so I patched some helpers that iterate the data structures and create float arrays from the fields as needed.</div><div><br></div><div>I'm wondering if I can replace this with an external that deals with these details internally so I have a few questions before I go down that road:</div><div><br></div><div>1) I see that I can register "pointer" methods for externals.. my structure has a field that stores an array that stores arrays of structs, can I expect to be able to get to that data in an external? Any examples?</div><div>2) If I am able to get to the data, can I mark it as 'used for dsp' somehow like i see you can do for garrays, and then use it within a dsp callback 'safely' or do i need to copy the data into separate float arrays to do that?.. maybe i should reorganize the data so that I don't have to do the copy, but if I end up creating a bunch of float arrays to model the data inside my data structure, can I then somehow treat it as a "garray" and mark it used in dsp and use it in my dsp method?</div><div><br></div><div>Thanks,</div><div>Alex<br></div></div>
_______________________________________________<br>
Pd-dev mailing list<br>
<a href="mailto:Pd-dev@lists.iem.at" target="_blank">Pd-dev@lists.iem.at</a><br>
<a href="https://lists.puredata.info/listinfo/pd-dev" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-dev</a><br>
</blockquote></div><br></div>
</div><br></div></div></div></div>