<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div style="font-family: Verdana;font-size: 12.0px;">
<div>
<div>> well, I still consider it to be a bug, it's not that it is misleading, it is just not happening because of bug.</div>

<div>> There's nothing to prevent you from reading a delay line to the maximum of what it was specified, if it can't, then the object is buggy.</div>

<div>> If it has some limitation of a block less or so, then there's a simple way to fix it, just add an extra block to the delay line and make it work.</div>

<div> </div>

<div>Of course Pd COULD allocate 'extra' memory according to the blocksize of the reading object, but then it would have to keep track of ALL the objects reading from the buffer and the individual blocksizes they are operating at. Which would be highly inefficient and give no practical benefit. The easier way: changing that sentence in the help file ;-).</div>

<div> </div>

<div>But the additional 64 samples were bothering me and after some testing I discovered something really weird! I'll write this as a new post to the list.</div>

<div> </div>

<div> </div>

<div> 
<div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);">
<div style="margin: 0 0 10.0px 0;"><b>Gesendet:</b> Dienstag, 22. September 2015 um 19:38 Uhr<br/>
<b>Von:</b> "Alexandre Torres Porres" <porres@gmail.com><br/>
<b>An:</b> "Christof Ressi" <christof.ressi@gmx.at>, "Miller Puckette" <mpuckett@imusic1.ucsd.edu><br/>
<b>Cc:</b> Pd-List <pd-list@lists.iem.at><br/>
<b>Betreff:</b> Re: Delay time limit bug (was: PVoc patch "bug"?)</div>

<div>
<div>here's another example, there's a delay line with a size of 2048 samples, in patch with a block size of 2048, and the delay line is only able to delay a maximum of 64 samples </div>

<div class="gmail_extra"> 
<div class="gmail_quote">2015-09-22 14:07 GMT-03:00 Alexandre Torres Porres <span><<a>porres@gmail.com</a>></span>:

<blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;">
<div> 
<div class="gmail_extra"> 
<div class="gmail_quote"><span>2015-09-22 5:56 GMT-03:00 Christof Ressi <span><<a>christof.ressi@gmx.at</a>></span>:</span>

<blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;">
<div>
<div style="font-family: Verdana;font-size: 12.0px;">
<div>
<div><span>You're totally right that the sentence <font face="Verdana"><span style="font-size: 12.0px;">>The delay time is always at least one sample <b>and at most the length of the delay line (specified by the delwrite~)</b>< is misleading.</span></font></span></div>
</div>
</div>
</div>
</blockquote>

<div> </div>

<div>well, I still consider it to be a bug, it's not that it is misleading, it is just not happening because of bug. There's nothing to prevent you from reading a delay line to the maximum of what it was specified, if it can't, then the object is buggy. If it has some limitation of a block less or so, then there's a simple way to fix it, just add an extra block to the delay line and make it work. Anyway, I filed this as a bug report yesterday, I hope it gets checked upon soon, hopefully it'll work for the next Pd release (0.47).</div>

<div> </div>

<div><span> <span style="font-family: Verdana;font-size: 12.0px;"> </span></span></div>

<blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;">
<div style="font-family: Verdana;font-size: 12.0px;">
<div>
<div><span><font face="Verdana"><span style="font-size: 12.0px;">BTW: There's a funny issue when the blocksize of the [delread~] is smaller than the blocksize of the [delwrite~]: </span></font>In that case the [delread~] is reading more often than the delay line itself is actually updated, so you get repetitions of blocks.</span></div>
</div>
</div>
</blockquote>

<div> </div>

<div>Again, i think you can always code it to work around these issues. But in this case, I don't see why not have them both in the same block.</div>

<div> </div>

<div><span> </span></div>

<blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;">
<div style="font-family: Verdana;font-size: 12.0px;">
<div>
<div><span><span>> <span style="font-family: Verdana;font-size: 12.0px;">actually, I made some tests and it is the (</span><span style="font-family: Verdana;font-size: 12.0px;">buffersize - windows size + one block 0f 64 samples</span><span style="font-family: Verdana;font-size: 12.0px;">). </span></span></span></div>

<div><span><span>Are you sure? </span></span></div>
</div>
</div>
</blockquote>

<div> </div>

<div>yep, check the patch I sent, works on vanilla.</div>

<div> </div>

<div>cheers</div>

<div>
<div class="h5">
<div> </div>

<div> </div>

<blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;">
<div style="font-family: Verdana;font-size: 12.0px;">
<div>
<div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);">
<div style="margin: 0 0 10.0px 0;"><b>Gesendet:</b> Montag, 21. September 2015 um 23:05 Uhr<br/>
<span><b>Von:</b> "Alexandre Torres Porres" <<a>porres@gmail.com</a>></span><br/>
<b>An:</b> "Christof Ressi" <<a>christof.ressi@gmx.at</a>>, "Miller Puckette" <<a>mpuckett@imusic1.ucsd.edu</a>>, "<a>pd-list@lists.iem.at</a>" <<a>pd-list@lists.iem.at</a>><br/>
<b>Betreff:</b> Delay time limit bug (was: PVoc patch "bug"?)</div>

