[08:53] <martor> hello I have just installed Ubuntu studio 20.10 LTS xfce but I am not sure how to find the software installer to add new software and update ardour
[12:16] <John122_> afternon all. I read something that suggested you may be able to help me setup my usb audio interface? But I looked and learned that Ubuntu Studio is a distro and I'm using Raspberry Pi OS on a Raspberry PI 4 (Ubuntu Studio is intel only?). Not sure if someone could still help though please, or point me in another direction where I'll find people who understand audio well? Thanks
[12:36] <MauroGaspari[m]> <John122_ "afternon all. I read something t"> Hello, I am not sure if Ubuntu Studio tools can be installed on ARM, nor if the CPU can handle the increased workload. Having said that, I wrote a couple of tutorials about linux audio. I will link in a minute. I hope it can be a good place to start.
[12:38] <John122> thanks @MauroGaspari[m] that will be useful although I've actually got my AI working now using .asoundrc (not sure it is the best solution so your tutorials will still be good to read). But I think my real problem is not actually the card, it's Web Audio API. What works on Chrome on my mac (enumerateDevices which shows all outputs available) doesn't seem to work in Chromium. Just reading a long thread about it.
[12:38] <John122> ..
[12:39]  * MauroGaspari[m] sent a long message:  < https://matrix.org/_matrix/media/r0/download/matrix.org/BfIhRXuPBlBtVjwuRHvFxebX/message.txt >
[12:40] <MauroGaspari[m]> I hope it helps! 👍️
[12:42] <John122> thanks! Quite depressing that I've invested time and (not much) money on an RPi 4 to replace this mac setup and it seems Chromium just doesn't work properly with Web Audio API, although I've read a few things saying "without workarounds" so trying to find out what those are! thanks again!
[13:01] <MauroGaspari[m]> John122: If it is just a Chromium VS Chrome issue, have you tried with Chrome on the Raspberry PI?
[13:39] <John122> @MauroGaspari[m] can't get Chrome on 32bit Raspberry Pi OS. I'm just about to install Ubuntu on it and see how that goes (there is a beta of 64 bit RPi OS but ... )
[14:06] <MauroGaspari[m]> John122: A friend of mine told me that Ubuntu Mate has images for the Raspberry PI 4 and that is a bit nicer to run on that hardware, compared to Ubuntu full gnome DE.
[14:19] <John122> @MauroGaspari[m] thanks. but just installed. it's only for one specific app (webrtc/web audio) and once set up will be headless and basically untouched, so if it works smoothly, then that's fine. if not, I'll look at trying that.
[15:25] <John122> cubuntu turn on sshd
[15:44] <John122> whoops sorry, working with two keyboards in front of me and one monitor...
[15:45] <John122> ok, well that was a waste of time. forgot, the problem isn't just 32 or 64 bit (it is that too) but it intel vs arm. there is no arm chrome.
[18:29] <OvenWerks> John122: so firefox works but chomium does not?
[18:30] <OvenWerks> John122: there are people using things like Ardour on the R-Pi4 with usb audio
[18:32] <John122> OvenWerks: I think I've found the problem and it's not about the sound card itself. I tested the rubix24 on my macbook and enumeratedevices only shows one device too. So I've been down a blind alley on this. On the mac, with my other AI that I developed this app with, I setup virtual cards with Loopback (the mac app), and they show up and I can setsinkID with them. I need to find out how to send multiple channe
[18:32] <John122> ls (4 in this case) to one audio device. Not sure if I can do it with setsink, but if I use another approach and create an audiocontext and audionode etc, I should be able to. Just trying to work out how
[18:34] <John122> or if I could create virtual sound cards in linux that show up in the Web Api MediaDevices api then that would work too (even better in a way)
[18:34] <OvenWerks> John122: do you know if pulse is being used?
[18:34] <John122> going to look at snd-aloop and see if I can do it with that
[18:34] <John122> no, pulse is disabled
[18:34] <John122> just alsa
[18:35] <OvenWerks> I think you would want either pulse or jack for routing
[18:35] <OvenWerks> pulse can do internal loopbacks
[18:36] <OvenWerks> obs (for example) sets up pulse loopbacks
[18:36] <John122> I think snd-aloop can too can't it? If I go down this route, I just need anything that creates virtual sound cards that look like real ones to the Web Api
[18:37] <John122> I was avoiding pulse because of the added latency but if that is needed, so be it
[18:37] <John122> I just need it to work frankly
[18:37] <OvenWerks> I do not know enough about the web audio api to really comment
[18:38] <John122> it works great on my mac using loopback to create virtual devices, that's the only bit missing on the RPi ("only" ;) )
[18:38] <John122> but at least I now I have the sound card working so I know that isn't the problem. I can play audio out to any of the four inputs
[18:38] <OvenWerks> snd-aloop dose it allow setting port bits? you probably need at least terminal but maybe physical set
[18:39] <John122> not sure tbh. although I've been using linux (mainly for servers) for decades and RPis for various projects for years, I've never really done much audio with it/them
[18:41] <OvenWerks> John122: I run jack for audio with pulse as a frontend for desktop audio, so that is what I am most familiar with
[18:42] <John122> and does that allow you to create virtual sound cards that show up in apps? or just allow you to route audio from one app to another?
[18:43] <OvenWerks> the pulse-jack bridge seems to show up in pulse as a device. more than one pulse-jack bridge can be set up and routing can be done in jack from one bridge to another.
[18:43] <OvenWerks> skype, firefox, etc seem to accept a jack bridge as a device
[18:43] <John122> ok, that sounds promising then
[18:44] <OvenWerks> studio-controls is written in python3 and I think it can be installed on armhf
[18:44] <John122> I'll go and search but any good starting points you could point me at ? no worries if not
[18:45] <John122> ah, that is your app?
[18:49] <John122> ah sorry, my daughter is insisting we videocall her gran. bbl. thanks.
[18:56] <OvenWerks> John122: all of the interesting bits are in: https://github.com/ovenwerks/studio-controls/blob/master/usr/bin/autojack
[19:08] <OvenWerks> lines 412-419 removes pulse modules that see devices and stops auto pulse-jack bridges being set up so we can be more specific.
[19:08] <John122> great thanks, I'll look into this now
[19:09] <OvenWerks> starting jack is under that, but you can use a jackd command line just as easy
[19:10] <John122> I had jack setup yesterday and was trying with one of the gui interfaces but didn't get anywhere and went off on another route... ;)
[19:11] <OvenWerks> lines 482-492 shows setting up pulse-jack bridges manually.
[19:15] <Pelle> EXIT
[19:15] <OvenWerks> if studio-controls installs, it should work fine. The question is probably if all the python modiles are available to you.
[19:15] <OvenWerks> Pelle: /quit maybe?
[19:16] <OvenWerks> Pelle: or /window close
[19:18] <John122> I'll give it a try in a few minutes
[19:43] <John122> jack message received: jack server is not running or cannot be started jack. I've not read any docs yet though so will do that (jack starts from the command line ok)
[19:44] <John122> sorry, that overwrote that I typed...
[19:44] <John122> i meant to say "it seems to be working but jack isn't starting"
[19:48] <OvenWerks> John122: you may not have jackdbus
[19:52] <John122> OvenWerks: no, I have it in /bin/
[20:11] <John122> OvenWerks: is there anything I need to set up before starting Jack in the app? I've selected the default RPi audio (HDMI out) as jack master device, and the Rubix 24 as the master. backend set to alsa.
[20:12] <John122> I have made some progress, using pulseaudio control panel I've unlocked the channels and now see front left, front right, rear left, rear right outputs (but webrtc mediadevices still only show one, so not massively helped)
[20:51] <John122> OvenWerks: If I start jack from the command line, then it works. I've setup pulse bridging and created 4 output bridges, single channel each, mapping to like pulse_out-1 to system:playback_1 etc but they don't show up anywhere?
[21:10] <OvenWerks> John122: I don't know. can you try cat ~/.log/jack/jackdbus.log |pastebinit
[21:11] <OvenWerks> and cat ~/.log/autojack.log |pastebinit
[21:11] <OvenWerks> and post the urls here?
[21:12] <OvenWerks> I can't loom at it right now, but in an hour or two, I will be back
[21:14] <John122> ok great thank you
[21:23] <John122> OvenWerks: http://paste.debian.net/1186362/
[21:44] <OvenWerks> hmm, it wouold seem autojack is not running.... I am thinking you are pre systemd, but an apply or jackstart should force autojack to run anyway.
[21:46] <OvenWerks> I see new client controls lots of times, but one of the first new clients after system should be autojack if autojack started jack
[21:47] <OvenWerks> so... it could also be that autojack fails to start for you.
[21:47] <OvenWerks> if you do autojack on the commandline what does to put out?
[21:48] <OvenWerks> also, which version of studio-controls do you have?
[21:50] <OvenWerks> it shou;d be at the top of the screen in the studio-controls gui, mine shows: Studio Set Up Utility (version: 2.1.0)... latest is 2.1.2 actually
[21:55] <John122> ah
[21:55] <John122> File "/usr/local/bin/autojack", line 40, in <module>
[21:55] <John122>     import alsaaudio
[21:55] <John122> ModuleNotFoundError: No module named 'alsaaudio'
[21:56] <OvenWerks> so missing a package
[21:56] <John122> 2.1.2
[21:56] <John122> yes
[21:59] <John122> python-alsaaudio is already the newest version (0.8.4-1).
[21:59] <John122> 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
[21:59] <John122> from what I can see it should be in here but
[22:00] <OvenWerks> is there a python3-alsaaudio?
[22:00] <OvenWerks> still...I don't know
[22:01] <OvenWerks> I am not at the right machine for this :P
[22:01] <John122> :) No problem, thanks for the help so far. Hopefully I'll get there ;)
[22:02]  * OvenWerks has to get his wife out the door to work so gone for a bit.
[22:02] <John122> yes, that was it. python 3 version needed
[23:13] <John122> OvenWerks: i'm stuck again I'm afraid. Now when I start jack from the app, my hardware devices disappear and the only one there is a virtual device called Dummy, but when I unlock the channels in the pulse control it shows my four channels. What I'm hoping to do is create 4 separate virtual devices.