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.

100 lines

  1. <?php
  2. $PAGE_TITLE = "KXStudio";
  4. $PAGE_SOURCE_1 = ARRAY("/Documentation", "/Documentation", "/Documentation:Manual:jack_configuration");
  5. $PAGE_SOURCE_2 = ARRAY("Documentation", "Manual", "JACK Configuration");
  6. include_once("includes/header.php");
  7. ?>
  8. <div class="level1">
  9. <p>
  10. 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:
  11. </p>
  12. <p>
  13. <a href="<?php echo $ROOT; ?>/screenshots/cadence-jacksettings2.png" class="media" title="cadence-jack-settings.png"><img src="<?php echo $ROOT; ?>/screenshots/cadence-jacksettings2.png" class="media" title="JACK Settings" alt="JACK Settings" /></a>
  14. </p>
  15. </div>
  16. <h2><span name="jack_driver" id="jack_driver">JACK Driver</span></h2>
  17. <div class="level2">
  18. <p>
  19. 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 <acronym title="Advanced Linux Sound Architecture">ALSA</acronym> for your JACK driver.
  20. </p>
  21. <p>
  22. The top 3 drop-down options within Cadence&#039;s <acronym title="Advanced Linux Sound Architecture">ALSA</acronym> 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 <acronym title="Advanced Linux Sound Architecture">ALSA</acronym> 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 onboard <acronym title="Advanced Linux Sound Architecture">ALSA</acronym> 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 <acronym title="Advanced Linux Sound Architecture">ALSA</acronym> device to use for both audio input and output.
  23. </p>
  24. </div>
  25. <h2><span name="jack_properties" id="jack_properties">JACK Properties</span></h2>
  26. <div class="level2">
  27. <p>
  28. 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.
  29. </p>
  30. <p>
  31. <strong>Sample Rate</strong> Due to the way latency is calculated, it is recommended you use 48000 or 96000Hz for the lowest latency.
  32. </p>
  33. <p>
  34. <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.
  35. </p>
  36. <p>
  37. <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.
  38. </p>
  39. <p>
  40. <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.
  41. </p>
  42. </div>
  43. <h2><span name="checking_for_errors_with_cadence-logs" id="checking_for_errors_with_cadence-logs">Checking for errors with cadence-logs</span></h2>
  44. <div class="level2">
  45. <p>
  46. 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.
  47. </p>
  48. </div>
  49. <h2><span name="jack_and_firewire" id="jack_and_firewire">JACK and FireWire</span></h2>
  50. <div class="level2">
  51. <p>
  52. 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.
  53. </p>
  54. </div>
  55. <h2><span name="rtirq_configuration" id="rtirq_configuration">rtirq configuration</span></h2>
  56. <div class="level2">
  57. <p>
  58. 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:
  59. </p>
  60. <p>
  61. RTIRQ_NAME_LIST=“firewire snd usb i8042”
  62. </p>
  63. <p>
  64. Here we see FireWire devices have priority over <acronym title="Advanced Linux Sound Architecture">ALSA</acronym> 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:
  65. </p>
  66. <pre class="code">kdesudo kate /etc/default/rtirq</pre>
  67. </div>
  68. <p><br/></p>
  69. <?php
  70. include_once("includes/footer.php");
  71. ?>