/srv/irclogs.ubuntu.com/2013/09/11/#ubuntustudio.txt

caodepalhaHi everyone09:10
cfhowlettcaodepalha, greetings09:10
caodepalhaI have a question here. I read in a book that it is advisable to remove the pusleaudio package in ubuntustudio. it read that both servers running at the same time jackd & pulseaudio) can cause problems. is this correct?09:12
caodepalhadoes anyone know anything about this?09:22
XRS1i havent had any problems09:24
zequencecaodepalha: Not correct09:37
zequencecaodepalha: What book was that?09:37
caodepalhalet me check again09:42
caodepalhaits a book called crafting digital media09:42
caodepalhaCrafting digital media, Audacity, Blender,Drupal, GIMP, Scribus and other open source tools09:43
cfhowlettcaodepalha, read it.  since published, it seems the pulse/jack conflicts have been ironed out.  and if YOU haven't experienced problems, why would you even consider it?09:44
caodepalhaby Daniel James09:44
caodepalhai get a lot of xruns when recording09:44
zequencecaodepalha: Is it a Ubuntu Studio install?09:45
caodepalhain the book it says it is related to the settings in jack and problems with pulse audio09:45
caodepalhayes it is ubuntu studio09:45
zequencethe book is wrong09:45
caodepalhaok thank you09:45
cfhowlett"a lot"?   anyway, try it and compare.09:45
zequencejack settings, yes. but not because of pulseaudio09:45
caodepalhado you know what xruns are about?09:45
zequencexruns means that jack was not able to process the audio in time09:46
zequencetheres another word for that: audio dropout09:46
caodepalhais that a problem when recording?09:46
zequenceYes, because you get click sounds09:46
caodepalhasorry i'm still a newbie09:46
caodepalhaany tips on how to avoid that?09:46
zequencecaodepalha: do this command: cat ~/.jackdrc09:46
cfhowlettcaodepalha, FYI, the 12.04 kernel seemed to fix that issue09:46
zequencecfhowlett: Which issue is that?09:47
cfhowlettzequence, jack/pulse audio conflicts09:47
zequencecfhowlett: not related to the kernel09:47
zequencethere was a bug in pulseaudio, which I fixed09:47
zequencehad to do with pulseaudio not letting go of the audio device, when jack asked for it09:48
zequencejack1 is not able to grab the card at all09:48
zequenceonly jack209:48
cfhowlettzequence, entirely possible/likely that I used the wrong term there ...09:48
zequencethere was another problem with jack earlier, making it impossible to kill it sometimes09:48
zequencethat was fixed too09:48
zequenceneither problem was causing xruns09:49
zequenceI didn't code the fix, but I pathched both packages, just to be clear09:49
caodepalhaso should i run the: cat ~/.jackdrc ?09:50
cfhowlettzequence, you contributions are MUCH appreciated!09:51
zequencecaodepalha: Yes. Paste the results here09:51
cfhowlettzequence, here's mine.  What's it all mean?   /usr/bin/jackd -p 128 -R -P 60 -T -d alsa -n 2 -r 48000 -p 1024 -d hw:0,009:54
zequence"-p" stands for frames per period. It is quite low, so should give you ok latency, and hopefully no xruns09:58
zequenceTo see what the rest means, do: jackd -d alsa --help09:58
vltholstein: I got the source from their website because I wanted to compile it on Debian. But I failed. So I downloaded their binary for Ubuntu and after hours of installing dependencies ... it kind of works.09:59
zequenceActually, some options are not alsa specific, so to see them, do: jackd --help09:59
vltExcept for freezing X for several minutes and OOMs .-/09:59
caodepalhaok these are the results: /usr/bin/jackd -p128 -dalsa -r192000 -p128 -n2 -Xseq -D -Chw:0 -Phw:010:02
caodepalhado i need to start jack before running the command?10:02
zequencecaodepalha: What you did was print out the contents of the file .jackdrc in your home folder10:04
zequencecaodepalha: If you would start jack manually using a terminal, you could use a command like that. But, you don't need to10:04
zequencecaodepalha: That command is how you have set up qjackctl10:04
caodepalhaok...10:04
caodepalhais it correct?10:05
zequencecaodepalha: The reason why you are getting xruns is because you have a very low latency setting10:05
caodepalhaah ok. what can i change on jack setting then?10:05
zequencecaodepalha: -p128 means 128 frames/period. Together with 192000 samplerate, that gives jack a very small amount of time to finish its processes10:05
zequencecaodepalha: Use qjackct, and raise the frames/period, or use a lower samplerate. Do you need 192kHz=10:06
zequence?10:06
caodepalhaok let me check!10:06
zequencecaodepalha: Do you monitor yourself through the software? What do you use for recording? Ardour?10:08
zequenceIf you have a mixer for monitoring, you don't need low latency - unless of course you are playing a soft synth, or using some FX, like a virtual amp while recording10:08
caodepalhaI use ardour10:08
zequencecaodepalha: What sort of stuff do you record? Is it all line in, and no live FX from your computer?10:09
caodepalhaI use ardour. I connect the electir guitar directly to the laptop input. my midi is connected directly to the laptop as well. when i record vocals i connect a condenser mic through a mixer and then onto the laptop10:10
zequencecaodepalha: midi, as in midi cable, or the audio output from a keyboard?10:10
caodepalhai use electric guitars, acoustic guitars, a condenser mic and a shure sm58, a small beringer mixer and oxygen810:11
zequencemidi is not audio. It's a data control format. you can use it to control synthesizers10:11
caodepalhai connect oxygen8 via usb10:11
caodepalhayes10:12
cfhowlettcaodepalha, yeesh.  that's kind of asking a lot.  you got a super duper system or something?  I used an interface when I recorded for my laptop.10:12
zequenceok, so do you use soft synthesizers? That would be the live FX I'm talking about10:12
caodepalhayes eventually i use amsynth and phasex10:12
zequencecaodepalha: While you are not using any live processing, i.e. a soft synth, you can raise latency while recording10:13
zequencecaodepalha: Raise frames/period to at least 102410:13
zequenceyou can even use 204810:13
zequenceAnd use your mixer for monitoring for the external audio sources, as your guitars and vocals10:14
zequenceWhen you record soft synths, you need to find out an optimal latency level. You might not need 192kHz. 48kHz is quite enough.10:14
zequenceAnd while recording, don't mess with the computer. Just click record, and then use your keyboard10:15
caodepalhaiḿ getting started on linux. i'm a total newbie.in the first experiences i made with ardour i dropped a few loops on it, then went to record some electric guitars10:15
caodepalhalatter added some synths10:16
caodepalhaand more guitars10:16
zequencecaodepalha: What kind of audio card do you have?10:16
caodepalhayou're saying i should raise the frames or use a lower sample rate right?10:17
caodepalhathis is a laptop i got from a friend10:17
caodepalhahow can i know about the soundcard? lol10:17
zequencecaodepalha: Both would be good, actually10:17
zequencecaodepalha: Oh, so it's the builtin audio device?10:17
zequencecat /proc/asound/cards10:18
caodepalhayes... for now it is. i'm planning on getting an external soundcard10:18
zequence..for seing the audio devices10:18
caodepalha 0 [Intel          ]: HDA-Intel - HDA Intel10:18
caodepalha                      HDA Intel at 0x92400000 irq 4310:18
cfhowlettcaodepalha, see presonus 1box/audiobox.  works with linux out of the box.10:18
caodepalhahere it is10:18
zequencecaodepalha: 128 frames/period might work if you use 48kHz samplerate. If that doesn't work, try 256 frames/period with 48kHz samplerate10:18
caodepalhaok!10:19
zequencecaodepalha: If you still have a lot of xruns, come back10:19
caodepalhaI cannot thank you enough! Its a bit of a learning curve to get around linux but i'm loving it. people are very helpfull. this is great! thanks alot10:20
zequencecaodepalha: Have fun10:22
caodepalhathis is what i've made with ardour so far: https://soundcloud.com/caodepalha/fairground-voodoo-mix-cheap10:45
zequencecaodepalha: Nice stuff10:53
zequencecaodepalha: There is actually one thing that could cause xruns, and that is the pulseaudio to jack module. It's a package called pulseaudio-module-jack. You can disable the module, either by uninstalling that package, and restarting pulseaudio (pulseaudio -k), or by disabling dbus support for jack in qjackctl -> Misc10:55
zequenceThe module acts as any other jack client10:55
zequencebut, it can use a lot CPU power. If you don't need to listen to youtube while recording, you can just uninstall that package10:55
caodepalhai dont need to listen to youtube while recording10:56
caodepalhacan it be unistalled in the software center?10:57
caodepalhauninstalled*10:57
zequencecaodepalha: sudo apt-get remove pulseaudio-module-jack10:58
zequencecaodepalha: or use synaptic. You can install synaptic from the software center10:58
zequencejust remember to restart pulseaudio. Also, quit jack before you do. To restart pulseaudio, kill it: pulseaudio -k10:58
caodepalhajack is not started right now. can i perform those commands anyway?10:59
caodepalhaok i've just done those commands11:23
mo091312:39
=== mo is now known as Guest6012
Guest6012091312:39
=== Fyodorovna is now known as wilee-nilee
nimbioticsAfter allowing some updates earlier today my soundcard started making funny noises as the volume level indicator showed up time after time. After rebooting, I am getting no more audio from my card, even though everythinh 'seems' normal. any ideas? TIA!22:16
XRS1Application Launcher -> Terminal Emulator -> alsamixer22:18
XRS1make sure its not muted, turned down and that the correct card is being used22:18
nimbioticsXRS1, Master level is at 57, but Headephone , does not show a value (zeroed?) How do I raise the volume lvel in alsamixer?22:27
XRS1use the tab key and the arrow keys to navigate22:31

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