/srv/irclogs.ubuntu.com/2021/02/21/#ubuntustudio.txt

=== semitones is now known as semithere
martorhello 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 ardour08:53
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? Thanks12:16
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:36
John122thanks @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:38
* MauroGaspari[m] sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/BfIhRXuPBlBtVjwuRHvFxebX/message.txt >12:39
MauroGaspari[m]I hope it helps! 👍️12:40
John122thanks! 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!12:42
MauroGaspari[m]John122: If it is just a Chromium VS Chrome issue, have you tried with Chrome on the Raspberry PI?13:01
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 ... )13:39
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:06
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.14:19
John122cubuntu turn on sshd15:25
John122whoops sorry, working with two keyboards in front of me and one monitor...15:44
John122ok, 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.15:45
OvenWerksJohn122: so firefox works but chomium does not?18:29
OvenWerksJohn122: there are people using things like Ardour on the R-Pi4 with usb audio18:30
John122OvenWerks: 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 channe18:32
John122ls (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 how18:32
John122or 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
OvenWerksJohn122: do you know if pulse is being used?18:34
John122going to look at snd-aloop and see if I can do it with that18:34
John122no, pulse is disabled18:34
John122just alsa18:34
OvenWerksI think you would want either pulse or jack for routing18:35
OvenWerkspulse can do internal loopbacks18:35
OvenWerksobs (for example) sets up pulse loopbacks18:36
John122I 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 Api18:36
John122I was avoiding pulse because of the added latency but if that is needed, so be it18:37
John122I just need it to work frankly18:37
OvenWerksI do not know enough about the web audio api to really comment18:37
John122it works great on my mac using loopback to create virtual devices, that's the only bit missing on the RPi ("only" ;) )18:38
John122but 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 inputs18:38
OvenWerkssnd-aloop dose it allow setting port bits? you probably need at least terminal but maybe physical set18:38
John122not 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/them18:39
OvenWerksJohn122: I run jack for audio with pulse as a frontend for desktop audio, so that is what I am most familiar with18:41
John122and 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:42
OvenWerksthe 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
OvenWerksskype, firefox, etc seem to accept a jack bridge as a device18:43
John122ok, that sounds promising then18:43
OvenWerksstudio-controls is written in python3 and I think it can be installed on armhf18:44
John122I'll go and search but any good starting points you could point me at ? no worries if not18:44
John122ah, that is your app?18:45
John122ah sorry, my daughter is insisting we videocall her gran. bbl. thanks.18:49
OvenWerksJohn122: all of the interesting bits are in: https://github.com/ovenwerks/studio-controls/blob/master/usr/bin/autojack18:56
OvenWerkslines 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
John122great thanks, I'll look into this now19:08
OvenWerksstarting jack is under that, but you can use a jackd command line just as easy19:09
John122I 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:10
OvenWerkslines 482-492 shows setting up pulse-jack bridges manually.19:11
PelleEXIT19:15
OvenWerksif studio-controls installs, it should work fine. The question is probably if all the python modiles are available to you.19:15
OvenWerksPelle: /quit maybe?19:15
OvenWerksPelle: or /window close19:16
John122I'll give it a try in a few minutes19:18
John122jack 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:43
John122sorry, that overwrote that I typed...19:44
John122i meant to say "it seems to be working but jack isn't starting"19:44
OvenWerksJohn122: you may not have jackdbus19:48
John122OvenWerks: no, I have it in /bin/19:52
John122OvenWerks: 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:11
John122I 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:12
John122OvenWerks: 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?20:51
OvenWerksJohn122: I don't know. can you try cat ~/.log/jack/jackdbus.log |pastebinit21:10
OvenWerksand cat ~/.log/autojack.log |pastebinit21:11
OvenWerksand post the urls here?21:11
OvenWerksI can't loom at it right now, but in an hour or two, I will be back21:12
John122ok great thank you21:14
John122OvenWerks: http://paste.debian.net/1186362/21:23
OvenWerkshmm, 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:44
OvenWerksI see new client controls lots of times, but one of the first new clients after system should be autojack if autojack started jack21:46
OvenWerksso... it could also be that autojack fails to start for you.21:47
OvenWerksif you do autojack on the commandline what does to put out?21:47
OvenWerksalso, which version of studio-controls do you have?21:48
OvenWerksit 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 actually21:50
John122ah21:55
John122File "/usr/local/bin/autojack", line 40, in <module>21:55
John122    import alsaaudio21:55
John122ModuleNotFoundError: No module named 'alsaaudio'21:55
OvenWerksso missing a package21:56
John1222.1.221:56
John122yes21:56
John122python-alsaaudio is already the newest version (0.8.4-1).21:59
John1220 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.21:59
John122from what I can see it should be in here but21:59
OvenWerksis there a python3-alsaaudio?22:00
OvenWerksstill...I don't know22:00
OvenWerksI am not at the right machine for this :P22:01
John122:) No problem, thanks for the help so far. Hopefully I'll get there ;)22:01
* OvenWerks has to get his wife out the door to work so gone for a bit.22:02
John122yes, that was it. python 3 version needed22:02
John122OvenWerks: 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.23:13

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!