From f26d2c0855eca34c9f570ab47af79793a4add557 Mon Sep 17 00:00:00 2001 From: manu Date: Thu, 13 Dec 2007 17:07:38 +0000 Subject: [PATCH] Change ASIO.m to asio.m. Then it works on my computer. latency given by get_latency.m should reduced from 1 to give the good results. (not done yet) git-svn-id: http://svn.parisson.org/svn/CNAQ/trunk@137 5fc3e0e6-29bc-4d03-b52b-c088cb822bde --- CNAQ.m | 2 +- config/ASIO.m | 4 ++-- tools/get_latency.m | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CNAQ.m b/CNAQ.m index b8853ba..4108776 100644 --- a/CNAQ.m +++ b/CNAQ.m @@ -130,7 +130,7 @@ path(path, tools_path); path(path, pa_path); path(path, config_path); -[device, latency] = ASIO(); +[device, latency] = asio(); home_dir = uigetdir(root_dir, 'Choisissez votre dossier de travail'); % Get/Set ID diff --git a/config/ASIO.m b/config/ASIO.m index a61b613..69e55cb 100644 --- a/config/ASIO.m +++ b/config/ASIO.m @@ -4,7 +4,7 @@ function [device, latency] = ASIO() % The ASIO device number in the audio sytem -device = 0; +device = 1; % The number of samples in the buffer of the sound card % (delay * f_s = latency time) @@ -16,4 +16,4 @@ device = 0; % If this value is wrong, the phasis results might be also wrong... % BE CAREFUL : your ASIO card MUST be ALONE on its IRQ (see Windows system % settings) -latency = 1424; \ No newline at end of file +latency = 587; \ No newline at end of file diff --git a/tools/get_latency.m b/tools/get_latency.m index 4819418..7f06989 100644 --- a/tools/get_latency.m +++ b/tools/get_latency.m @@ -14,7 +14,7 @@ function [delay, mfv,ecart] = get_latency(device, n) lt=5; t=0:1/44100:lt; sig=0.5*chirp(t,f_min,lt,f_max,'logarithmic'); - len_sig = length(sig) + len_sig = length(sig); %playrecord signal for it = 1:n @@ -26,6 +26,6 @@ function [delay, mfv,ecart] = get_latency(device, n) end - mfv = mode(delay) - ecart = std(delay) + mfv = mode(delay); + ecart = std(delay); -- 2.39.5