Sophie

Sophie

distrib > Fedora > 13 > x86_64 > by-pkgid > 4132d12566a113b11a64b5b8fb701505 > files > 410

nted-doc-1.9.19-1.fc13.noarch.rpm

<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>The TiMidity server</title><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><meta name="keywords" content="Gtk, NtEd, music, editor, notes, score, MIDI"><link rel="home" href="index.html" title="Manuel de NtEd"><link rel="up" href="ch01.html" title="Chapter&#160;1.&#160;Using NtEd"><link rel="prev" href="ch01s50.html" title="Attention: Pulseaudio"><link rel="next" href="ch01s52.html" title="Hammersound install page"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">The TiMidity server</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch01s50.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;1.&#160;Using NtEd</th><td width="20%" align="right">&#160;<a accesskey="n" href="ch01s52.html">Next</a></td></tr></table><hr></div><div class="sect1" title="The TiMidity server"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="timidity_server"></a>The TiMidity server</h2></div></div></div><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>All what is stated does not work if you have a technology called <code class="computeroutput">pulseaudio</code>. This concerns Fedora 11 users and Ubuntu 9.10 users and possibly others. Please refer to the <a class="link" href="ch01s50.html" title="Attention: Pulseaudio">Pulseaudio</a> chapter to learn more!</p></div><p>You can use the MIDI to WAVE converter and player <span class="application">TiMidity++</span> (<a class="ulink" href="http://timidity.sourceforge.net" target="_top"> http://timidity.sourceforge.net</a>) in <span class="emphasis"><em>server mode</em></span>. This approach is interesting for all those who can't bring the MIDI device to work.</p><p>A presupposition is that <span class="application">TiMidity++</span> is compiled with (at least) the <code class="option">configure</code> options:</p><p><code class="option">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; --enable-audio=alsa --enable-server --enable-alsaseq</code></p><p>Whether or not your <span class="application">TiMidity++</span> is compiled with these options can be determined by starting it with <code class="option">-iA</code> Option:</p><p><strong class="userinput"><code>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; timidity -iA -B2,8 -Os1l -s 44100 </code></strong> &#160;&#160;&#160;</p><p>If it says: <code class="computeroutput">"-A option not compiled in"</code> then compile it "by hand" as stated above.</p><p>You should also try to change "the orchestra" by installing a different soundfont. To get such a soundfont you should first have a look at the CDROM shipped with your soundcard. Perhaps you find there a file with suffix <code class="filename">.sf2</code>. But be careful: Make sure it is a General MIDI file!</p><p>If not then load the soundfile mentioned at <a class="ulink" href="http://alsa.opensrc.org/8MBGMSFX.SF2" target="_top">http://alsa.opensrc.org/8MBGMSFX.SF2</a>. Download it and in <code class="filename">/usr/share/timidity/timidity.cfg</code> (or <code class="filename">/usr/local/share/timidity/timidity.cfg</code>) change:</p><p><strong class="userinput"><code>&#160;&#160;&#160;&#160;&#160;dir</code></strong> <em class="replaceable"><code>&lt;path_to_the_directory_there_the_8MBGMSFX.SF2_file_is_situated&gt;</code></em></p><p>and:</p><p><strong class="userinput"><code>&#160;&#160;&#160;&#160;&#160;soundfont 8MBGMSFX.SF2</code></strong></p><p>Comment all other lines! If all is ok, you can start <span class="application">TiMidity++</span> with:</p><p><strong class="userinput"><code>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; timidity -iA -B2,8 -Os1l -s 44100 </code></strong> &#160;&#160;&#160;</p><p>Select the configure dialog:</p><p>
<span class="guimenu"><span class="accel">C</span>onfigure</span> &#8594; <span class="guimenuitem">Configure...</span>
</p><p>You should see 4 new MIDI devices:</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Timidity port 0 128:0</p></li><li class="listitem"><p>Timidity port 1 128:1</p></li><li class="listitem"><p>Timidity port 2 128:2</p></li><li class="listitem"><p>Timidity port 3 128:3</p></li></ul></div><p>Choose one of them and the replay should work!</p><p>Tip: If the replay interrupts during page turn over then start <span class="application">TiMidity++</span> as <code class="filename">root</code>. This increases the priority of the <span class="application">TiMidity++</span> process. Use the following command in this case:</p><p><strong class="userinput"><code>&#160;&#160;&#160;&#160;&#160;timidity --realtime-priority=100 -iA -B2,8 -Os1l -s 44100</code></strong></p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>This can lead to operating system problems if your CPU performance is too small! If so, then try to decrease the priority and/or the frequency:</p><p><strong class="userinput"><code>&#160;&#160;&#160;&#160;&#160;timidity --realtime-priority=60 -iA -B2,8 -Os1l -s 22050</code></strong></p></div><p>Sometimes it helps to increase the number of buffer fragments:</p><p><strong class="userinput"><code>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; timidity -iA -B8,8 -Os1l -s 22050 </code></strong> &#160;&#160;&#160;</p><p>If you want a different sound have a look at the <a class="link" href="ch01s52.html" title="Hammersound install page">Hammersound install page</a>.</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch01s50.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ch01.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="ch01s52.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Attention: Pulseaudio&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;Hammersound install page</td></tr></table></div></body></html>