<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">What version of Ardour is involved?<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 9, 2017 at 5:56 PM, Markus Grabner <span dir="ltr"><<a href="mailto:mg.2849@w42.at" target="_blank">mg.2849@w42.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">        Hi!<br>
<br>
I recently made some effort to measure the latencies of my audio equipment to<br>
get perfectly aligned capturing and playback with Ardour (version 5.11), and<br>
so far it worked well. However, I failed at a task which I thought should be<br>
one of the easiest. I have a Jack client which takes MIDI input and produces<br>
audio output (actually LinuxSampler, but the same issue can be demonstrated<br>
with the attached minimal Jack client and Ardour session). When recording the<br>
audio output of the Jack MIDI client into an Ardour audio track, I noticed<br>
that the signal is delayed by one Jack period, regardless of the latency set<br>
by the client for its ports. When I change the alignment mode of the audio<br>
track to which I'm recording from "Automatic (Capture Time)" to "Align With<br>
Existing Material", the signal is recorded too early by (m-1)*n+o frames,<br>
where m is the number of periods, n the frame size, and o the output latency<br>
of the Jack server. Latency of the Jack MIDI client does have an effect now,<br>
but only shifts the signal even earlier in time.<br>
<br>
To summarize:<br>
*) In "Align With Capture Time" mode, the audio signal created by the Jack<br>
MIDI client is too late, and latency settings of the Jack MIDI client are<br>
ignored.<br>
*) In "Align With Existing Material" mode, the audio signal created by the<br>
Jack MIDI client is too early, and can only be shifted to an even earlier time<br>
by setting the latency of the Jack MIDI client.<br>
<br>
So what is the recommended way to get frame-accurate recordings of the audio<br>
output of a Jack MIDI client receiving input from an Ardour MIDI track (aside<br>
from manually nudging the recorded regions)?<br>
<br>
        Thanks & kind regards,<br>
                Markus<br>
<br>______________________________<wbr>_________________<br>
ardour-dev mailing list<br>
<a href="mailto:ardour-dev@lists.ardour.org">ardour-dev@lists.ardour.org</a><br>
<a href="http://lists.ardour.org/listinfo.cgi/ardour-dev-ardour.org" rel="noreferrer" target="_blank">http://lists.ardour.org/<wbr>listinfo.cgi/ardour-dev-<wbr>ardour.org</a><br>
<br></blockquote></div><br></div>