<div dir="ltr"><div><div>I have a related question.<br><br></div>I am intermediate PD programmer, about 9 months into patching. <br></div><div>I really love PD, despite some quirks. <br><br></div><div>The single most annoying issue I have found so far is the inability for PD to accurately index into large arrays.  <br><br></div><div>The way this manifests is very curious! I first noticed high frequency noise at maybe 6 min. into an array, which gets worse as you move into the file. At 20 min, it's really horrible.  <br><br></div><div>I would say the root cause is <br><br>a) lack of a long integer datatype. Friends, sometimes you really want ints, like accurately indexing into an array, and <br><br><br></div><div>b) lack of precision in (short) floats. <br><br></div><div>People on the FB group promptly told me this is a well-known issue, and directed me to PD-double. This sounds like a wonderful project, however it seems it is only beta, and breaks several of the modules in extended.<br><br></div><div>So I am wondering 2 things:<br><br></div><div>1) What solutions have people come up with for accurately reading big arrays at audio rate, using either pd-extended or vanilla? <br><br></div><div>(I have considered breaking the big file up into smaller arrays, but this is cumbersome). <br></div><div><br></div><div>2) What is the long-term goal at solving this problem? <br><br></div><div>Thanks :)<br></div><div><br><br></div><div><br></div><div><br></div><div><br></div><div><br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 31, 2015 at 5:51 AM, peiman khosravi <span dir="ltr"><<a href="mailto:peimankhosravi@gmail.com" target="_blank">peimankhosravi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Sorry, forgot to reply to all. <br><br><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hello, <br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I
 had this problem in maxMSP recently and found a working solution. Note 
that I was only on a laptop so I don't know how relevant this is to your
 question. Below is the solution I found on the Max forum (I don't have 
the link right now but it should come up on google). <br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">1-
 Read the file [silently] from disk (using sfplay~ or equivalent), at 50
 times the original speed and record the output into a buffer that is 50
 times smaller than the original file. <br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">2-
 You can navigate through this smaller buffer and multiply the output by
 50 to get the correct time pointer into the original file. I then read 
the original file from the disk, instead of loading it into a buffer.<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">3-
 Since I'm making my patch for concert playback, I have put in place a 
checking mechanism that looks for an existing 'waveform' file. (The 
patch automatically names these originalFileName.wave.aif.) If it 
exists, the waveform file is read into the buffer, otherwise, the loaded
 soundfile is 'analysed'. <br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I
 can send you my patch if you are interested. I don't see any reason why
 this can't be implemented in PD. Although the graphical scrolling might
 be slower in PD. I'd be interested to know if this works in PD.   <br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Best,<br></div>Peiman    <br></div></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div><br></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="comic sans ms, sans-serif"><b><a href="http://www.peimankhosravi.co.uk" target="_blank">www.peimankhosravi.co.uk</a> || <a href="http://peimankhosravi.co.uk/miscposts.rss" target="_blank">RSS Feed</a> || <a href="http://spectralkimia.wordpress.com/" target="_blank">Concert News</a></b></font></div></div></div></div>
<br><div class="gmail_quote"><span class="">On 31 March 2015 at 10:18, Stefan Tiedje <span dir="ltr"><<a href="mailto:stefantiedje@googlemail.com" target="_blank">stefantiedje@googlemail.com</a>></span> wrote:<br></span><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello list,<br>
might well be the first post here, though I am well experienced in Max/MSP...<br>
As there is no way to get Max patches run on mobile devices, I want to do it in PD using the MobMuPlat apps for Android/iOS.<br>
The task would be to simply to play a stereo sound file, but of about one hour lebgth. As MobMuPlat only supports vanilla PD I am restricted to that as far as I know.<br>
In the docs and on the net I did not find any way to navigate within that playback. (Its crucial for rehearsals.) The size is too big for loading it into RAM (the mobile devices which are around often have less than 1 GB of RAM), Is there a known way to tackle this seemingly simple task???<br>
A tedious way, I want to avoid, would be to split the sound file into pieces, which would at least let me jump in at specified places, but that would eat up the space on the device, as each piece would have to play until the end...<br>
Of course I would also love to find a way to play back an mp3 and freely navigate within that as well...<br>
Any hints how to proceed are appriciated...<span><font color="#888888"><br>
<br>
Stefan Tiedje<br>
<br>
-- <br>
Les Ondes Memorielles--------x--<br>
-_____-----------|-----------|<u></u>--<br>
-(_|_ ----|\-----|-----()-------<br>
- _|_)----|-----()--------------<br>
---------()----------TJ Shredder<br>
<a href="http://tjshredder.wordpress.com/" target="_blank">http://tjshredder.wordpress.<u></u>com/</a><br>
<br>
______________________________<u></u>_________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/<u></u>listinfo/pd-list</a><br>
</font></span></blockquote></div></div></div><br></div>
<br>_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">--<br>
May you, and all beings<br>
be happy and free from suffering :)<br>
-- ancient Buddhist Prayer (Metta)<br><div><br>Don't forget to sign the <br><font size="4"><b>Pledge to Resist<br></b></font></div><div><font size="4"><b>the Constitution Pipeline:<br></b></font><ul><li><b>The Pledge: <a href="http://TinyURL.com/Pledge2ResistCP" target="_blank">TinyURL.com/Pledge2ResistCP</a></b></li><li><b>More info: <a href="http://TinyURL.com/Pledge2ResistCP1" target="_blank">TinyURL.com/Pledge2ResistCP1</a></b></li></ul></div></div></div>
</div>