.TH GC2MPU 1 "MIDI"
.SH NAME
gc2mpu - convert a ``guitar chord'' file to an MPU file
.SH SYNOPSIS
\fBgc2mpu\fP [file or stdin]
.SH DESCRIPTION
.I gc2mpu
reads guitar chord files (in the format described under gc(5))
and converts them to MPU files suitable for input to play(1).
The music preprocessor, mpp, can be used to interpret repeats, skips, and
sections (see example).
.PP
A TCWME (MPU Timing Clock With Measure End) command is placed after
each input line's data has been output.
.SH EXAMPLE
.Cs
% head \-16 rs.gc
# Russion Song \- guitar chords
#PICK	alt
#STRUM	0.025
#ARTIC	0.8
#SPEED	2
#REPEAT	2
#MULT	2
D3	A2	A3  D4  F4
E3	B2	B3  E4  G#4
#ENDRPT
G2	D3	Bb3 D4  G4
B2	F#3	B3  D4  F#4
#MULT	1
G2	D3	Bb3 D4  G4
F2	C3	A3  C4  F4
A2	E3	A3  C#4 E4
% mpp <rs.gc | gc2mpu >rs.mpu
% da rs.mpu | head
 0 90 32 40 ;    0.000      0 kon   [ 50]=64  D3 key on
30 90 32  0 ;    0.400      1 koff  [ 50]=0   D3 key off
 6 90 39 40 ;    0.450      2 kon   [ 57]=64  A3 key on
 3 90 3e 40 ;    0.475      3 kon   [ 62]=64  D4 key on
 3 90 41 40 ;    0.500      4 kon   [ 65]=64  F4 key on
30 90 39  0 ;    0.900      5 koff  [ 57]=0   A3 key off
 0 90 3e  0 ;    0.900      6 koff  [ 62]=0   D4 key off
 0 90 41  0 ;    0.900      7 koff  [ 65]=0   F4 key off
 c 90 2d 40 ;    1.000      8 kon   [ 45]=64  A2 key on
30 90 2d  0 ;    1.400      9 koff  [ 45]=0   A2 key off
.Ce
.SH SEE ALSO
cc2gc(1), gc(5), mpp(1)
.SH AUTHOR
Peter Langston, Bell Communications Research
(bellcore!psl)