<div>
<div>
<div>
<div>> <span style="font-family: Verdana;font-size: 12.0px;">the actual limit of the delay line is the buffersize minus the windows size</span>

<div> </div>

<div>
<div><span style="font-family: Verdana;font-size: 12.0px;">actually, I made some tests and it is the (</span><span style="font-family: Verdana;font-size: 12.0px;">buffersize - windows size + one block 0f 64 samples</span><span style="font-family: Verdana;font-size: 12.0px;">). </span></div>

<div> </div>

<div><font face="Verdana"><span style="font-size: 12.0px;">But anyway, this limitation is what I perceived, but I fail to see why any such limitation should happen. If the delay is "x" long, we should be able to read from "x" behind in time... if not, there's a bug in it. That's how I see it, and why I marked this issue as a potential bug.</span></font></div>

<div> </div>

<div><font face="Verdana"><span style="font-size: 12.0px;">From the [vd~] help file, it says</span></font></div>

<div> </div>

<div><font face="Verdana"><span style="font-size: 12.0px;">"The delay time is always at least one sample <b>and at most the length of the delay line (specified by the delwrite~)</b>"</span></font></div>

<div> </div>

<div><font face="Verdana"><span style="font-size: 12.0px;">So if we can't read it at most from the specified delay line, there's a bug!</span></font></div>

<div> </div>

<div>
<div><span style="font-family: Verdana;font-size: 12.0px;">> since the delay line is only written for every block and you want to read</span></div>

<div><span style="font-family: Verdana;font-size: 12.0px;">> the last N samples from the delay line, [vd~] simply clips to the </span></div>

<div><span style="font-family: Verdana;font-size: 12.0px;">> maximum reading index. </span></div>

<div> </div>

<div><span style="font-family: Verdana;font-size: 12.0px;">Again, I fail to see a reason here. If such a limitation happens, maybe the object could be coded in a way that it allows an extra something to make it possible a total length read out.</span></div>

<div> </div>

<div><span style="font-family: Verdana;font-size: 12.0px;">But I thought that maybe the order forcing of delay objects could be something to take into consideration. Well, I did the order forcing and many such tests, but nothing really changed! </span></div>

<div> </div>

<div><span style="font-family: Verdana;font-size: 12.0px;">I have then the latest version attached. I'm copying miller here and also sending to the list. I'll also post this as a bug report.</span></div>

<div> </div>

<div><span style="font-family: Verdana;font-size: 12.0px;">cheers</span></div>

<div> </div>
</div>
</div>

<div class="gmail_extra"> 
<div class="gmail_quote">2015-09-21 16:45 GMT-03:00 Christof Ressi <span><<a href="http://christof.ressi@gmx.at" target="_blank">christof.ressi@gmx.at</a>></span>:

<blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;">
<div>
<div style="font-family: Verdana;font-size: 12.0px;">
<div>
<div>Hey, as I suspected, you are simply hitting the limit of the delay line. You can test this on your own with the patch I've sent you. Note that the actual limit of the delay line is the buffersize minus the windows size, since the delay line is only written for every block and you want to read the last N samples from the delay line. [vd~] simply clips to the maximum reading index. Note that there isn't any phase difference anymore between the two windows after both have exceeded the limit.</div>

<div> </div>

<div>Cheers</div>

<div> 
<div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);">
<div style="margin: 0 0 10.0px 0;"><b>Gesendet:</b> Montag, 21. September 2015 um 19:53 Uhr<br/>
<span><b>Von:</b> "Alexandre Torres Porres" <<a href="http://porres@gmail.com" target="_blank">porres@gmail.com</a>><br/>
<b>An:</b> "Christof Ressi" <<a href="http://christof.ressi@gmx.at" target="_blank">christof.ressi@gmx.at</a>>, "<a href="http://pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a>" <<a href="http://pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a>></span><br/>
<b>Betreff:</b> Re: Re: PVoc patch "bug"?</div>

<div>
<div>
<div>
<div>I've simplified the patch a lot so many things can be discarded.
<div> </div>

<div>The window size shouldn't affect anything as the reading point in the delay line is fixed. Now I don't have [vline~] or anything, just a steady signal fed to [vd~], when we get close to the end of the delay line it just gets ruined, and that's all that there is to it. There's no flaw in the patch, nothing I didn't think of. It's really something very mysterious or perhaps a bug.<br/>
<br/>
The patch is now simpler and also vanilla compatible. I tried it in the new Pd Vanilla 0.46-7 and I got the same weird behaviour.</div>

