Combining midi files

Discussion in 'comp.music.midi' started by Basil, May 1, 2003.

  1. Basil

    Basil Guest

    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.
  2. JB Seattle

    JB Seattle Guest

    Copy, paste--it's that simple with Cakewalk.
    JB
    "Basil" <bpessin@renc.igs.net> wrote in message
    news:da5da262.0305011506.555fc2aa@posting.google.com...
    > 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.
  3. zentara

    zentara Guest

    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');
  4. 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.com...
    >> 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
  5. JB Seattle

    JB Seattle Guest

    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.com...
    > >> 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
    >
  6. 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.
  7. JB Seattle

    JB Seattle Guest

    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.
  8. 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.com...
    > 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.

Share This Page