To publish some music in MIDI format I need a MIDI version of the Unix
cat...
Rationale :
My abc tunes are split in various X: tunes and abc2midi generates a MIDI
file per X: tune. It would be more user friendly to have a single MIDI file for the
whole tune so that I could also publish in MIDI format.
Right now I also generate audio file by concatenating all the audio file
generated by timidity on each MIDI file, which is a pain because there is
a blank at the end of each partial audio file... :-(
Generating all the audio from a single MIDI file should be better...
For typical examples : http://kazimodal.trad.org/partitions/
my generic Makefile :
PARTITION_DIR = $(HOME)/public_html/trad/partitions
TARGET_DIR = $(PARTITION_DIR)/`pwd | sed 's,.*/\([^/]*/[^/]*\),\1,'`
MIDI = $(ABC:.abc=.midi)
PS = $(ABC:.abc=.ps)
AU = $(ABC:.abc=.au)
YAPS_SCALE=0.9
#TIMIDITY=timidity -c gravis.cfg
TIMIDITY=timidity
.SUFFIXES: .ps .dvi .tex .abc .midi
all: $(PS) $(MIDI) $(AU)
clean:
rm -f $(PS) $(MIDI) $(AU)
# No longer recompile stuff since the tools may not be on the WWW server.
install :
mkdir -p $(TARGET_DIR)
cp $(ABC) $(AU) $(TARGET_DIR)
#gzip -9 -c $(PS) > $(TARGET_DIR)/$(PS).gz
cp $(PS) $(TARGET_DIR)
index: *.abc
abc2mtex -i *.abc
sort_in
joue: $(MIDI)
# $(TIMIDITY) -L /usr/local/lib/timidity/instruments -ig *.mid
$(TIMIDITY) -ig *.mid
.abc.tex: Makefile
abc2mtex -x -o $*.tex $*
.abc.dvi: Makefile
abc2mtex -x -o $*.tex $*
tex $*
#musixflx $*
tex $*
%.midi : %.abc Makefile
-abc2midi $<
#cat $**.mid > $@
%.au : %.midi Makefile
-$(TIMIDITY) -id -OrMU -s8 -o $@ $**.mid
%.ps : %.abc Makefile
#abc2ps $* -x -n -p -O = -o
yaps $< -s $(YAPS_SCALE)
#.abc.ps:
# abc2mtex -x -o $*.tex $*
# tex $*
# #musixflx $*
# tex $*
# dvips -o $*.ps $*.dvi
Thank you,
--
Ronan KERYELL |\/
Labo Informatique T�l�com |/) Tel: (+33|0) 2.29.00.14.15
ENST Bretagne, BP832 K Fax: (+33|0) 2.29.00.12.82
29285 BREST CEDEX |\ E-mail: [EMAIL PROTECTED]
FRANCE | \ http://www-info.enst-bretagne.fr/~keryell
To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html