<br><br><div class="gmail_quote">On Sat, Jul 17, 2010 at 6:34 PM, Pablo <span dir="ltr">&lt;<a href="mailto:pablo.fbus@gmail.com">pablo.fbus@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
jay gallivan escribió:<br>
<div class="im">&gt; Thanks for your reply. I&#39;m a total newbie to all of this.<br>
</div>Hi Jay,<br>
<br></blockquote><div><br>Greetings. Long couple of days growing my understanding of audio on Linux. I&#39;ve worked with micros since 1981, UNIX since 1988 and Linux since 1996. I&#39;ve never had to pay attention to audio before now. Is this what happens when computer people find themselves in a band? That&#39;s how I came to this. I play bass. It&#39;s tough to get the the three of us together. So, the plan was to record the leader - who does the singing and plays acoustic guitar - so i could practice. The X-Station was lying around (bought for one of the kids years ago) and I have &#39;extra&#39; Linux boxes. So, the adventure began.... <br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Pulseaudio is a linux sound system (audio server) desktop oriented and<br>
Jack (Jack Audio Connection Kit) is another one, oriented towards music<br>
production (low latency, anything to anywhere connections...). Both use<br>
the alsa drivers (jack can also use the ffado drivers for firewire audio<br>
devices but this is not your case) but apart from that, they are very<br>
different beasts.<br></blockquote><div><br>ALSA had been just another four letter word to me. No more.<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
Timidity is a default midi server. It can do jack, but it doesn&#39;t by<br>
default. In a musical environment timidity is not as used as qsynth for<br>
example, which is &quot;jackified&quot; by default. But you must load a soundfont<br>
in qsynth.<br></blockquote><div><br>I&#39;m beginning to get the idea of MIDI. Another protocol. In Rosegarden I can seen MIDI message flow. That&#39;s helpful in the same way that looking at network packet traces are helpful. &quot;Oh. So that&#39;s what&#39;s going on.&quot;<br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
In order to use Rosegarden (the audio part) you need the jack audio<br>
server and forget about pulseaudio interfaces (once jack takes hold of<br>
your soundcard, pulseaudio is useless, and, hopefully, harmless). You<br>
launch the server by means of a graphical front-end called qjackctl<br>
(Jack Control in the sound and video menu). First, you press &quot;setup&quot; to<br>
configure the jack audio server. In the interface field you select your<br>
usb audio card (you will see a generic usb-audio or similar, I guess).<br>
Then press start to activate jack.<br></blockquote><div><br>Pulseaudio drops out of the picture but the motherboard audio i/o still seems to be there. This appears to be the path to my external speakers for monitoring. So that would be something like.... Ardour/Rosegarden -&gt; Jack -&gt; ALSA -&gt; chips -&gt; speakers?<br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
If jack does not start, this is the first problem you should solve (more<br>
below).<br></blockquote><div><br>I had quite a bit of trouble with Jack. First, a very slow box - eight years old. I moved to a newer box - maybe three years old - and found i had way to little ram. 1GB. Went to 2GB today and things are much better - with Jack grabbing 1.5GB. Ouch! Do i need to get more?<br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
If it starts, then the jack audio clients, like rosegarden, and many<br>
more (most music oriented programs are jack-aware by default) will show<br>
their ports in the connect window, audio tab, when you launch them.<br>
The MIDI tab stands for jack MIDI which is not used by Rosegarden<br>
nowadays. The alsa tab refers to alsa  sequencer or alsa MIDI. It has<br>
nothing to do with jack but it is there for convenience because several<br>
synths and sequencers use the alsa sequencer for MIDI and jack for<br>
audio. Some newer ones use jack MIDI and jack audio but not Rosegarden.<br></blockquote><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
This explains that you could capture midi in Rosegarden despite the jack<br>
server was not active.<br>
<br></blockquote><div><div><br>
So both ALSA and Jack do MIDI? Can you point me to some data flow diagrams?<br>
</div>  
<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Also, take into account that Rosegarden does not make sounds by itself<br>
and it has not any default synth that makes it work out of the box.. It<br>
needs either a software synth plugin or an external synth, either<br>
software (say, qsynth, zynaddsubfx...) or hardware.  But this is a<br>
second step. The first step is jack setup.<br>
<br></blockquote><div><br>I&#39;m do have Jack running in RT mode. The Ubuntu Studio installation installed a preemptive kernel. First time I&#39;ve ever needed that! I did come across some documentation describing what you outlined. That certainly caused me concern re memory.<br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
In order to have jack working in realtime mode (recommended) you need,<br>
as a user, some priorities that you can check in a terminal with:<br>
<br>
ulimit -r (this is realtime priority for the user)<br>
ulimit -l (this is memlock limit for the user)<br>
<br>
You need the first one at ninety-something and the second one, unlimited<br>
or a reasonable amount of your RAM, in kB. In turn, to gain these<br>
privileges, there must be a file called:<br>
<br>
/etc/security/limits.d/audio.conf<br>
<br>
with the relevant lines. So please, do a:<br>
<br>
cat /etc/security/limits.d/audio.conf<br>
<br>
and you must have something like:<br>
<br>
@audio - rtprio 99<br>
@audio - memlock unlimited<br>
<br>
Now you (you the user) have to belong to the &quot;audio&quot; group. Check in a<br>
terminal with:<br>
<br>
groups<br>
<br>
If you see audio (between others) you are done. If you don&#39;t, you must do:<br>
<br>
sudo adduser user audio<br>
<br>
where &quot;user&quot; is your login name. Then reboot and you will have the<br>
system prepared to use jack<br>
(check again with the ulimit commands)<div class="im"><br>
<br>
<br>
&gt;<br>
&gt; I don&#39;t see anything in Patchbay. In PulseAudio Manager I see<br>
&gt; X-Station analong stero as a sink and the same as sources for stereo<br>
&gt; and stereo monitor.<br>
<br>
</div>Just don&#39;t use pulseaudio.<br>
<div class="im">&gt;<br>
&gt; When I connect (via Connect) X-Station to Timidity I am able to play<br>
&gt; the keyboard and hear the results via my computer&#39;s speakers. And I<br>
&gt; can record and playback via Rosegarden when I connect X-Station to<br>
&gt; Rosegarden.<br>
</div>Don&#39;t use timidity unless you do it jack-aware.<br>
<div class="im"><br>
&gt;<br>
&gt; I&#39;ve tried Audacity on my Windows XP box and I&#39;ve been able to<br>
&gt; pickup/record from the X-Station audio ports - though merged into a<br>
&gt; single track for some reason.<br>
&gt;<br>
&gt; So it seems that the X-Station is doing what it&#39;s supposed to do. But<br>
&gt; that (some component of ) Ubuntu Studio is dropping the X-Station<br>
&gt; audio. Any thoughts on that?<br>
</div>See above.<br>
<br>
Cheers! Pablo<br></blockquote><div><br>So here&#39;s where things now stand. I bought an Alesis iO2 with a view to being able to capture the mic and guitar at the same time. I&#39;ve been able to demonstrate that to myself by using the Puluseaudio volume controller and the Sound Recorder application. Sound Recorder created an ogg file which I then converted to wav. I was able to read the file into Ardour. Then I ran out of weekend.<br>
<br>Right now I&#39;m in a good place: I can make the recording I need to make. But I&#39;ve also discovered a whole new area of interest! I&#39;ve always like Linux - and avoided MS and Apple. It&#39;s wonderful to see how much amazing work has been done!<br>
<br>Thanks very much for taking the time to reply.<br><br>Regards,<br>Jay.<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<font color="#888888"><br>
<br>
--<br>
</font><div><div></div><div class="h5">Ubuntu-Studio-users mailing list<br>
<a href="mailto:Ubuntu-Studio-users@lists.ubuntu.com">Ubuntu-Studio-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-users</a><br>
</div></div></blockquote></div><br>