WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: timidity  (Read 2161 times)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
timidity
« on: October 27, 2009, 06:48:55 AM »
timidity extension posted - it works with alsa and oss on my laptop.

It's probably worth taking a look here http://connie.slackware.com/~alien/slackbuilds/TiMidity++/build/00README.slackware

Code: [Select]
Title:          timidity.tcz
Description:    midi-to-wave converter and player
Version:        2.13.2
Author:         see list of sites below
Original-site:  see list of sites below
Copying-policy: see list of sites below
Size: 344KB
Extension_by:   juanito
Comments:       TiMidity++ is a software synthesizer. It can play MIDI files..
                ..by converting them into PCM waveform data; give it a MIDI data..
                ..along with digital instrument data files, then it synthesizes..
                ..them in real-time, and plays. It can not only play sounds,
                but also can save the generated waveforms.
                ----------
                requires the glib1, gtk1 & libasound extensions
                should play with alsa and oss
                ----------
                edit /usr/local/share/timidity/timidity.cfg to suit your setup
                ..will not work without sound fonts or sound patches added..
                ..eg http://gd.tuwien.ac.at/opsys/linux/gentoo/distfiles/eawpats12_full.tar.gz
                ..or ftp://ftp.personalcopy.net/pub/Unison.sf2.gz
                ----------
                This extension contains:
                TiMidity++-2.13.2 - GPLv2 - http://downloads.sourceforge.net/project/timidity/TiMidity++/TiMidity++-2.13.2/TiMidity++-2.13.2.tar.bz2
                ----------
                first version
Current:        2009/10/27

Offline dentonlt

  • Sr. Member
  • ****
  • Posts: 318
    • the trombone analog
Re: timidity
« Reply #1 on: December 12, 2009, 07:08:03 PM »
I now have a working midi player on my netbook. Thanks, Juanito!

I put my timidity.cfg file in ~/.config/timidity and replace /usr/local/share/timidity/timidity.cfg from bootlocal.sh.

I had no luck downloading EAW's sound font set - tried a few times, consistent tar error.  For me using "source" to load SF2 files didn't work out either.  The TiMidity sourceforge docs are down, but the man pages still exist for both timidity and timidity.cfg.

For loading SF2 files and storing data on a different partition, my config file follows.

timidity.cfg
Code: [Select]
#/etc/timidity.cfg
#dentonlt, Dec 2009
#RTM - man timidity.cfg

#Start by identifying the directory with your data/sound files.
#Timidity doesn't handle spaces, so use quotes if necessary.

dir "/mnt/hda4/My Dropbox/Active Projects/Linux/timidity-cfg"

#Then, identify what data will be in that directory.
#For patch sets (.pat files + .cfg file), "source" the cfg file.
#For sound fonts (.sf2 files), use "soundfont" then the file name.

source timidity-mini.cfg
soundfont TimGM6mb.sf2 order=0
soundfont Unison.sf2 order=1
soundfont Gort's-Midget_J1.SF2 order=3

#You can now put in patch/program adjustments. RTM.

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: timidity
« Reply #2 on: December 12, 2009, 09:21:45 PM »
I seem to recall that I also had an error when extracting eawpats12_full.tar.gz (downloaded by picking a mirror from: http://www.filewatcher.com/m/eawpats12_full.tar.gz.32047230.0.0.html)

As it turns out BusyBox tar responds with:
Quote
tar: corrupted octal value in tar header
and fails halfway through the extract. But GNU tar (loaded with: "tce-load -wi tar.tcz") appears to be way more tolerant. It complains with:
Quote
tar: eawpats/charang.pat: implausibly old time stamp 1969-12-31 23:59:59
but it seems to finish the extract.

So you might want to give it another try. I just did:
Code: [Select]
sudo tar xzf eawpats12_full.tar.gz -C /usr/local/share/timidity and was able to play a file without any changes to the (original) .cfg file.
« Last Edit: December 12, 2009, 09:37:16 PM by maro »