<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Ah, and I see in addition to your message you wrote vline~ in the title! Oops.</span></div><div><br><span></span></div><div><span>I don't know what click2bang~ does-- is it aligning its bangs to block boundaries?&nbsp; That's just a guess.<br></span></div><div><br><span></span></div><div><span>-Jonathan<br></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Joćo Pais &lt;jmmmpais@googlemail.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b>
 PD-List &lt;pd-list@iem.at&gt;; Jonathan Wilkes &lt;jancsika@yahoo.com&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, January 24, 2012 6:53 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [PD] precision of vline~ and/or pd messaging<br> </font> </div> <br>
Hmm, I have to correct your message to get a more interesting answer from you :)<br><br>the SR is 48K, and I'm using vline~ already. Theoretically with E Lyon's objects I should also get more messaging precision, or maybe not at all?<br><br>Joćo<br><br>&gt; I'm not sure if this is correct, so someone with a deeper knowledge of Pd can confirm/deny... :)<br>&gt; <br>&gt; 125ms at a samplerate of (I'm guessing) 44100 would mean you're sending a message to [line~]<br>&gt; <br>&gt; every 5512.5 samples.&nbsp; Pd's default blocksize is 64, and when you convert from a control value to<br>&gt; <br>&gt; a signal value using the [line~] method then you are forced to start/end the ramp on block boundaries.<br>&gt; Since 64 does not divide into 5512.5 evenly then there is no way you can perfectly recreate the<br>&gt; <br>&gt; sine tone using this method.&nbsp; (I haven't looked at your example but I would imagine that [line~]<br>&gt; <br>&gt; forces the "remainder"
 to occur over the course of an entire blockthus stretching out that part of<br>&gt; <br>&gt; your sine wave to be longer than you want.)<br>&gt; <br>&gt; <br>&gt; You could recreate it using [vline~] however, because it will let you start/end a ramp in the middle of<br>&gt; <br>&gt; a block, thus giving you higher precision (presumably at a higher CPU cost).<br>&gt; <br>&gt; -Jonathan<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt;&gt; ________________________________<br>&gt;&gt; From: Joćo Pais &lt;<a ymailto="mailto:jmmmpais@googlemail.com" href="mailto:jmmmpais@googlemail.com">jmmmpais@googlemail.com</a>&gt;<br>&gt;&gt; To: PD-List &lt;<a ymailto="mailto:pd-list@iem.at" href="mailto:pd-list@iem.at">pd-list@iem.at</a>&gt;<br>&gt;&gt; Sent: Tuesday, January 24, 2012 4:50 PM<br>&gt;&gt; Subject: [PD] precision of vline~ and/or pd messaging<br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; Hi,<br>&gt;&gt; <br>&gt;&gt; please look at the attached audio file. It's a
 recording of a sinus tone stored in an array, played back with consecutive segments of 125ms. If you look at each multiple of 125ms, you'll see there's a glitch in the waveform. That means, the pd patch isn't fully precise aliging the several fragments together. Or maybe the messaging isn't precisely aligned with the audio.<br>&gt;&gt; For this patch I'm using E Lyon's samm~ and click2bang~ to send the messages, theoretically to have greater precision - and then some counters and table readers make several calculations to get the indexes of the segments. After these message-level calculations, the data goes to vline~ reading from a tabread4~.<br>&gt;&gt; My question is then: is it possible to get messaging and audio in Pd ligned up, so that the resulting audio file is as precise as an original osc~? If so, which objects or parameters should be used instead?<br>&gt;&gt; <br>&gt;&gt; Thanks,<br>&gt;&gt; <br>&gt;&gt; Joao<br>&gt;&gt; <br>&gt;&gt;
 _______________________________________________<br>&gt;&gt; <a ymailto="mailto:Pd-list@iem.at" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>&gt;&gt; UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>&gt;&gt; <br>&gt;&gt; <br><br><br>--Friedenstr. 58<br>10249 Berlin (Deutschland)<br>Tel +49 30 42020091 | Mob +49 162 6843570<br>Studio +49 30 69509190<br><a ymailto="mailto:jmmmpais@googlemail.com" href="mailto:jmmmpais@googlemail.com">jmmmpais@googlemail.com</a> | skype: jmmmpjmmmp<br><br><br> </div> </div> </blockquote></div>   </div></body></html>