tag:blogger.com,1999:blog-1960944672511790691.post1558534754249735189..comments2022-04-03T04:41:17.735-07:00Comments on Arnout's blog: Linux portable wifi guitar amp on an orange pi zeroarre234http://www.blogger.com/profile/04807961375666237936noreply@blogger.comBlogger50125tag:blogger.com,1999:blog-1960944672511790691.post-46386897754561383472021-05-27T10:00:12.735-07:002021-05-27T10:00:12.735-07:00Maybe I missed it in your article, but I didn'...Maybe I missed it in your article, but I didn't see how you matched the impedance of the guitar to the usb sound card.marhttps://www.blogger.com/profile/12154581357654208926noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-60513929703869028102021-03-17T12:34:55.397-07:002021-03-17T12:34:55.397-07:00Hi, that's how I did it yes:) You could also k...Hi, that's how I did it yes:) You could also keep it writable all the time but risk corruption when unplugging it. Alternatively you could create a second RW partition, overlayed just for the config. Then only that could get corrupt worst case. Anyway, if your presets are +- constant, the temporary RW method is pretty workable:)arre234https://www.blogger.com/profile/04807961375666237936noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-88904365792854869362021-03-14T15:33:41.738-07:002021-03-14T15:33:41.738-07:00Hello,
A quick question: what is the best way of ...Hello, <br />A quick question: what is the best way of saving the banks and presets? Is it by mounting the file system as writeable, programming everything and then mounting it as read-only?Anonymoushttps://www.blogger.com/profile/08416626145854868764noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-44845598750418088942021-03-03T12:57:09.735-08:002021-03-03T12:57:09.735-08:00Hello, glad you got it to work! I use the wireless...Hello, glad you got it to work! I use the wireless headset to listen to the sound, and bypass my old guitar amp entirely (if that's what you mean't).arre234https://www.blogger.com/profile/04807961375666237936noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-73936254845700357562021-02-27T20:04:12.896-08:002021-02-27T20:04:12.896-08:00Got it to work, I changed the sound care and sudde...Got it to work, I changed the sound care and suddenly the effects we're there. How do you use this setup in real life? Do you feed the output into the input of a guitar amp?Anonymoushttps://www.blogger.com/profile/08416626145854868764noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-8543852320213105102021-02-27T16:21:45.060-08:002021-02-27T16:21:45.060-08:00OK, sound is coming out, but no effects... I enabl...OK, sound is coming out, but no effects... I enabled different effects, but the sound is still "clean". Any ideas?Anonymoushttps://www.blogger.com/profile/08416626145854868764noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-60422763696323759922021-02-27T14:37:11.633-08:002021-02-27T14:37:11.633-08:00Hello,
I can't get it to work... Here's th...Hello,<br />I can't get it to work... Here's the output of aplay -L<br /> aplay -L<br />null<br /> Discard all samples (playback) or generate zero samples (capture)<br />default:CARD=Set<br /> C-Media USB Headphone Set, USB Audio<br /> Default Audio Device<br />sysdefault:CARD=Set<br /> C-Media USB Headphone Set, USB Audio<br /> Default Audio Device<br />front:CARD=Set,DEV=0<br /> C-Media USB Headphone Set, USB Audio<br /> Front speakers<br />surround21:CARD=Set,DEV=0<br /> C-Media USB Headphone Set, USB Audio<br /> 2.1 Surround output to Front and Subwoofer speakers<br />surround40:CARD=Set,DEV=0<br /> C-Media USB Headphone Set, USB Audio<br /> 4.0 Surround output to Front and Rear speakers<br />surround41:CARD=Set,DEV=0<br /> C-Media USB Headphone Set, USB Audio<br /> 4.1 Surround output to Front, Rear and Subwoofer speakers<br />surround50:CARD=Set,DEV=0<br /> C-Media USB Headphone Set, USB Audio<br /> 5.0 Surround output to Front, Center and Rear speakers<br />surround51:CARD=Set,DEV=0<br /> C-Media USB Headphone Set, USB Audio<br /> 5.1 Surround output to Front, Center, Rear and Subwoofer speakers<br />surround71:CARD=Set,DEV=0<br /> C-Media USB Headphone Set, USB Audio<br /> 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers<br />iec958:CARD=Set,DEV=0<br /> C-Media USB Headphone Set, USB Audio<br /> IEC958 (S/PDIF) Digital Audio Output<br />dmix:CARD=Set,DEV=0<br /> C-Media USB Headphone Set, USB Audio<br /> Direct sample mixing device<br />dsnoop:CARD=Set,DEV=0<br /> C-Media USB Headphone Set, USB Audio<br /> Direct sample snooping device<br />hw:CARD=Set,DEV=0<br /> C-Media USB Headphone Set, USB Audio<br /> Direct hardware device without any conversions<br />plughw:CARD=Set,DEV=0<br /> C-Media USB Headphone Set, USB Audio<br /> Hardware device with all software conversions<br />What/how should I cange the startup script?<br />ThanksAnonymoushttps://www.blogger.com/profile/08416626145854868764noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-33911085109648958512020-11-22T21:18:44.915-08:002020-11-22T21:18:44.915-08:00Hello!
I install ext2SD to see partitions in wind...Hello!<br /><br />I install ext2SD to see partitions in windows, modify the files directly, but then I realized that it did not work, the changes were not saved.<br />i try in the console and I works better, first I run "mount -o remount, rw /", then I modify "boot.sh" and "fstab", reboot.<br /><br />I started the webui, I made some changes, save the new banks and when I removed the power and turned on, everything remained the same without changes.<br />I did all this again but after saving the changes, execute "reboot" from the console and when starting and making changes, they WERE SAVED! :).<br />the only problem in this is that you have to access the console and restart the board every time you want to change or modify something. Is there something I do wrong? ...<br />I confess that I had a lot of fun reading and playing with the commands ... my next challenge would be to test the new webui and modify the initial presets :D<br />My main idea would be to make a portable amplifier with the possibility of customization, with power D.<br />Finding me with his enormous work brought light to my distant project and the desire to learn something newectoplasmahttps://www.blogger.com/profile/01920150582354499061noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-38032818560850086672020-11-22T11:10:39.292-08:002020-11-22T11:10:39.292-08:00Can I ask how you modified the files in windows? I...Can I ask how you modified the files in windows? I guess the SD card is ext4 formatted. Perhaps you modified it directly from a zip image with something like 7zip? (The reason notepad looks weird and notepad++ looks fine is that linux uses different line endings, and notepad++ recognizes this).<br />Aside from modifying it on the image/sd card, you could also do it on the target device itself (using an editor like "nano", but then you'd have to remount the filesystem rw first). You can do that by typing "mount -o remount,rw /". <br /><br />Anyway, there's no need to disable the dhclient (marked with *), but since you don't have ethernet plugged in, you won't notice the difference. You seem to have removed that tar unzipping already (not marked with a star, but that's ok). <br />In fstab, the remount-rw can remain remount-ro (this only happens if the filesystem runs into errors).<br />Other then these points, I would guess it should work.<br />You can check by after booting, log in with the console, and type "mount", or just try to create any file llike "touch /somefile.txt", and see that that does not give an error. If not, the SD card is mounted RW. If the tmpfs mount is disabled, guitarix should then save its config directly to the SD card instead of ramfs, and the change should be presistent. (If tmpfs is mounted, you should see this as well in the output of "mount"). Again, feel free to "touch" a file inside /root/.config/guitarix, or actually inspect the files after you change something in the guitarix webui. The changes should be there, and should then persist after a reboot.<br /><br />Good look anyway!arre234https://www.blogger.com/profile/04807961375666237936noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-30909157741207357412020-11-21T07:33:35.717-08:002020-11-21T07:33:35.717-08:00Hi !
Well, I was paying attention to your instruct...Hi !<br />Well, I was paying attention to your instructions.<br />modify the two files as indicated, I must clarify that I opened them with "notepad" in windows and could not visualize the code well.<br />install notepadcc ++ and everything was much clearer.<br />I was not lucky anyway.<br />I detail the changes in each files here below.<br /><br /><br /><br />FSTAB:<br /><br />UUID=4363f978-5805-4ea7-bc07-55ff06a65466 / ext4 defaults,noatime,nodiratime,commit=600,errors=remount-rw,rw 0 1<br />tmpfs /tmp tmpfs defaults,nosuid 0 0<br /><br /><br /><br />BOOT.SH: ( * ERASED )<br /><br />export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket<br />export HOME=/root<br /><br />service cpufrequtils stop<br />echo userspace > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor<br />echo 960000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq<br />echo 960000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_setspeed<br /><br />* dhclient -i eth0 & <br />* mount -t tmpfs none /root/.config/guitarix/<br />* mount -t tmpfs none /var/lib/misc/<br /><br /><br />cd /root/.config/guitarix/<br />cd /root<br /><br />service dnsmasq restart<br />sleep 1<br />/usr/bin/jackd -dalsa -r48000 -p256 -D -Chw:Device,0 -Phw:Headset,0 &<br />sleep 2<br />guitarix -i system:capture_1 -o system:playback_1 -o system:playback_2 -b E:1 --nogui &<br /><br />cd /root/guitarix-webui/guitarix-webui-0.34.0/websockify/<br /><br />python /root/ownhttpserver/ownserv.py &<br />python websocketproxy.py --web=../webui '*':8000 localhost:7000<br />ectoplasmahttps://www.blogger.com/profile/01920150582354499061noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-89081724999794919072020-11-19T10:47:35.623-08:002020-11-19T10:47:35.623-08:00Good to hear!
To avoid SD card corruption when the...Good to hear!<br />To avoid SD card corruption when the system is hard unpowered, I simply mounted the entire filesystem as read-only, with some tmpfs mounts here and there. The big advantage is that, if it works once, it will always keep working the next boot. But indeed, the disadvantage is that you cannot modify anything like presets:) <br /><br />If you want to change this behavior (and let guitarix persist its config) you can modify the /etc/fstab and change the ro->rw and in /root/boot.sh and delete all the lines that contain "conf" in it (which overlay tmpfs and copy a fixed config every time at boot to it). <br /><br />I did not check out the new webui yet, thanks for the tip:)arre234https://www.blogger.com/profile/04807961375666237936noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-52147221021467915062020-11-19T05:18:03.224-08:002020-11-19T05:18:03.224-08:00good day ! I was finally able to make it sound goo...good day ! I was finally able to make it sound good, I think I needed to get some sleep and then resume xD.<br />I hope I don't bother you with the following questions or wishes rather ...<br />I was able to add, remove and modify effects and banks, but can't save them after restarting the OPI ... is there a way to achieve this? that every time a preset is modified and saved, it gets saved to SD with every reboot?<br />.....<br /><br />Did you see the new webui guitarix that came out a few days ago?ectoplasmahttps://www.blogger.com/profile/01920150582354499061noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-22428012834981735952020-11-18T23:29:28.907-08:002020-11-18T23:29:28.907-08:00Hmm, if you manage to connect to 172.24.1.1:8000, ...Hmm, if you manage to connect to 172.24.1.1:8000, the other one is just the same (172.24.1.1:8001/jackout.thml). Note that you shouldn't expect any real website to load. All this does (type "cat /root/ownwebserver/ownserv.py" to see for your self) is execute a shell command with the ease of a smartphone link (instead of having to log in in the shell and type it manually). Since you already have console access, you -can- just as well do it manually: "sudo /root/restartjackguitsoundcard.sh".<br /><br />The effect of that script, is that jackd is restarted with different alsa ports. If this doesn't work, you should look at the arecord -L and aplay -L output to find out whether your card is actually supported by the alsa.<br /><br />Good luck!arre234https://www.blogger.com/profile/04807961375666237936noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-80340802003706473292020-11-18T14:28:12.307-08:002020-11-18T14:28:12.307-08:00thanks for your answer, well re-install your image...thanks for your answer, well re-install your image and I tried what you told me.<br />I had seen the comment on the address 8001 (I have read your post hundreds of times these days) and I could not access the address, I wrote it in various ways: "172.24.1.1:8001/jackout.thml" - ": 8001 / jack .html "and , http, www, localhost ... etc etc.<br />As you will see, I do not know anything about linux: /, I must say that with this project I am very interested in learning, I have read a lot and how it works does not seem so abstract anymore, but my little knowledge <br />it stopped me... anyway I guess I am typing the wrong address or in the wrong place, I type it in the browser, I first try to connect at 172.24.1.1:8000, I connect without problems and I have constant ping. but I don't know how to open the address to open the xD jack settingsectoplasmahttps://www.blogger.com/profile/01920150582354499061noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-78191296254379579882020-11-18T10:54:43.012-08:002020-11-18T10:54:43.012-08:00Hi,
No prob:) It's probably easier to start f...Hi,<br /><br />No prob:) It's probably easier to start from my image. As you only have a soundcard with both mic and speakers (and no USB headeset), your configuration will be different. I'm guessing this is why you are having these issues?<br /><br />See my post of may, here again:<br /><br />If you only have a USB sound card with both input and output, I have a "preset" on the image actually. You should be able to activate it by surfing to address:8001/jackout.html.<br />In any case, if you ssh into it, "arecord -L" and "aplay -L" should show your sound interfaces. At boot, /root/restartjackguit.sh is called. In there, you will see something like " -Chw:Device,0 -Phw:Headset,0 ". You might have to change that to the relevant interface (if you have multiple). In case of the jackout, the -Phw:Headset,0 is replaced with -Phw:Device,0.<br /><br />If this doesn't yet fix it, you can try posting the output of arecord -L and aplay -L here, to double check that the system actually detects your sound card correctly first.arre234https://www.blogger.com/profile/04807961375666237936noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-33660710089229833942020-11-16T16:41:49.358-08:002020-11-16T16:41:49.358-08:00when I visit the guitarix website there is already...when I visit the guitarix website there is already a bank called "reverb" with various effects activated.<br />Anyway I tried deleting them and loading others, and nothing changed, just clean sound, I couldn't save my own preset either, it always starts with that default bank.<br />I tried to follow the tutorial in detail to configure and record my own image but I only get to the part of installing the jack without being able to then open it to configure the outputs and inputs of my usb audio card.<br />by IR I mean pulse response in wav format.<br />I connect using "putty" through the COM port.<br />I use only common wired headphones and a usb audio card with mic in and headphone out.<br />sorry for the delay in my response, I wanted to keep trying on my own, before bothering you again.<br />From already thank you very much !ectoplasmahttps://www.blogger.com/profile/01920150582354499061noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-52903865449297127072020-11-15T23:39:38.703-08:002020-11-15T23:39:38.703-08:00The default effect in guitarix is "clean"...The default effect in guitarix is "clean". I'm guessing this is what you are hearing? In the web interface, select another effect to actually get some distortion for example. I don't know what you mean with "IR", but you can play wave files for sure, although I never triedarre234https://www.blogger.com/profile/04807961375666237936noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-14936886518152822152020-11-15T14:57:40.114-08:002020-11-15T14:57:40.114-08:00
I am using an orange pi zero like yours, I alread...<br />I am using an orange pi zero like yours, I already made it work, I can access the url, but in the output of the usb audio card I have dry sound, without any effect: /<br />ectoplasmahttps://www.blogger.com/profile/01920150582354499061noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-60383034403426760432020-11-15T13:46:13.392-08:002020-11-15T13:46:13.392-08:00I managed to get it to work, the SD card was corru...I managed to get it to work, the SD card was corrupted.<br />can wav files be loaded from IR´s?<br />ectoplasmahttps://www.blogger.com/profile/01920150582354499061noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-63788759707959577612020-11-08T00:04:42.870-08:002020-11-08T00:04:42.870-08:00Hi, are you using the orange pi zero, or the orang...Hi, are you using the orange pi zero, or the orange pi? The SD card image configures the onboard wifi chipset of the orange pi zero in AP mode, and expects the smartphone to connect to that network wirelessly. Then, you should be able to connect. arre234https://www.blogger.com/profile/04807961375666237936noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-45041312457791150432020-11-08T00:02:44.354-08:002020-11-08T00:02:44.354-08:00Wow, this is awkward, the moderation email for thi...Wow, this is awkward, the moderation email for this post never arrived (or I missed it), and your post remained unpublished for more than two years.. Better late then never I guess. My apologies for that, and glad you found it.arre234https://www.blogger.com/profile/04807961375666237936noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-44524130880266239612020-11-07T19:39:33.987-08:002020-11-07T19:39:33.987-08:00Hello, installed the image in an SD, I connect the...Hello, installed the image in an SD, I connect the USB audio card, I feed the orange PI with a smartphone charger but when I enter the address 172.24.1.1:8000 I don't see anything :(<br />I'm NOT using headphones or any output yet ...ectoplasmahttps://www.blogger.com/profile/01920150582354499061noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-51295643567374286902020-07-27T09:18:47.904-07:002020-07-27T09:18:47.904-07:00Hi chris,
At boot, /root/restartjackguit.sh is ca...Hi chris,<br /><br />At boot, /root/restartjackguit.sh is called. In there, you will see something like " -Chw:Device,0 -Phw:Headset,0 ", C for capture and P for playback device. You can change that to any recognized also interface. Use aplay -L and arecord -L to figure out which one you need.<br /><br />Note: to make modifs to the filesystem you will have to remount it rw: "mount -o remount,rw /"<br /><br />Good luck!arre234https://www.blogger.com/profile/04807961375666237936noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-59913714362660460642020-07-27T07:09:35.133-07:002020-07-27T07:09:35.133-07:00What do I change to make it use the USB headphone ...What do I change to make it use the USB headphone out instead of the bluetooth audio?Chris Rosenauhttps://www.blogger.com/profile/17673776611214598318noreply@blogger.comtag:blogger.com,1999:blog-1960944672511790691.post-71903365621162770282019-05-27T15:05:49.852-07:002019-05-27T15:05:49.852-07:00Hey, so I made some progress.
Running address:...Hey, so I made some progress. <br /><br />Running address:8001/jackout.html first really made a difference. I was able to connect it, get some sound, and the effects worked!<br /><br />I'll mess around with /root/restartjackguit.sh and see if I can get it to load the proper configuration at boot.<br /><br />The next thing I'm experimenting with is connecting a midi foot controller to it. I've been able to get a midi foot controller to work with guitarix on my laptop, but getting it to work with a pi device would be ideal.<br /><br />I followed your directions to make the sd card writable mount -o remount,rw / and then ran sudo apt-get install a2jmidid<br />which installed the bridge to the jack bridge to alsa's midi controls -- only problem was alsa was not installed. So I'm going to poke around and see is I can 1. Get the orange pi to recognize the midi foot controller and 2. use the web api to assign midi controls to different buttons / sliders in guitarix. I will keep you posted. <br /><br />Thanks for your help!Matthttps://www.blogger.com/profile/00644073507435468569noreply@blogger.com