{"id":523,"date":"2023-05-07T15:53:34","date_gmt":"2023-05-07T10:23:34","guid":{"rendered":"https:\/\/www.bhuvankrishna.in\/blog\/?p=523"},"modified":"2023-05-07T17:13:12","modified_gmt":"2023-05-07T11:43:12","slug":"plugging-in-guitar-to-archlinux","status":"publish","type":"post","link":"https:\/\/www.bhuvankrishna.in\/blog\/2023\/05\/07\/plugging-in-guitar-to-archlinux\/","title":{"rendered":"Plugging in Guitar to Archlinux"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I think this method should ideally work for any guitar plugged into the system. It is just taking input from one device and sending it to an output device.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">pacat -r &#8211;latency-msec=1 -d alsa_input.usb-Hercules_Rocksmith_USB_Guitar_Adapter-00.mono-fallback | pacat -p &#8211;latency-msec=1 -d alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink.monitor<\/p>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/gist.github.com\/ericbolo\/1261438048147b97316ff65f1ee105c6\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Another interesting find. Guitarix is quite impressive and fairly easy(though not very easy, it will take some understanding of pipewire, jack, alsa and pulseaudio in other words how does linux audio work) to setup and comes with an inbuild tuner and many presets.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step1<\/strong>:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Install these packages<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo pacman -S guitarix pipewire-jack qpwgraph\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Add your user to the newly created group check if the group already exists if not create it.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo groupadd realtime # creates the group\nsudo usermod -a -G realtime $USER\nsudo usermod -a -G audio $USER<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To reduce latency copy this file and edit the lines to change the value<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cp  \/usr\/share\/pipewire\/jack.conf  ~\/.config\/pipewire\/jack.conf\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then we change the\u00a0<code>node.latency<\/code>\u00a0value to\u00a0<code>128\/48000<\/code>\u00a0by uncommenting and modifying the line.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In\u00a0<code>qpwgraph<\/code>\u00a0make sure you pipe the output of your audio interface to the input of\u00a0<code>guitarix<\/code>\u00a0and the output of\u00a0<code>guitarix<\/code>\u00a0to the input of your speakers. This step took some guessing but it worked out and I was able to connect the guitar to headphones.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For me connecting gx_head_amp directly to output worked but checkout if connecting gx_head_amp > gx_head_fx > output works. What every works. you have to start guitarix and make sure your guitar is connected before running qpwgraph, only the you will see gx_head_amp and gx_head_fx.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once it is connected then you can start tuning your guitar and then check presets and other advanced options.<\/p>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/nayak.io\/posts\/guitar-to-linux\/\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I think this method should ideally work for any guitar plugged into the system. It is just taking input from one device and sending it to an output device. pacat -r &#8211;latency-msec=1 -d alsa_input.usb-Hercules_Rocksmith_USB_Guitar_Adapter-00.mono-fallback | pacat -p &#8211;latency-msec=1 -d alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink.monitor Another interesting find. Guitarix is quite impressive and fairly easy(though not very easy, it will\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.bhuvankrishna.in\/blog\/2023\/05\/07\/plugging-in-guitar-to-archlinux\/\">Read More: Plugging in Guitar to Archlinux &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-523","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/posts\/523","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/comments?post=523"}],"version-history":[{"count":5,"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/posts\/523\/revisions"}],"predecessor-version":[{"id":529,"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/posts\/523\/revisions\/529"}],"wp:attachment":[{"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/media?parent=523"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/categories?post=523"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/tags?post=523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}