KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

257 lines
14KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
  4. lang="en" dir="ltr">
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <title>
  8. jack_configuration [LinuxMusicians Wiki]
  9. </title>
  10. <meta name="generator" content="DokuWiki Release 2008-05-05" />
  11. <meta name="robots" content="index,follow" />
  12. <meta name="date" content="2013-05-12T09:56:14-0400" />
  13. <meta name="keywords" content="jack_configuration" />
  14. <link rel="search" type="application/opensearchdescription+xml" href="/lib/exe/opensearch.php" title="LinuxMusicians Wiki" />
  15. <link rel="start" href="/" />
  16. <link rel="contents" href="/doku.php?id=jack_configuration&amp;do=index" title="Index" />
  17. <link rel="alternate" type="application/rss+xml" title="Recent Changes" href="/feed.php" />
  18. <link rel="alternate" type="application/rss+xml" title="Current Namespace" href="/feed.php?mode=list&amp;ns=" />
  19. <link rel="alternate" type="text/html" title="Plain HTML" href="/doku.php?do=export_xhtml&amp;id=jack_configuration" />
  20. <link rel="alternate" type="text/plain" title="Wiki Markup" href="/doku.php?do=export_raw&amp;id=jack_configuration" />
  21. <link rel="stylesheet" media="all" type="text/css" href="/lib/exe/css.php?s=all&amp;t=default" />
  22. <link rel="stylesheet" media="screen" type="text/css" href="/lib/exe/css.php?t=default" />
  23. <link rel="stylesheet" media="print" type="text/css" href="/lib/exe/css.php?s=print&amp;t=default" />
  24. <script type="text/javascript" charset="utf-8" src="/lib/exe/js.php?edit=0&amp;write=0" ></script>
  25. <link rel="shortcut icon" href="/lib/tpl/default/images/favicon.ico" />
  26. </head>
  27. <body>
  28. <div class="dokuwiki">
  29. <div class="stylehead">
  30. <div class="header">
  31. <div class="pagename">
  32. [[<a href="/doku.php?id=jack_configuration&amp;do=backlink" title="Backlinks">jack_configuration</a>]]
  33. </div>
  34. <div class="logo">
  35. <a href="/doku.php" name="dokuwiki__top" id="dokuwiki__top" accesskey="h" title="[ALT+H]">LinuxMusicians Wiki</a> </div>
  36. <div class="clearer"></div>
  37. </div>
  38. <div class="bar" id="bar__top">
  39. <div class="bar-left" id="bar__topleft">
  40. <form class="button btn_source" method="post" action="/doku.php"><div class="no"><input type="hidden" name="do" value="edit" /><input type="hidden" name="rev" value="" /><input type="hidden" name="id" value="jack_configuration" /><input type="submit" value="Show pagesource" class="button" accesskey="v" title="Show pagesource [ALT+V]" /></div></form> <form class="button btn_revs" method="get" action="/doku.php"><div class="no"><input type="hidden" name="do" value="revisions" /><input type="hidden" name="id" value="jack_configuration" /><input type="submit" value="Old revisions" class="button" accesskey="o" title="Old revisions [ALT+O]" /></div></form> </div>
  41. <div class="bar-right" id="bar__topright">
  42. <form class="button btn_recent" method="get" action="/doku.php"><div class="no"><input type="hidden" name="do" value="recent" /><input type="hidden" name="id" value="" /><input type="submit" value="Recent changes" class="button" accesskey="r" title="Recent changes [ALT+R]" /></div></form> <form action="/doku.php" accept-charset="utf-8" class="search" id="dw__search"><div class="no"><input type="hidden" name="do" value="search" /><input type="text" id="qsearch__in" accesskey="f" name="id" class="edit" title="[ALT+F]" /><input type="submit" value="Search" class="button" title="Search" /><div id="qsearch__out" class="ajax_qsearch JSpopup"></div></div></form>&nbsp;
  43. </div>
  44. <div class="clearer"></div>
  45. </div>
  46. <div class="breadcrumbs">
  47. <span class="bchead">Trace:</span> <span class="bcsep">&raquo;</span> <span class="curid"><a href="/doku.php?id=jack_configuration" class="breadcrumbs" title="jack_configuration">jack_configuration</a></span> </div>
  48. </div>
  49. <div class="page">
  50. <!-- wikipage start -->
  51. <!-- TOC START -->
  52. <div class="toc">
  53. <div class="tocheader toctoggle" id="toc__header">Table of Contents</div>
  54. <div id="toc__inside">
  55. <ul class="toc">
  56. <li class="level1"><div class="li"><span class="li"><a href="#jack_configuration" class="toc">JACK Configuration</a></span></div>
  57. <ul class="toc">
  58. <li class="level2"><div class="li"><span class="li"><a href="#jack_driver" class="toc">JACK Driver</a></span></div></li>
  59. <li class="level2"><div class="li"><span class="li"><a href="#jack_properties" class="toc">JACK Properties</a></span></div></li>
  60. <li class="level2"><div class="li"><span class="li"><a href="#checking_for_errors_with_cadence-logs" class="toc">Checking for errors with cadence-logs</a></span></div></li>
  61. <li class="level2"><div class="li"><span class="li"><a href="#jack_and_firewire" class="toc">JACK and FireWire</a></span></div></li>
  62. <li class="level2"><div class="li"><span class="li"><a href="#rtirq_configuration" class="toc">rtirq configuration</a></span></div></li></ul>
  63. </li></ul>
  64. </div>
  65. </div>
  66. <!-- TOC END -->
  67. <h1><a name="jack_configuration" id="jack_configuration">JACK Configuration</a></h1>
  68. <div class="level1">
  69. <p>
  70. Most of JACK&#039;s important configuration options are set within the Driver tab of Cadence&#039;s JACK Settings window which you can access via Configure under Cadence&#039;s main window, as shown below:
  71. </p>
  72. <p>
  73. <a href="/lib/exe/detail.php?id=jack_configuration&amp;cache=cache&amp;media=cadence-jack-settings.png" class="media" title="cadence-jack-settings.png"><img src="/lib/exe/fetch.php?w=&amp;h=&amp;cache=cache&amp;media=cadence-jack-settings.png" class="media" title="JACK Settings" alt="JACK Settings" /></a>
  74. </p>
  75. </div>
  76. <h2><a name="jack_driver" id="jack_driver">JACK Driver</a></h2>
  77. <div class="level2">
  78. <p>
  79. The driver column to the left selects which JACK driver you wish to configure and use next time you start JACK with Cadence. Those using FireWire devices should use the FireWire driver but otherwise you should select ALSA for your JACK driver.
  80. </p>
  81. <p>
  82. The top 3 drop-down options within Cadence&#039;s ALSA driver configuration are the most important as these let you select which device(s) to use for physical audio IO. If &#039;Duplex Mode&#039; is enabled then you can assign different ALSA devices to handle Input and Output individually. This could be useful, for example, if you need a mic input but wanted to have your sound output via a USB audio device that doesn&#039;t have a mic input. In this case you could use your computers ALSA device, which likely does have a mic input, as a separate input device. If Duplex Mode is not selected then the top drop-down is used to select the ALSA device to use for both audio input and output.
  83. </p>
  84. </div>
  85. <h2><a name="jack_properties" id="jack_properties">JACK Properties</a></h2>
  86. <div class="level2">
  87. <p>
  88. Sample Rate, Buffer Size and Periods/Buffer determine the base JACK latency. Their default values of 48000, 1024 and 2 respectively should work with most devices but a latency over 10ms is not usually considered good enough to be called realtime. Anyone interested in multitrack recording may wish to experiment with these settings to achieve the lowest, xrun-free latency their hardware will allow. It is possible to achieve 1ms latency with good hardware and the correct configuration.
  89. </p>
  90. <p>
  91. <strong>Sample Rate</strong> Due to the way latency is calculated, it is recommended you use 48000 or 96000Hz for the lowest latency.
  92. </p>
  93. <p>
  94. <strong>Buffer</strong> A smaller buffer gives lower latency. The lowest size most devices can handle is 64. Lower quality hardware may not handle any lower than 512.
  95. </p>
  96. <p>
  97. <strong>Periods/Buffer</strong> The larger the period size, the higher the latency but the less chance of xruns. Experiment with using 2 or 3 periods/buffer.
  98. </p>
  99. <p>
  100. <strong>Extra Latency</strong> To achieve the highest level of precision in overdubbing you should provide the extra latency values (in frames) which can be obtained with jack_iodelay. This process is covered in the Latency chapter.
  101. </p>
  102. </div>
  103. <h2><a name="checking_for_errors_with_cadence-logs" id="checking_for_errors_with_cadence-logs">Checking for errors with cadence-logs</a></h2>
  104. <div class="level2">
  105. <p>
  106. If JACK fails to start you can find out whats causing the problem by checking the Cadence logs. You can access the Cadence logs by launching it from under the &#039;Tools&#039; tab of the main Cadence window or you can run <strong>cadence-logs</strong> from a terminal.
  107. </p>
  108. </div>
  109. <h2><a name="jack_and_firewire" id="jack_and_firewire">JACK and FireWire</a></h2>
  110. <div class="level2">
  111. <p>
  112. kmix and alsamixer do not support FFADO. To adjust levels, enable phantom power and change other options for FireWire devices use ffado-mixer after you have started JACK with the FireWire driver. If you have trouble, running ffado-diag in a terminal may tell you more than Cadence&#039;s JACK error logs.
  113. </p>
  114. </div>
  115. <h2><a name="rtirq_configuration" id="rtirq_configuration">rtirq configuration</a></h2>
  116. <div class="level2">
  117. <p>
  118. This is an optional step that can help reduce latency. rtirq is a script that detects audio devices and prioritises them with the kernel according to a list specified in its configuration file. KXStudio&#039;s default rtirq configuration looks like:
  119. </p>
  120. <p>
  121. RTIRQ_NAME_LIST=“firewire snd usb i8042”
  122. </p>
  123. <p>
  124. Here we see FireWire devices have priority over ALSA and USB devices because its mentioned first. If you are mainly running JACK on a USB device you may wish to make usb the first item in the list by editing that line in the rtirq config file with a command such as:
  125. </p>
  126. <pre class="code">kdesudo kate /etc/default/rtirq</pre>
  127. </div>
  128. <!-- wikipage stop -->
  129. </div>
  130. <div class="clearer">&nbsp;</div>
  131. <div class="stylefoot">
  132. <div class="meta">
  133. <div class="user">
  134. </div>
  135. <div class="doc">
  136. jack_configuration.txt &middot; Last modified: 2013/05/12 09:56 by danboid </div>
  137. </div>
  138. <div class="bar" id="bar__bottom">
  139. <div class="bar-left" id="bar__bottomleft">
  140. <form class="button btn_source" method="post" action="/doku.php"><div class="no"><input type="hidden" name="do" value="edit" /><input type="hidden" name="rev" value="" /><input type="hidden" name="id" value="jack_configuration" /><input type="submit" value="Show pagesource" class="button" accesskey="v" title="Show pagesource [ALT+V]" /></div></form> <form class="button btn_revs" method="get" action="/doku.php"><div class="no"><input type="hidden" name="do" value="revisions" /><input type="hidden" name="id" value="jack_configuration" /><input type="submit" value="Old revisions" class="button" accesskey="o" title="Old revisions [ALT+O]" /></div></form> </div>
  141. <div class="bar-right" id="bar__bottomright">
  142. <form class="button btn_login" method="get" action="/doku.php"><div class="no"><input type="hidden" name="do" value="login" /><input type="hidden" name="sectok" value="ae68f3d42b60f982aef3210a2ce4cb6d" /><input type="hidden" name="id" value="jack_configuration" /><input type="submit" value="Login" class="button" title="Login" /></div></form> <form class="button btn_index" method="get" action="/doku.php"><div class="no"><input type="hidden" name="do" value="index" /><input type="hidden" name="id" value="jack_configuration" /><input type="submit" value="Index" class="button" accesskey="x" title="Index [ALT+X]" /></div></form> <a class="nolink" href="#dokuwiki__top"><input type="button" class="button" value="Back to top" onclick="window.scrollTo(0, 0)" title="Back to top" /></a>&nbsp;
  143. </div>
  144. <div class="clearer"></div>
  145. </div>
  146. </div>
  147. </div>
  148. <div class="footerinc">
  149. <a href="/feed.php" title="Recent changes RSS feed"><img src="/lib/tpl/default/images/button-rss.png" width="80" height="15" alt="Recent changes RSS feed" /></a>
  150. <a href="http://creativecommons.org/licenses/by-nc-sa/2.0/" rel="license" title="Creative Commons License"><img src="/lib/tpl/default/images/button-cc.gif" width="80" height="15" alt="Creative Commons License" /></a>
  151. <a href="http://wiki.splitbrain.org/wiki:donate" title="Donate"><img src="/lib/tpl/default/images/button-donate.gif" alt="Donate" width="80" height="15" /></a>
  152. <a href="http://www.php.net" title="Powered by PHP"><img src="/lib/tpl/default/images/button-php.gif" width="80" height="15" alt="Powered by PHP" /></a>
  153. <a href="http://validator.w3.org/check/referer" title="Valid XHTML 1.0"><img src="/lib/tpl/default/images/button-xhtml.png" width="80" height="15" alt="Valid XHTML 1.0" /></a>
  154. <a href="http://jigsaw.w3.org/css-validator/check/referer?profile=css3" title="Valid CSS"><img src="/lib/tpl/default/images/button-css.png" width="80" height="15" alt="Valid CSS" /></a>
  155. <a href="http://wiki.splitbrain.org/wiki:dokuwiki" title="Driven by DokuWiki"><img src="/lib/tpl/default/images/button-dw.png" width="80" height="15" alt="Driven by DokuWiki" /></a>
  156. <!--
  157. <rdf:RDF xmlns="http://web.resource.org/cc/"
  158. xmlns:dc="http://purl.org/dc/elements/1.1/"
  159. xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  160. <Work rdf:about="">
  161. <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" />
  162. <license rdf:resource="http://creativecommons.org/licenses/by-nc-sa/2.0/" />
  163. </Work>
  164. <License rdf:about="http://creativecommons.org/licenses/by-nc-sa/2.0/">
  165. <permits rdf:resource="http://web.resource.org/cc/Reproduction" />
  166. <permits rdf:resource="http://web.resource.org/cc/Distribution" />
  167. <requires rdf:resource="http://web.resource.org/cc/Notice" />
  168. <requires rdf:resource="http://web.resource.org/cc/Attribution" />
  169. <prohibits rdf:resource="http://web.resource.org/cc/CommercialUse" />
  170. <permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
  171. <requires rdf:resource="http://web.resource.org/cc/ShareAlike" />
  172. </License>
  173. </rdf:RDF>
  174. -->
  175. </div>
  176. <div class="no"><img src="/lib/exe/indexer.php?id=jack_configuration&amp;1369167598" width="1" height="1" alt="" /></div>
  177. </body>
  178. </html>