]> git.parisson.com Git - cnaq.git/commitdiff
Change ASIO.m to asio.m. Then it works on my computer.
authormanu <manu@5fc3e0e6-29bc-4d03-b52b-c088cb822bde>
Thu, 13 Dec 2007 17:07:38 +0000 (17:07 +0000)
committermanu <manu@5fc3e0e6-29bc-4d03-b52b-c088cb822bde>
Thu, 13 Dec 2007 17:07:38 +0000 (17:07 +0000)
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
config/ASIO.m
tools/get_latency.m

diff --git a/CNAQ.m b/CNAQ.m
index b8853ba0a2086b1c1e77ea3b609c13cc7555bd71..41087767395cca48cab1861098e3c76cdab78623 100644 (file)
--- a/CNAQ.m
+++ b/CNAQ.m
@@ -130,7 +130,7 @@ path(path, tools_path);
 path(path, pa_path);\r
 path(path, config_path);\r
 \r
-[device, latency] = ASIO();\r
+[device, latency] = asio();\r
 home_dir = uigetdir(root_dir, 'Choisissez votre dossier de travail');\r
 \r
 % Get/Set ID\r
index a61b6132ca628500d31c5c54943c606b8e29e4d5..69e55cb389b075674c2796dd6d193d93b74ee5c2 100644 (file)
@@ -4,7 +4,7 @@
 function [device, latency] = ASIO()\r
 \r
 % The ASIO device number in the audio sytem\r
-device = 0;  \r
+device = 1;  \r
 \r
 % The number of samples in the buffer of the sound card\r
 % (delay * f_s = latency time)\r
@@ -16,4 +16,4 @@ device = 0;
 % If this value is wrong, the phasis results might be also wrong...\r
 % BE CAREFUL : your ASIO card MUST be ALONE on its IRQ (see Windows system\r
 % settings)\r
-latency = 1424;
\ No newline at end of file
+latency = 587;
\ No newline at end of file
index 4819418d02abbe28d573d2761d25330d0134263d..7f069893223de70090664e854bd0c75d367457d5 100644 (file)
@@ -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);