<div> </div>

<div>Check attachment please</div>

<div> </div>

<div>cheers</div>
</div>

<div class="gmail_extra"> 
<div class="gmail_quote">2015-09-21 14:12 GMT-03:00 Christof Ressi <span><<a href="http://christof.ressi@gmx.at" target="_blank">christof.ressi@gmx.at</a>></span>:

<blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;">
<div>
<div style="font-family: Verdana;font-size: 12.0px;">
<div>
<div>Well, I just think you're hitting the limit of the delay line. Your window size is 2048 samples, so inside the subpatch that's 2048/(44,1*4) = 11,6 ms. But one window is one hop size (2,9 ms) behind, therefore 11,6 ms + 2,9 ms = 14,5 ms and 1000 ms - 14,5 ms = 985,5 ms --> that's pretty much the limit you were experiencing. Hope that helps.</div>

<div> </div>

<div>Cheers</div>

<div>
<div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);">
<div style="margin: 0 0 10.0px 0;"><b>Gesendet:</b> Montag, 21. September 2015 um 18:27 Uhr<br/>
<span><b>Von:</b> "Alexandre Torres Porres" <<a href="http://porres@gmail.com" target="_blank">porres@gmail.com</a>></span><br/>
<b>An:</b> "Christof Ressi" <<a href="http://christof.ressi@gmx.at" target="_blank">christof.ressi@gmx.at</a>>, "<a href="http://pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a>" <<a href="http://pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a>><br/>
<b>Betreff:</b> Re: PVoc patch "bug"?</div>

<div>
<div>
<div>
<div>my patch has a little issue, I'm saying the delay line is 60000 ms (this is for the wrapping objects) when it's only 4000, but that is not a problem for what I'm asking here as the wrapping doesn't influence anything. It's just something weird that happens even without the wrapping.
<div> </div>

<div>I wonder what's the principle you'd have for not using cyclone :)</div>
</div>

<div class="gmail_extra"> 
<div class="gmail_quote">2015-09-21 12:32 GMT-03:00 Christof Ressi <span><<a>christof.ressi@gmx.at</a>></span>:

<blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;">
<div>
<div style="font-family: Verdana;font-size: 12.0px;">
<div>Hey,</div>

<div> </div>

<div>the first thing I noticed: your [delwrite~] is at 4000 ms, but [s $0-buff_size] is still fed with 60000 ms... Is this on purpose?</div>

<div>The second thing: Even if you got the range for [pong~] right, my guess is that this will create a sudden jump from the end of the delay line to the beginning. You'd need some kind of enveloping to mask the discontinuity. Maybe this won't be noticeable if you pass the 'problematic' area quickly, but might sound terrible if you stay there. In your case, however, it seems that the delay line is simply clipped since you've sent a wrong value to [pong~].</div>

<div>This is just some remote diagnostics, though, since I don't use any cyclone objects as a matter of principle :-D. </div>

<div> </div>

<div>Cheers</div>

<div> </div>

<div>PS: I didn't put this on the list on purpose, because it's only about a specific patch and not something more general. </div>

<div> </div>

<div> 
<div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);">
<div style="margin: 0 0 10.0px 0;"><b>Gesendet:</b> Montag, 21. September 2015 um 06:48 Uhr<br/>
<b>Von:</b> "Alexandre Torres Porres" <<a>porres@gmail.com</a>><br/>
<b>An:</b> "<a>pd-list@lists.iem.at</a>" <<a>pd-list@lists.iem.at</a>>, "Christof Ressi" <<a>christof.ressi@gmx.at</a>><br/>
<b>Betreff:</b> PVoc patch "bug"?</div>

<div>
<div>
<div>
<div>Hi there, still struggling with my circular buffer Phase Vocoder, now I've found an issue that has no apparent reason.
<div> </div>

<div>Check the attached patch please</div>

<div> </div>

<div>the speed is 100% and pitcnh shift is "0", so the signal from vline~ stands still in one particular point in the buffer (read from [vd~]).</div>

<div> </div>

<div>buffer size is 4000 ms, into the PVoc subpatch is supposed to be "1000" for it does oversampling with the overlap of 4 (we've discussed this before). Anyway, I'm using sampstoms~ and mstosamps~ to convert in a way that works for the patch.</div>

<div> </div>

<div>The point is, when getting close to the end of the delay line, things get ruined for no reason! The end of the buffer is 1000 ms, not 4000 ms as pointed above. You can check my patch and see how that goes.</div>

<div> </div>

<div>If the reading point is at somewhere just after the buffer size less a window size plus a hop size (around 985 ms) things get bad.</div>

<div> </div>

<div>I can't find a reason for that in a million years. Please help</div>

<div> </div>

<div>thanks</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></body></html>