View Full Version : Combining midi files
Basil
05-01-2003, 05:06 PM
I would like to create a single midi file by combining two or more
smaller midi files to play consecutively as if it were one file. Any
advise would be appreciated. Thanks in advance.
JB Seattle
05-02-2003, 08:12 AM
Copy, paste--it's that simple with Cakewalk.
JB
"Basil" <bpessin@renc.igs.net> wrote in message
news:da5da262.0305011506.555fc2aa@posting.google.c om...
> I would like to create a single midi file by combining two or more
> smaller midi files to play consecutively as if it were one file. Any
> advise would be appreciated. Thanks in advance.
zentara
05-02-2003, 09:47 AM
On 1 May 2003 16:06:56 -0700, bpessin@renc.igs.net (Basil) wrote:
>I would like to create a single midi file by combining two or more
>smaller midi files to play consecutively as if it were one file. Any
>advise would be appreciated. Thanks in advance.
The gnmidi suite of utilities has "midicat.exe" which runs under
wine if you are on linux.
wine midicat.exe 1.mid 2.mid output.mid
################################################## ###########
You can also use Perl, figuring out how to concat them is left to you.
This will dump a midi. (If I figure it out, I will post it later :-)).
#!/usr/bin/perl -w
use strict;
use MIDI;
for my $midi (@ARGV) {
my $opus = MIDI::Opus->new({ 'from_file' => $midi, 'no_parse' => 1 });
open(*STDOUT, ">", "$midi.txt");
$opus->dump( { dump_tracks => 1 } );
}
#to reconstruct a midi you need to prepend
# use MIDI;
# $opus=
# .....
# ....
#and append at the end
# $opus->write_to_file('myout.mid');
Michael R. Kesti
05-03-2003, 10:32 AM
JB Seattle wrote:
>Copy, paste--it's that simple with Cakewalk.
>JB
>"Basil" <bpessin@renc.igs.net> wrote in message
>news:da5da262.0305011506.555fc2aa@posting.google.c om...
>> I would like to create a single midi file by combining two or more
>> smaller midi files to play consecutively as if it were one file. Any
>> advise would be appreciated. Thanks in advance.
Indeed. I like to say that sequencers, such as Cakewalk, are to MIDI
data as word processors are to textual data.
--
================================================== ======================
Michael Kesti | "And like, one and one don't make
| two, one and one make one."
mkesti@gv.net | - The Who, Bargain
JB Seattle
05-04-2003, 04:47 PM
Then I guess you really haven't tried cutting and pasting much, as long as
the setup measure is there, what's the problem?
Jn
"Michael R. Kesti" <mkesti@gv.net> wrote in message
news:3EB3EF35.62BB45F2@gv.net...
> JB Seattle wrote:
>
> >Copy, paste--it's that simple with Cakewalk.
> >JB
> >"Basil" <bpessin@renc.igs.net> wrote in message
> >news:da5da262.0305011506.555fc2aa@posting.google.c om...
> >> I would like to create a single midi file by combining two or more
> >> smaller midi files to play consecutively as if it were one file. Any
> >> advise would be appreciated. Thanks in advance.
>
> Indeed. I like to say that sequencers, such as Cakewalk, are to MIDI
> data as word processors are to textual data.
>
> --
> ================================================== ======================
> Michael Kesti | "And like, one and one don't make
> | two, one and one make one."
> mkesti@gv.net | - The Who, Bargain
>
Günter Nagler
05-05-2003, 02:36 AM
http://www.gnmidi.com (f. Windows) has make medley operation.
Basil wrote:
>
> I would like to create a single midi file by combining two or more
> smaller midi files to play consecutively as if it were one file. Any
> advise would be appreciated. Thanks in advance.
JB Seattle
05-05-2003, 08:39 AM
I forgot about that one, Dr. it does work very well. Every midi studio
should have your toolkit.
JB
"Günter Nagler" <gnagler@iicm.tu-graz.ac.at> wrote in message
news:3EB622A5.BB8CE3DE@iicm.tu-graz.ac.at...
> http://www.gnmidi.com (f. Windows) has make medley operation.
>
> Basil wrote:
> >
> > I would like to create a single midi file by combining two or more
> > smaller midi files to play consecutively as if it were one file. Any
> > advise would be appreciated. Thanks in advance.
Terry Donovan
06-07-2003, 08:50 AM
the problem with cut and paste is that the instruments in the pasted midi
file might change to the instruments in first midi file...but thats easy
enough to change
"Basil" <bpessin@renc.igs.net> wrote in message
news:da5da262.0305011506.555fc2aa@posting.google.c om...
> I would like to create a single midi file by combining two or more
> smaller midi files to play consecutively as if it were one file. Any
> advise would be appreciated. Thanks in advance.
vBulletin® v3.7.0 Release Candidate 2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.