<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Fastest vanilla way now is to get the range from the source as a list with [array get] and then write to the dest with [array set]. It's faster than you'd think. You can do some minor bounds checking, but the way Pd ranges work mostly takes care of that for you.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 1, 2016 at 1:48 PM, Ed Kelly via Pd-list <span dir="ltr"><<a href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div id="m_-5301765559480199442yui_3_16_0_ym19_1_1480617780634_7416">Hey list,</div><div><br></div><div>Recently my rechunk~ abstraction has ceased to work. I've recently re-installed and, it seems the maxlib/arraycopy object is not working the way it used to. I used to send it a list with</div><div dir="ltr">[sourceArray start end destinationArray(</div><div dir="ltr">values,</div><div dir="ltr">but now, when the source array is longer than the destination array, I get error messages that:</div><div dir="ltr">arraycopy: start point 1223199 out of range for destination chunk_2_13</div><div id="m_-5301765559480199442yui_3_16_0_ym19_1_1480617780634_7539" dir="ltr">Where chunk_2_13 is an array created to be the same length as the chunk I wish to extract.</div><div dir="ltr"><br></div><div dir="ltr">Does anyone have a better way of copying chunks from one array into another? Is there a vanilla way?</div><div dir="ltr"><br></div><div dir="ltr">Questions, questions,</div><div dir="ltr">Ed<br></div><div id="m_-5301765559480199442yui_3_16_0_ym19_1_1480617780634_7343"><span></span></div><div> </div><div class="m_-5301765559480199442signature">_-_-_-_-_-_-_-^-_-_-_-_-_-_-_<br><br>For <b>Lone Shark </b>releases, <b>Pure Data </b>software and published <b>Research</b>, go to <a rel="nofollow" href="http://sharktracks.co.uk/" target="_blank">http://sharktracks.co.uk</a> </div></div></div><br>______________________________<wbr>_________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-list</a><br>
<br></blockquote></div><br></div>