1MIDICOPY(1)                 General Commands Manual                MIDICOPY(1)
2
3
4

NAME

6       midicopy  -  Copy selected track, channel, time interval of a MIDI file
7       to another MIDI file
8

SYNOPSIS

10       midicopy [-ver] [-trks n1,n2,..] [-chans  n1,n2,...]     [-from  n  (in
11       midi  ticks)]  [-to  n (in midi ticks)]    [-fromsec %f n (in seconds)]
12       [-tosec n (in seconds)]    [-frombeat %f n (in beats)]  [-tosec  n  (in
13       beats)]    [-replace trk,loc,val] input.mid output.mid
14

DESCRIPTION

16       midicopy  is used to copy part of a MIDI file to another MIDI file. You
17       can select a particular time interval, particular channels, and partic‐
18       ular tracks or any combinations. If one or both of the run time parame‐
19       ters -from or -to are included, the program returns the playing time in
20       seconds  of  the output file.  Midicopy was developed by Seymour Shlien
21       from the midifilelib distribution  available  from  http://www.harmony-
22       central.com/MIDI/midifilelib.tar.gz.
23

OPTIONS

25       -ver   prints version number and then exits
26
27       -trks n
28              Selects  the  tracks  to be copied where the track numbers start
29              from 1.  If more than one track is  specified,  they  should  be
30              separated  by  commas.  You  should always copy track 1 since by
31              convention it contains information pertinent to  all  the  other
32              tracks. By default all tracks are copied unless you specify par‐
33              ticular tracks using this run time parameter.
34
35       -chns n
36              Like above, it specifies the MIDI  channels  to  be  copied.  By
37              default all channels are copied. Channel numbers also start from
38              1.
39
40       -from n
41              The program will copy all MIDI commands starting from midi pulse
42              number  n. By default it will start from time zero or the begin‐
43              ning of the MIDI file.
44
45       -to n  Stops copying all events after midi pulse number n.  By  default
46              the file is copied to the end.
47
48       -frombeat n
49              The  program  will  copy all MIDI commands starting from quarter
50              beat number n. By default it will start from time  zero  or  the
51              beginning of the MIDI file.
52
53       -tobeat n
54              Stops copying all events after quarter beat number n. By default
55              the file is copied to the end.
56
57       -fromsec n
58              The program will copy all MIDI commands starting from time n  in
59              seconds.
60
61       -tosec n
62              Stops  copying  all  events  after  time n in seconds. These two
63              options (-fromsec and -tosec) do not work accurately if the MIDI
64              file has more than one tempo command. Only the first one is used
65              for converting seconds into MIDI pulse units.  It  is  therefore
66              preferable to use the -from and -to options.
67
68       -replace trk,loc,val
69              This  option should be used alone. Midicopy will copy the entire
70              file verbatim except it will replace a byte by  val,  where  the
71              byte is located in the specified track (trk) and specified posi‐
72              tion (loc). Commonly this function is used for changing  a  par‐
73              ticular MIDI program number (instrument) associated with a chan‐
74              nel.  You need to know the byte  count  in  the  track  of  that
75              parameter in order to use this function,
76

EXAMPLE

78       midicopy.exe  -trks  1,5  -from  2669  -to 8634 uzicko.mid fragment.mid
79       Midicopy will copy tracks 1 and 5 starting  from  midi  pulse  position
80       2669 and ending at MIDI pulse position 8634.
81
82

SEE ALSO

84       abcmtex(1), abc2abc(1), abc2midi(1), midi2abc(1) ,yaps(1)
85

AUTHOR

87       This manual page was written by Seymour Shlien.
88

VERSION

90       This man page describes midicopy version 1.04 from September 19 2005.
91
92
93
94                                                                   MIDICOPY(1)
Impressum