/srv/irclogs.ubuntu.com/2021/03/08/#ubuntustudio.txt

KrausCould someone remind me where the jack config files are located? The one that names bridges and sources and sinks?00:51
KrausIf memory serves, it was a py file?00:52
KrausThink it involved jackd ... it's been a few months, I'm sorry.00:54
tomreyni do not know the answer to your question, Kraus, but maybe running    dpkg -L    against some of the jack packages you have installed (   apt list --installed *jack*  ) can hint on the configuration location.00:57
tomreyne.g. the jackd2 package provides a /usr/share/jackd/audio.conf file https://packages.ubuntu.com/focal/amd64/jackd2/filelist (though that's really an uncommon, if not right-out wrong, location)01:00
tomreynit might be that this just serves as a template which is overridden by another compy placed somewhere into /etc/jack* or /etc/default/jack*01:01
KrausPretty sure it was a python file..01:02
KrausIn lieu of there not being a way to specify output channels, I had to insert a couple lines in the code, twice (in two locations) to tell Jack there are 4 output channels.01:03
KrausThe devs said they would probably add this feature in the next major release.01:04
KrausAaaactually I think I'm asking the wrong channel. I should ask #jack.. That's where they originally told me! Sorry, be back in a bit.01:04
tomreyngood luck01:05
Kraus... Or was it pacmd ....01:28
KrausYES... I forgot!01:37
KrausNope.. nope, still nothing.. can't remember what file it was.. or whether it was a jack for or ubuntu controls file.. damnit02:51
KrausAlright.. I found one piece.. it's a python file called autojack that OvenWerks made. I have a copy of that in my backup folder now.. but I see nowhere in the file where I labeled my channels (front-left, front-right, rear-left, rear-right) ... so that means there must be another file where they were defined... and I can't remember what it was...03:32
OvenWerksKraus: you are looking for the pactl command I think.05:02
OvenWerksback in a while... gotta fry some shrimp05:02
OvenWerksKraus: so far as I know, pulse does a pretty good job of labeling channels depending on the number.06:02
OvenWerksKraus: 1 = mono, 2 = front-left and right, 3 = frontleft and right plus either centre or Lf (can't remember), 4 = front left and right and rear left and right, 5= same as 4 plus lf, 6 = same as 4 plus centre and LF06:05
OvenWerksanything higher adds aux1, 2, etc.06:05
KrausOh hey OvenWerks :)06:41
KrausI remember I specifically had to define the channels and their respective names within some kinda file.06:42
KrausAnd it's making me paranoid because I know if I just let it slide, I'm going to be in a world of hurt once I have the new system installed and don't have it ready.06:42
KrausThere was... some place.. where I had to literally define what I wanted the channels called.06:44
KrausI know of the command you're talking about, though. But if memory serves, ubuntu studio controls overrides whatever pulse command I give .. I think either when I rebooted or when I reloaded jack or something.. there was some file where I use the channel_map parameter.06:46
OvenWerks   /etc/pulse/ has 4 files in it maybe one of them?06:47
KrausI just wish I had written down all the steps I did last September.06:47
KrausLet me see...06:47
Krausclient.conf  client.conf.d  daemon.conf  default.pa  system.pa06:48
KrausI recall looking at this page while figuring things out: https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/06:49
Krauschannel_map06:49
Kraus    Channel map. A list of comma-separated channel names. The currently defined channel names are: left, right, mono, center, front-left, front-right, front-center, rear-center, rear-left, rear-right, lfe, subwoofer, front-left-of-center, front-right-of-center, side-left, side-right, aux0, aux1 to aux15, top-center, top-front-left, top-front-right, top-front-center, top-rear-left, top-rear-right, top-rear-center, (Default depends on06:49
Krausthe number of channels and the driver)06:49
OvenWerksyeah, that can be set with pactl command while loading the jack sink module06:49
KrausRight.06:50
KrausMaaaaybe it was that command in conjunction with autojack06:50
KrausIn other words, maybe autojack set the number of channels.. then I mapped them out? I do have a few commands of that in my bash_history06:50
KrausWhat I can't remember is if I did those commands before or after you taught me about autojack.06:51
OvenWerksif autojack is set not to create your bridge then it can be created after in a script06:51
KrausI remember I attempted to do pacmd but then discovered studio controls would undo my command... but I'm seeing two sets of attempts..06:52
KrausI'm proud of myself.. after plenty of searching, it was me who finally remembered autojack was located in /usr/bin/ :)06:53
OvenWerksThe default map only goes up to 6 and then default to the rest aux. (I have an ice1712 based devices which shows 8)06:53
OvenWerksyup, that is where it is. feel free to hack the part that starts your bridge.06:54
KrausYeah, already did that last year...06:54
Krausat least I think.06:54
KrausI can show you all that I have in there06:54
OvenWerks if bridge == mybridge:06:54
OvenWerksbridge command06:55
OvenWerkselse:06:55
OvenWerksnormal bridge command06:55
OvenWerksThe hard part really would be the GUI06:55
KrausI have a very distinct memory of me putting the channel_map into a file, though..06:55
KrausIs there a way I can have bash search for all files containing the string "channel_map" on my harddrive?06:56
OvenWerksYeah, there is another place06:56
KrausAnd I'd love to learn how to work on that GUI like I said I would. :) Life just took hold of me and I eventually forgot.06:57
OvenWerksmaybe in /usr/share/pulseaudio/alsa-mixer/profile-sets?06:59
KrausI ran across that during my searching around.. let me go through that with a fine tooth comb..06:59
OvenWerksthere are lots of files with channel-map in there07:00
OvenWerksalso input-mapping and output-mappings07:00
KrausVisually, these .conf files don't ring a bell for me, because I remember the file I inserted the lines into were more like a python script...07:00
KrausLet me keep looking07:01
Kraus/usr/share/pulseaudio/alsa-mixer/profile-sets has conf files that look like they have to do specifically with different devices rather than a pacmd type thing..07:02
KrausAhh, no, okay, it was specificalled channel underscore map, not hyphen.07:02
KrausSo no, these definitely aren't them.07:02
KrausCan't believe I figured this out the first time around. XD07:03
OvenWerkspersonally, I would be happy if they were just called ch1 to chn and could be accessed individually or as a specific set within pulse...07:04
KrausI'd really be curious to find out who coded all this originally, and how long ago. Some of this code goes back decades I bet.07:05
KrausIs there a place where modules are held as files?07:06
KrausOr are they just commands.. "load-module" etc07:07
Krausmodule-jack-sink07:09
KrausAhhah.. they're all binaries in /usr/lib/pulse-13.99.1/modules/module-jack-sink.so07:12
KrausBut they aren't scripts.07:12
KrausSo.. the script Ilm looking for calls these commands... so it's somewhere else...07:12
KrausI must sleep. Will pick this up tomorrow.08:20
AppAraat[m]Hi, until when will 20.04 be supported here?09:08
OvenWerksAppAraat[m]: I think 20.04 is supported till 23.04, so a year after the next lts comes out. (22.04)14:55
OvenWerksEickmeyer[m]: ^^ is that right?14:55
John122OvenWerks: Morning OvenWerks, just to let you know I got the 4th one working. Just made a copy of the sd card from one of the other working clients and changed the hostname back etc. No idea what it was but something I'd done at some point presumably, but now (especially after my final balanced cable came today), I have perfectly sounding audio from all 4 to the mixing desk! thanks again15:53
OvenWerksJohn122: great, good to hear. I expect I could add zita-njbridge settings to controls.15:56
OvenWerksIt was good figuring your setup out. The only thing I would find anoying is that there is no way (I can see) of knowing that the network connection is active15:58
John122OvenWerks: that'd be good! works a treat too. brought down both a guest (to make a copy of the sd card on the mac as described above), and auto reconnected to master on reboot, and also just brought down the master to test booting from an SSD drive instead of sdcard (works, and fast, but the cable is a bit dodgy so not sure I'll bother). When I rebooted the master, all the guests reconnected automatically too :)15:58
OvenWerkspart of the zizta-njbridge design idea is that connects and disconnects cause no issues.15:59
OvenWerksA sender will accept audio from jack conneted or not and a receiver will output silence to jack with no connect.16:01
John122OvenWerks: hmm, yes, actually once basics work, thoughts to turn to things like having a web page I can access that shows me the status of the connections etc and lets me stop/start things etc. not something I need to get into now but obviously knowing the connection is active would be important. I'll look at that side again when I have a bit more time though16:01
OvenWerksIt would be possible to use OSC (or even http) to exchange status between nodes (assuming autojack on both ends :)16:09
OvenWerksSounds like something for 2.3... I think I have enough for 2.216:14
John122OvenWerks: ;)17:05
KrausGood morning, all. I continue my quest.18:52
KrausHey OvenWerks, here's a question: What would need to be done to create an environment where CLI commands like "pactl load-module" could work in conjunction with Ubuntu Studio Controls, instead what currently happens where USC overrides and reverts it to its own settings?19:02
KrausOops, accidentally left, sorry.19:07
OvenWerksKraus: coming in 2.2 there are four scripts the user can supply: prestart, poststart, prestop and poststop19:18
OvenWerksI am not sure how useful all of them are, but the post start at least should be useful19:19
KrausWhat do they do?19:20
OvenWerksthey are scripts that autojack runs as part of startup and shutdown of jack19:20
OvenWerksThe user can supply extra cli commands in these bash scripts (well whatever the #! says)19:21
KrausHow about a place in the Ubuntu Studio Controls GUI where someone can type out a command CLI style? Sort of like how on Steam you can add in launch options to a game?19:21
OvenWerksI fail to see how that is any easier than supplying a script which can have more than one line.19:22
OvenWerksThey are effectively both the same19:22
KrausIt would allow them to add/subtract things to that script through the GUI instead of opening up the python file.19:23
OvenWerksHowever, a file with a script is much more flexable19:23
OvenWerksno python file needed19:23
KrausOh, you mean you're adding bash scripts, not python scripts?19:23
OvenWerksBasically a file that has two lines even would work19:24
OvenWerkscould be bash python, sh csh whatever19:24
OvenWerksthe first line of #!/bin/bash would expect bash commands19:24
OvenWerksor just straight CLI commands19:24
KrausI'm taking into consideration users who have no idea about coding and would be fearful of opening a script file of any kind...19:25
KrausAnything with buttons and knobs instead of learning syntax and typing things.19:26
OvenWerksKraus: probably these same people would be fearful of adding a command in a gui too.19:26
KrausWhich is why Mac and Windows win in these situations :)19:27
KrausI'm a graphic designer by trade, and for decades I avoided using Linux for these reasons. So it's the first thing I think of, which is, how can it be visually represented and integrated for the average user. For a distro and system that aims to make music accessible to everyone through FOSS, would be a shame not to consider the design aspects of accessibility. I mean I'd be willing to help with this! I could use a good project to19:28
Krausstart learning these things :)19:28
OvenWerksKraus: just being real honest here. I personally have a real blind spot in areas like this. I do not find mac or windows easier to use, quite the oposite. Everything I want to look at is hidden and I am forced to learn a foreign languge just to use the silly thing19:29
OvenWerksIntuitive seems to mean however the user first learned to use things19:29
OvenWerksfor example a double click to do things was never and is still not intuitive what so ever but it has been used so much it has become expected19:30
KrausAs soon as I manage to get 20.10 going I'd sure love to help with the design.19:30
KrausI'd need to learn how to work with the UI design tool.. what was it.. glade or something?19:31
OvenWerksit would not be to hard to open a text window where the user could enter a list of commands. The first line need not show19:31
OvenWerksbut very quickly it becomes more difficult for someone who wants to something differetn to do so.19:32
KrausRight, and I myself would need to learn what all these capabilities are, otherwise the design would be too limiting.19:33
KrausThere's someone on the Linux Musicians forum that has been working to make open source drivers for Focusrite interfaces. People have been sending him their machines so he has something to work with. Once those are available, this system will desperately be needed to work with the multitude of channels and features those things have.19:35
KrausI was even imagining a version of ubuntustudio-controls that has Carla integrated with it. Would seem to me a super logical step.19:36
KrausWould be amazing to set up input/output devices, bridges, etc, all in one convenient control panel.19:37
OvenWerksKraus: integrating controls with carla is beyond the scope of this project. We would be using Catia instead but it has not been released as a separate application yet. Adding support for specific audio devices does not make sense as that would just add requests for all devices. The size of controls would be huge19:41
KrausI've never quite understood the difference between Carla and Catia beyond the way it looks to the user.19:42
OvenWerksI would hope that any upgrades to Focusrite would show up in the alsa mixer controls where they really belong19:42
KrausThis is how the proprietary controller looks on Windows: http://d2zjg0qo565n2.cloudfront.net/sites/default/files/focusrite/Focusrite%20Control%20Guitar.png19:43
KrausThat's for a simpler controller, btw.. The 18i20 looks even more complex.19:43
OvenWerksCatia is just a jack patchbay without the rest of carla which includes the rack. The only reason Carla is startable from controls is so the user can use the patchbay19:44
KrausAhh, so, Catia is without the Rack?19:45
OvenWerksyup.19:45
KrausAlways thought the way that "portal" look to the patchbay was kind of funky. Why have scroll bars when there are more elegant solutions?19:46
KrausOr at least have the ability to auto-resize the window, would be nicer.19:46
Kraushttps://kx.studio/screenshots/catia.png I see those devices as icons on a desktop. There should be an auto-arrange function.19:47
OvenWerksa mixer control for the ice1712 batch of audio interfaces: https://i.imgur.com/s3O8UpB.png19:47
KrausSo 90s :)19:48
OvenWerksor for a firewire device: https://i.imgur.com/3JLa2nj.png19:48
KrausThat's a little better.19:49
OvenWerksyes 90s, part of that is my desktop theme for sure19:49
Kraushehe :)19:49
OvenWerksbut you can see the complexity19:49
KrausI can, yes19:50
KrausAnd that's Alsa, yeah?19:50
KrausI wish someone could coordinate with all these projects to fashion a consistent, uniform look and feel.19:51
OvenWerksthis is the same ice1712 device in alsa: https://i.imgur.com/B17Jclc.png19:51
KrausThat mini scrollbar on the bottom is funky.19:52
OvenWerksHaving a dedicated app is much better, as you can see ALSA if often not sure if a control is input of output and so some controls show in both places. Of course with firewire devices using tha FFADO modules ALSA mix doesn't show anything.19:54
KrausSee, my background is in graphic design and desktop publishing (a term that didn't age very well, heh.. very 90's), but in essence, I was paid to make things look good, and in terms of web design, to function well. So when I see things like this, I often think, "Why didn't they tweak [x] a little? Or take [y] into account?"19:54
KrausWhat I lack is knowledge of coding, but I can understand general concepts of it. I just need to learn howh to mediate between the two disciplines.19:56
OvenWerksI understand. Nor am I suggesting controls has the perfect design for sure.19:56
KrausI wish I could remember which file I inputted the channel_map=front-left,front-right,rear-left,rear-right stuff.. Until I can remember it I'm stuck from upgrading.19:57
OvenWerksI very much do not come from a mac (who can afford to pay that much for so little?) or windows ( when I started windows was more often in process of rebooting than doing any useful work)19:58
KrausI remember, like autojack, I had to input the information in two places, duplicates of each other, and it wasn't a config file.. it definitely was something more like a python script. I just can't remember which script it was.19:58
KrausYeh, for me, at first, in the early 90s I was forced to buy a Mac so I could work well with clients. Before Windows/Mac file compatibility, it was a huge issue. I grew up on DOS, then Windows, so Mac was like, "really? c'mon, I like being babied, but not braindead."19:59
KrausOvenWerks: is the /etc/pulse/default.pa file a thing with Ubuntu Studio?20:15
OvenWerksit is there in all ubuntu flavours so far as I know20:15
KrausBecause it's not there.20:15
Krausack20:15
KrausSorry, wrong wrong, ignore that.20:16
KrausYeah, OvenWerks, I'm sorry but this /has/ to be an ubuntu studio-specific file that I hacked.. It cannot be pulse or alsa, because it defined what channel_map ubuntu studio controls uses.21:27
Krausautojack is what tells pactl to do, right?21:28
OvenWerksyes autojack is the file to change21:28
KrausI would show you the contents of the file currently, but apparently pastebin is down.21:28
KrausBut there is nothing of what I added in there (i.e.: channel_map=front-left,front-right,rear-left,rear-right )21:29
KrausThe only thing in there that I MAY have altered is channels=4 .. but it doesn't define the channels.21:30
KrausDid anything change since last September?21:30
KrausLike, new updates I'm not taking into account?21:30
OvenWerksIf you use channels=4 you should have front-left, front-right rear-left rear-right I think21:30
OvenWerksStudio-controls is at 2.1.5 these days21:31
Kraus... then why do I have such a distinct memory of writing all that in... did I keep those changes? I can't remember...21:31
OvenWerksLast september it may have been 2.0.24 or something like that21:31
KrausAlright.. well.. I don't know what else I can do but disregard my memory and hope for the best.21:32
KrausOvenWerks: Does Ubuntu Studio come with a system backup tool like Déjà Dup for Gnome?21:41
Kraus(XFCE specific)21:41
KrausI guess I don't need to back up everything like themes, etc, because we're switching from XFCE to Plasma..21:43
OvenWerksProbably not... I don't keep track that close :)21:43
covid73[m]Hi, if I try to start freebirth - system say Unable to open audio device.- know one a solution ?22:00
OvenWerkscovid73[m]: I am not sure what freebirth is or where I could find out more about it.22:07
OvenWerksIs freebirth jack aware? are you running jack? Which device are you trying to use? etc.22:08
covid73[m]installed from MUON - its a synth like propellerhead rebirth22:09
* covid73[m] sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/YKziEiVPPxNTyTSAXqAVeCoN/message.txt >22:10
covid73[m]but aoss is there :(22:10
OvenWerksHow old is this that it uses oss?22:11
covid73[m]if I try the non alsa version - covid@CV19:~$ freebirth22:12
covid73[m]Unable to open audio device.22:12
OvenWerksWhich audio device are you trying to open? is it in use? (is the desktop using it?)22:13
OvenWerksdoes it have an option to use the default device?22:13
covid73[m]I dont know - it same if  all sound is off - I see only zhose information22:14
covid73[m]my aoss is uptodate - I think the aplikation needs older version of22:16
OvenWerksfreebirth seems to have vanished 2014 (or that is the last the dev was heard from) The upstream site is 404 (not found) and the last change to the ubuntu package was 2016. If you have been using it for a while, I am not sure what has changed. If you want to start using it now, I would suggest finding another application that still has active development. I am not sure if hydrogen does what you22:33
OvenWerkswant but could be worth a try.22:33
OvenWerkscovid73[m]: I am really not the person to ask22:33
OvenWerksIt is not the kind of sw I normally use22:34
OvenWerksI tend to record analog sources as a preference.22:34
OvenWerksanother application to try would be LMMS22:35
covid73[m]thanks a lot ... yeh LMMS shows a bit Ableton - like nice22:36

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