<br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The main factor seems to be that pd only processes control messages in<br>
between audio frames. Reducing the audio latency seems to bring the<br>jitter down to about 5ms but no further when I try it on WinXP or Linux.</blockquote><div><br>Aha... that makes sense to me. So it is not so much just the 'hardware to pd' step, but also the control message passing within PD that is throwing off the timing here. 
<br><br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I would expect USB to add more jitter, as it passes through a more
<br>complex path than serial or MIDI data before being handed to pd.</blockquote><div><br>I think I am basically stuck with USB no matter how I go, as the computers involved here are all eMacs. Using midi or serial would involve a USB interface anyway. 
<br><br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">If you need better timing, why not record the audio into one channel<br>along with the button on the other channel? There is essentially no
<br>jitter with the audio stream because it passes through the sound
<br>hardware at a fixed rate. The button could just emit a click when<br>pressed. Then you have no jitter beyond the time it takes to push the<br>button.</blockquote><div><br>That's an interesting possibility, but I am only really using the button clicking as a simple way to test the timing. In actual use, the input would be a range of values from the rotary encoder of the knob... converting that into audio and back into numerical values seems altogether too complicated (frequency modulation?)
<br>&nbsp;</div></div>However, it brings to mind other possibilities: <br><br>If I modify the HID object to convert it into a signal-based external, then pass the values as signals, the timing should be much tighter?  This seems to have the advantage that the input values will always be automatically lined up with the audio, no matter what the latency is set to.
<br><br>Alternatively, If I incorporate the HID code into my external, and process the knob events myself, I would avoid any additional timing errors and be left with only the jitter inherent to the device, no?<br><br>Thanks much for the info...
<br><br>-Martin. <br>