You are not logged in.

#1 2004-06-04 06:29:55

forest76
Member
From: Poland
Registered: 2004-01-31
Posts: 31

[multimedia: sound&audio] Timidity++

Hi, I have prepared timidity package based on latest (2.13.0) version. Package includes instrument's pack and support input keyboard as client (requied sequencer in alsa drivers).
Start alsa-server:

timidity -iA -B2,8 -Os -E b 0

Connect input:

aconnect 64:0 128:0

Disconnect input:

aconnect -d 64:0 128:0

PKGBUILD (relase 1):

# $Id:  $
# Contributor: forest76 <forestt@poczta.onet.pl>
pkgname=timidity
pkgver=2.13.0
pkgrel=1
pkgdesc="MIDI player for linux with instruments and input support"
url="http://timidity.s11.xrea.com/index.en.html"
depends=('glibc' 'gtk' 'tcl' 'tk' 'alsa-oss' 'alsa-lib')
source=(http://timidity.s11.xrea.com/files/TiMidity++-$pkgver.tar.bz2 
http://madchat.org/esprit/musique/eawpats12_full.tar.gz)
md5sums=('63284981e1ac81fce2b53cc4b1f4c468' '8ebcf0583f3077346ebace93c8ea166f')
build() {
    cd $startdir/src/TiMidity++-$pkgver
    ./configure --prefix=/usr --enable-audio=alsa,oss --enable-alsaseq 
    --enable-gtk --enable-tcltk --enable-server --enable-dynamic 
    make || return 1
    make prefix=$startdir/pkg/usr install
    mkdir -p $startdir/pkg/usr/share/timidity/eawpats
    cp -rf $startdir/src/eawpats/* $startdir/pkg/usr/share/timidity/eawpats
    cp -f $startdir/timidity.cfg $startdir/pkg/usr/share/timidity
    # For compability with other software (xmms-midi)
    mkdir -p $startdir/pkg/etc
    cp -f $startdir/source/timidity.cfg $startdir/pkg/etc
    }

timidity.cfg (relase 1) (put it to PKGBUILD directory)

dir /usr/share/timidity/eawpats/
#source default.cfg
source gravis.cfg
source gsdrums.cfg
source gssfx.cfg
#source mt-32.cfg
#source proteus2.cfg
#source sndfont.cfg
#source sustain.cfg
source xgmap2.cfg

UPDATE: improve playing quality and correct compatibility with xmms-midi

PKGBUILD (relase 2):

# $Id:  $
# Contributor: forest76 <forestt@poczta.onet.pl>
pkgname=timidity
pkgver=2.13.0
pkgrel=2
pkgdesc="MIDI player for linux with instruments and input support"
url="http://timidity.s11.xrea.com/index.en.html"
depends=('glibc' 'gtk' 'tcl' 'tk' 'alsa-oss' 'alsa-lib' 'perl')
source=(http://timidity.s11.xrea.com/files/TiMidity++-$pkgver.tar.bz2 
http://madchat.org/esprit/musique/eawpats12_full.tar.gz)
md5sums=('63284981e1ac81fce2b53cc4b1f4c468' '8ebcf0583f3077346ebace93c8ea166f')
build() {
    cd $startdir/src/TiMidity++-$pkgver
    ./configure --prefix=/usr --enable-audio=alsa,oss --enable-alsaseq 
    --enable-gtk --enable-tcltk --enable-server --enable-dynamic 
    make || return 1
    make prefix=$startdir/pkg/usr install
    mkdir -p $startdir/pkg/usr/share/timidity/eawpats
    cp -rf $startdir/src/eawpats/* $startdir/pkg/usr/share/timidity/eawpats
    cp -f $startdir/timidity.cfg $startdir/pkg/usr/share/timidity
    #
    ### For compability with other software (like xmms-midi)
    #
    # Main config in /etc
    #
    mkdir -p $startdir/pkg/etc
    cp -f $startdir/source/timidity.cfg $startdir/pkg/etc
    #
    # Clean any comment in config files
    #
    for i in $startdir/pkg/usr/share/timidity/eawpats/*.cfg;
    do
    cp -f ${i} ${i}.with_comment
    perl -pi -e 's/#.{0,256}//g' ${i}
    done
    }

timidity.cfg (relase 2) (put it to PKGBUILD directory)

dir /usr/share/timidity/eawpats/
#source default.cfg
source gravis.cfg

source gsdrums.cfg
source gssfx.cfg
source mt-32.cfg
source proteus2.cfg
#source sndfont.cfg
source sustain.cfg
#source xgmap2.cfg

Offline

#2 2005-01-08 01:42:47

Pechorin
Member
From: Belgrade
Registered: 2004-12-23
Posts: 28
Website

Re: [multimedia: sound&audio] Timidity++

Great job, though http://madchat.org/esprit/musique/eawpats12_full.tar.gz can't be downloaded unless it's linked from their server sad So, you have to get it manually.

Offline

#3 2005-01-08 17:58:20

forest76
Member
From: Poland
Registered: 2004-01-31
Posts: 31

Re: [multimedia: sound&audio] Timidity++

Here is fixed PKGBUILD for timidity. It works fine for me:

Greetings,

Miroslaw.

# $Id:  $
# Contributor: forest76 <forestt@poczta.onet.pl>
pkgname=timidity
pkgver=2.13.0
pkgrel=2
pkgdesc="MIDI player for linux with instruments and input support"
url="http://timidity.s11.xrea.com/index.en.html"
depends=('glibc' 'gtk' 'tcl' 'tk' 'alsa-oss' 'alsa-lib')
source=(http://timidity.s11.xrea.com/files/TiMidity++-$pkgver.tar.bz2 
    http://text.mirror.ac.uk/mirror/distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles/eawpats12_full.tar.gz)
md5sums=('63284981e1ac81fce2b53cc4b1f4c468' '8ebcf0583f3077346ebace93c8ea166f')
build() {
    #
    # Make Timidity
    #
    cd $startdir/src/TiMidity++-$pkgver
    ./configure --prefix=/usr 
        --enable-audio=alsa,oss 
        --enable-alsaseq 
        --enable-gtk --enable-tcltk 
        --enable-server 
        --enable-dynamic 
    make || return 1
    make prefix=$startdir/pkg/usr install
    mkdir -p $startdir/pkg/usr/share/timidity/eawpats
    cp -rf $startdir/src/eawpats/* $startdir/pkg/usr/share/timidity/eawpats
    cp -f $startdir/timidity.cfg $startdir/pkg/usr/share/timidity
    #
    ### For compability with other software (like xmms-midi)
    #
    # Main config in /etc
    #
    mkdir -p $startdir/pkg/etc
    cp -f $startdir/timidity.cfg $startdir/pkg/etc
    #
    # Clean any comment in config files
    #
    for i in $startdir/pkg/usr/share/timidity/eawpats/*.cfg;
    do
    cp -f ${i} ${i}.with_comment
    sed -i "s/#.*//g" ${i}
    done
    }

Offline

#4 2005-03-27 23:44:54

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: [multimedia: sound&audio] Timidity++

...and new version

pkgname=timidity++
pkgver=2.13.2
pkgrel=1
pkgdesc="MIDI player for linux with instruments and input support"
url="http://timidity.sf.net"
depends=('glibc' 'gtk' 'tcl' 'tk' 'alsa-oss' 'alsa-lib')
source=(http://dl.sourceforge.net/sourceforge/timidity/TiMidity++-$pkgver.tar.gz 
http://text.mirror.ac.uk/mirror/distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles/eawpats12_full.tar.gz)
md5sums=('4a1644d1893437b372769cf331611e76' '8ebcf0583f3077346ebace93c8ea166f')

build() {
   cd $startdir/src/TiMidity++-$pkgver
   ./configure --prefix=/usr 
      --enable-audio=alsa,oss 
      --enable-alsaseq 
      --enable-gtk --enable-tcltk 
      --enable-server 
      --enable-dynamic
   make || return 1
   make prefix=$startdir/pkg/usr install
   mkdir -p $startdir/pkg/usr/share/timidity/eawpats
   cp -rf $startdir/src/eawpats/* $startdir/pkg/usr/share/timidity/eawpats
   cp -f $startdir/timidity.cfg $startdir/pkg/usr/share/timidity
   mkdir -p $startdir/pkg/etc
   cp -f $startdir/timidity.cfg $startdir/pkg/etc
   for i in $startdir/pkg/usr/share/timidity/eawpats/*.cfg;
   do
   cp -f ${i} ${i}.with_comment
   sed -i "s/#.*//g" ${i}
   done
}

Offline

#5 2005-03-28 14:27:24

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,363
Website

Re: [multimedia: sound&audio] Timidity++

what licence is eawpats12_full.tar.gz under?

timidity++ exists in extra ... i would be happy if we could synch this version with the one in the repos - don't you think this would be nice?


The impossible missions are the only ones which succeed.

Offline

#6 2005-03-29 11:52:13

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: [multimedia: sound&audio] Timidity++

I have no idea. I only upgraded to the latest version.
But gentoo has this (license = as-is):
http://gentoo-portage.com/ebuild?e=medi … -r4.ebuild
They also have a second file:
http://gentoo-portage.com/ebuild?e=medi … -r3.ebuild

Looks like it's a kind of freeware or free for non commercial use :-)
The url for eawpatches desn't exist. I could find the latest version (Feb 2004) via wayback machine:
http://web.archive.org/web/200402122347 … efault.htm
There is a copyright information too:
http://web.archive.org/web/200403020652 … mation.htm

Offline

#7 2005-03-29 12:16:25

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,363
Website

Re: [multimedia: sound&audio] Timidity++

lanrat, thank you very much for the infos

for the synching of this version to the one in extra:

i wonder why this version has timidity.cfg under /etc/ and under /usr/share/timidity/

can somebody post (or email me) the filelist of this version of the pkg (i'm too lazy to build it myself right now)

please have a look here:
http://cvs.archlinux.org/cgi-bin/viewcv … cvs-markup

as you can see, the timidity in extra has the config-path in /etc/$pkgname/ what is a good thing and i want to keep it this way

from the copyright info lanrat posted i see that if we remove these non-commercial part, the rest is PD and we can distibute it.

thx in advance for the filelist


The impossible missions are the only ones which succeed.

Offline

#8 2005-03-29 12:57:27

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: [multimedia: sound&audio] Timidity++

I think timidity.cfg is not critical and can be placed in any directory. On the other hand (I didn't review extra package and I don't have access to my arch box right now so I'm not 100% sure) if you change the path for the config file you should modify it in the sources too:
http://www.djcj.org/LAU/guide/TiMidity-howto.html

If you have put the file in a different directory to the default you will need to change this line in ~/timidity/timidity.h then recompile TiMidity.

    /* You could specify a complete path, e.g. "/etc/timidity.cfg", and
      then specify the library directory in the configuration file. */
    #define CONFIG_FILE "/etc/timidity.cfg"
    #ifndef CONFIG_FILE

For example:


    /* You could specify a complete path, e.g. "/etc/timidity.cfg", and
       then specify the library directory in the configuration file. */
    #define CONFIG_FILE "/art/1music/midi/instruments/timidity.cfg"
    #ifndef CONFIG_FILE

If you use the eawpats soundfonts provided with this guide then you will also need to edit timidity.cfg file to point to the correct location.

Offline

#9 2005-03-29 15:32:51

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,363
Website

Re: [multimedia: sound&audio] Timidity++

lanrat wrote:

I think timidity.cfg is not critical and can be placed in any directory. On the other hand (I didn't review extra package and I don't have access to my arch box right now so I'm not 100% sure) if you change the path for the config file you should modify it in the sources too:
http://www.djcj.org/LAU/guide/TiMidity-howto.html

If you have put the file in a different directory to the default you will need to change this line in ~/timidity/timidity.h then recompile TiMidity.

    /* You could specify a complete path, e.g. "/etc/timidity.cfg", and
      then specify the library directory in the configuration file. */
    #define CONFIG_FILE "/etc/timidity.cfg"
    #ifndef CONFIG_FILE

For example:


    /* You could specify a complete path, e.g. "/etc/timidity.cfg", and
       then specify the library directory in the configuration file. */
    #define CONFIG_FILE "/art/1music/midi/instruments/timidity.cfg"
    #ifndef CONFIG_FILE

If you use the eawpats soundfonts provided with this guide then you will also need to edit timidity.cfg file to point to the correct location.

http://cvs.archlinux.org/cgi-bin/viewcv … cvs-markup

--with-default-path=/etc/$pkgname/ is doing this already

yes, i know about path to soundfonts - that's why i want someone to give me the filelist of the pkg from this thread, so that i can compare and prevent mistakes in paths (the timidity++ in extra does not provide any soundfonts - and i already got 2 emails about people asking me where to get the soundfonts, so i want to have a "standard" soundfont in timidity in the pkg itself)


The impossible missions are the only ones which succeed.

Offline

#10 2005-03-29 18:15:27

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: [multimedia: sound&audio] Timidity++

Ok. I'm very tired today and I'm not sure what do you want me to do. Are you asking for pacman -Ql timidity++ output?
Let's see...

mkdir -p $startdir/pkg/usr/share/timidity/eawpats 
   cp -rf $startdir/src/eawpats/* $startdir/pkg/usr/share/timidity/eawpats

All soundfont files go to /usr/share/timidity/eawpats. timidity.cfg looks like this:

cat /etc/timidity.cfg 
dir /usr/share/timidity/eawpats/ 
#source default.cfg 
source gravis.cfg 

source gsdrums.cfg 
source gssfx.cfg 
source mt-32.cfg 
source proteus2.cfg 
#source sndfont.cfg 
source sustain.cfg 
#source xgmap2.cfg

And the list of files in the package (sorry for long post...) looks like this:

pacman -Ql timidity++
timidity++ /etc/
timidity++ /etc/timidity.cfg
timidity++ /usr/
timidity++ /usr/bin/
timidity++ /usr/bin/timidity
timidity++ /usr/lib/
timidity++ /usr/lib/timidity/
timidity++ /usr/lib/timidity/bitmaps/
timidity++ /usr/lib/timidity/bitmaps/back.xbm
timidity++ /usr/lib/timidity/bitmaps/fwrd.xbm
timidity++ /usr/lib/timidity/bitmaps/next.xbm
timidity++ /usr/lib/timidity/bitmaps/pause.xbm
timidity++ /usr/lib/timidity/bitmaps/play.xbm
timidity++ /usr/lib/timidity/bitmaps/prev.xbm
timidity++ /usr/lib/timidity/bitmaps/quit.xbm
timidity++ /usr/lib/timidity/bitmaps/random.xbm
timidity++ /usr/lib/timidity/bitmaps/repeat.xbm
timidity++ /usr/lib/timidity/bitmaps/stop.xbm
timidity++ /usr/lib/timidity/bitmaps/timidity.xbm
timidity++ /usr/lib/timidity/browser.tcl
timidity++ /usr/lib/timidity/misc.tcl
timidity++ /usr/lib/timidity/tclIndex
timidity++ /usr/lib/timidity/tkmidity.tcl
timidity++ /usr/lib/timidity/tkpanel.tcl
timidity++ /usr/man/
timidity++ /usr/man/man1/
timidity++ /usr/man/man1/timidity.1.gz
timidity++ /usr/man/man5/
timidity++ /usr/man/man5/timidity.cfg.5.gz
timidity++ /usr/share/
timidity++ /usr/share/timidity/
timidity++ /usr/share/timidity/eawpats/
timidity++ /usr/share/timidity/eawpats/acbass.pat
timidity++ /usr/share/timidity/eawpats/accordn.pat
timidity++ /usr/share/timidity/eawpats/acguitar.pat
timidity++ /usr/share/timidity/eawpats/acpiano.pat
timidity++ /usr/share/timidity/eawpats/agogohi.pat
timidity++ /usr/share/timidity/eawpats/agogolo.pat
timidity++ /usr/share/timidity/eawpats/agogo.pat
timidity++ /usr/share/timidity/eawpats/altosax.pat
timidity++ /usr/share/timidity/eawpats/applause.pat
timidity++ /usr/share/timidity/eawpats/atmosphr.pat
timidity++ /usr/share/timidity/eawpats/aurora.pat
timidity++ /usr/share/timidity/eawpats/bagpipes.pat
timidity++ /usr/share/timidity/eawpats/banjo.pat
timidity++ /usr/share/timidity/eawpats/barisax.pat
timidity++ /usr/share/timidity/eawpats/basslead.pat
timidity++ /usr/share/timidity/eawpats/bassoon.pat
timidity++ /usr/share/timidity/eawpats/belltree.pat
timidity++ /usr/share/timidity/eawpats/blank.pat
timidity++ /usr/share/timidity/eawpats/bongohi.pat
timidity++ /usr/share/timidity/eawpats/bongolo.pat
timidity++ /usr/share/timidity/eawpats/bottle.pat
timidity++ /usr/share/timidity/eawpats/bowglass.pat
timidity++ /usr/share/timidity/eawpats/britepno.pat
timidity++ /usr/share/timidity/eawpats/cabasa.pat
timidity++ /usr/share/timidity/eawpats/calliope.pat
timidity++ /usr/share/timidity/eawpats/carillon.pat
timidity++ /usr/share/timidity/eawpats/castinet.pat
timidity++ /usr/share/timidity/eawpats/celeste.pat
timidity++ /usr/share/timidity/eawpats/cello.pat
timidity++ /usr/share/timidity/eawpats/changelog.txt
timidity++ /usr/share/timidity/eawpats/charang.pat
timidity++ /usr/share/timidity/eawpats/chiflead.pat
timidity++ /usr/share/timidity/eawpats/choir.pat
timidity++ /usr/share/timidity/eawpats/church.pat
timidity++ /usr/share/timidity/eawpats/claps.pat
timidity++ /usr/share/timidity/eawpats/clarinet.pat
timidity++ /usr/share/timidity/eawpats/clave.pat
timidity++ /usr/share/timidity/eawpats/clavinet.pat
timidity++ /usr/share/timidity/eawpats/cleangtr.pat
timidity++ /usr/share/timidity/eawpats/concrtbd.pat
timidity++ /usr/share/timidity/eawpats/concrtna.pat
timidity++ /usr/share/timidity/eawpats/congahi1.pat
timidity++ /usr/share/timidity/eawpats/congahi2.pat
timidity++ /usr/share/timidity/eawpats/congalo.pat
timidity++ /usr/share/timidity/eawpats/contraba.pat
timidity++ /usr/share/timidity/eawpats/copyrigh.txt
timidity++ /usr/share/timidity/eawpats/cowbell.pat
timidity++ /usr/share/timidity/eawpats/crystal.pat
timidity++ /usr/share/timidity/eawpats/cuica1.pat
timidity++ /usr/share/timidity/eawpats/cuica2.pat
timidity++ /usr/share/timidity/eawpats/cymbell.pat
timidity++ /usr/share/timidity/eawpats/cymchina.pat
timidity++ /usr/share/timidity/eawpats/cymcrsh1.pat
timidity++ /usr/share/timidity/eawpats/cymcrsh2.pat
timidity++ /usr/share/timidity/eawpats/cymride1.pat
timidity++ /usr/share/timidity/eawpats/cymride2.pat
timidity++ /usr/share/timidity/eawpats/cymsplsh.pat
timidity++ /usr/share/timidity/eawpats/default.cfg
timidity++ /usr/share/timidity/eawpats/default.cfg.with_comment
timidity++ /usr/share/timidity/eawpats/distgtr.pat
timidity++ /usr/share/timidity/eawpats/doo.pat
timidity++ /usr/share/timidity/eawpats/drumsfx.txt
timidity++ /usr/share/timidity/eawpats/eawpats.txt
timidity++ /usr/share/timidity/eawpats/echovox.pat
timidity++ /usr/share/timidity/eawpats/englhorn.pat
timidity++ /usr/share/timidity/eawpats/epiano1.pat
timidity++ /usr/share/timidity/eawpats/epiano2.pat
timidity++ /usr/share/timidity/eawpats/ethnic/
timidity++ /usr/share/timidity/eawpats/ethnic/gong.pat
timidity++ /usr/share/timidity/eawpats/ethnic/tabla.pat
timidity++ /usr/share/timidity/eawpats/ethnic/tabla.txt
timidity++ /usr/share/timidity/eawpats/ethnic/talkbend.pat
timidity++ /usr/share/timidity/eawpats/ethnic/talkdrum.pat
timidity++ /usr/share/timidity/eawpats/fiddle.pat
timidity++ /usr/share/timidity/eawpats/flute.pat
timidity++ /usr/share/timidity/eawpats/fngrbass.pat
timidity++ /usr/share/timidity/eawpats/frenchrn.pat
timidity++ /usr/share/timidity/eawpats/freshair.pat
timidity++ /usr/share/timidity/eawpats/fretless.pat
timidity++ /usr/share/timidity/eawpats/fx-blow.pat
timidity++ /usr/share/timidity/eawpats/fx-fret.pat
timidity++ /usr/share/timidity/eawpats/ghostie.pat
timidity++ /usr/share/timidity/eawpats/glocken.pat
timidity++ /usr/share/timidity/eawpats/gravis.cfg
timidity++ /usr/share/timidity/eawpats/gravis.cfg.with_comment
...
timidity++ /usr/share/timidity/eawpats/viola.pat
timidity++ /usr/share/timidity/eawpats/violin.pat
timidity++ /usr/share/timidity/eawpats/voices.pat
timidity++ /usr/share/timidity/eawpats/voxlead.pat
timidity++ /usr/share/timidity/eawpats/warmpad.pat
timidity++ /usr/share/timidity/eawpats/whistle1.pat
timidity++ /usr/share/timidity/eawpats/whistle2.pat
timidity++ /usr/share/timidity/eawpats/whistle.pat
timidity++ /usr/share/timidity/eawpats/wime/
timidity++ /usr/share/timidity/eawpats/wime/wimebd.pat
timidity++ /usr/share/timidity/eawpats/wime/wimesd.pat
timidity++ /usr/share/timidity/eawpats/wime/wime.txt
timidity++ /usr/share/timidity/eawpats/winconfig/  
timidity++ /usr/share/timidity/eawpats/winconfig/timidity.cfg
timidity++ /usr/share/timidity/eawpats/woodblk1.pat
timidity++ /usr/share/timidity/eawpats/woodblk2.pat
timidity++ /usr/share/timidity/eawpats/woodblk.pat
timidity++ /usr/share/timidity/eawpats/woodflut.pat
timidity++ /usr/share/timidity/eawpats/xgmap2.cfg
timidity++ /usr/share/timidity/eawpats/xgmap2.cfg.with_comment
timidity++ /usr/share/timidity/eawpats/xylophon.pat
timidity++ /usr/share/timidity/timidity.cfg

I didn't post all files because they just go all to /usr/share/timidity/eawpats.

Is that what you wanted ?

Offline

#11 2005-03-29 20:48:53

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,363
Website

Re: [multimedia: sound&audio] Timidity++

yes, exactly this i wanted - now i can update the pkg in extra without having to recompile timidity++ again

thanx very much!


The impossible missions are the only ones which succeed.

Offline

#12 2006-07-11 15:39:55

Firmicus
Forum Fellow
From: Germany
Registered: 2006-02-28
Posts: 168

Re: [multimedia: sound&audio] Timidity++

I have created a PKGBUILD for the eawpatches that is distinct from the timidity++ package in extra. There is an install script too.

See http://aur.archlinux.org/packages.php?d … =1&ID=5934

Offline

Board footer

Powered by FluxBB