Yahoo Groups archive

Disklavier

Index last updated: 2026-04-28 23:20 UTC

Thread

One Long MIDI File

One Long MIDI File

2016-05-21 by Laurel Lapin

Hello All,
Last night my granddaughter came over and played for an hour and now I have one long MIDI file that I would like to separate into songs. Is there a free and EASY way to do this? I have both a Mac and a PC. I am looking for a "no brainer" way to do it. I am old and not sophisticated when it comes to computers.

Thank you,
Grandpa


Re: [disklavier] One Long MIDI File

2016-05-22 by Spencer Chase

It is difficult to automatically process files unless there is something 
consistent use for making decisions. the best solution would be to buy 
an inexpensive sequencer program (you can get old versions of Cakewalk 
for very little on e-bay) and spend a little time learning it. there are 
also some free programs but i forget their names.

i write programs that process midi files and have one that shortens 
files for the purpose of making sample files. it could be modified 
pretty easily to split a file into several pieces but there are a few 
requirements. there has to be something recognizable at the points where 
you want the splitting to occur. this could be a period of silence of a 
duration that did not occur elsewhere. then you need to be able to 
decide what to call the new files made. the program could just give them 
sequential number names and could duplicate all the internal text 
information in all the files.

i also have a midi file player that i wrote that could be modified to 
allow you to split a file while it was playing. You could split the file 
right after the first song and then have two files, the first part and 
the rest in another file. Then you could repeat the process until you 
had split off all the individual songs. This might be more of a job to 
write but not a huge effort. I am traveling and finding that i have some 
time while waiting for others and getting bored. I could probably use 
this dead time to write a program.

Although I really recommend getting a simple sequencer and learning how 
to use it, if there is sufficient interest i will write the file 
splitting program.

Best regards, Spencer Chase
67550-Bell Springs Rd.
Garberville, CA 95542 Postal service only.
Laytonville, CA 95454 UPS only.
21220 92nd Place W., Edmonds, WA 98020
Spencer@...
Spencer@...
Spencer@...
http://www.spencerserolls.com
http://www.poodlex.com
(425) 791-0309
(707) 223-8212



------ Original Message ------
From: "Laurel Lapin Murlyne@... [disklavier]" 
<disklavier@yahoogroups.com>
Show quoted textHide quoted text
To: "disklavier Yamaha group" <disklavier@yahoogroups.com>
Sent: 5/21/2016 6:48:41 PM
Subject: [disklavier] One Long MIDI File

>
>
>Hello All,
>Last night my granddaughter came over and played for an hour and now I 
>have one long MIDI file that I would like to separate into songs. Is 
>there a free and EASY way to do this? I have both a Mac and a PC. I am 
>looking for a "no brainer" way to do it. I am old and not sophisticated 
>when it comes to computers.
>
>Thank you,
>Grandpa
>
>
>

RE: [disklavier] One Long MIDI File

2016-05-22 by Owen Sayers

Hi Spencer
I think that you, Bill Brandon and Mark Fontana deserve a huge vote of thanks for all that you do to help members of our group.   Where I am in Scotland there is a dearth of Disklavier Technicians and I have found the help in this forum to be first class.
Best wishes and keep up the good work.
Owen
Show quoted textHide quoted text
From: disklavier@yahoogroups.com [mailto:disklavier@yahoogroups.com]
Sent: 22 May 2016 08:44
To: disklavier@yahoogroups.com
Subject: Re: [disklavier] One Long MIDI File


It is difficult to automatically process files unless there is something consistent use for making decisions. the best solution would be to buy an inexpensive sequencer program (you can get old versions of Cakewalk for very little on e-bay) and spend a little time learning it. there are also some free programs but i forget their names.

i write programs that process midi files and have one that shortens files for the purpose of making sample files. it could be modified pretty easily to split a file into several pieces but there are a few requirements. there has to be something recognizable at the points where you want the splitting to occur. this could be a period of silence of a duration that did not occur elsewhere. then you need to be able to decide what to call the new files made. the program could just give them sequential number names and could duplicate all the internal text information in all the files.

i also have a midi file player that i wrote that could be modified to allow you to split a file while it was playing. You could split the file right after the first song and then have two files, the first part and the rest in another file. Then you could repeat the process until you had split off all the individual songs. This might be more of a job to write but not a huge effort. I am traveling and finding that i have some time while waiting for others and getting bored. I could probably use this dead time to write a program.

Although I really recommend getting a simple sequencer and learning how to use it, if there is sufficient interest i will write the file splitting program.

Best regards, Spencer Chase
67550-Bell Springs Rd.
Garberville, CA 95542 Postal service only.
Laytonville, CA 95454 UPS only.
21220 92nd Place W., Edmonds, WA 98020
Spencer@...
Spencer@...
Spencer@mcn.org
http://www.spencerserolls.com
http://www.poodlex.com
(425) 791-0309
(707) 223-8212



------ Original Message ------
From: "Laurel Lapin Murlyne@PacBell.Net [disklavier]" <disklavier@yahoogroups.com>
To: "disklavier Yamaha group" <disklavier@yahoogroups.com>
Sent: 5/21/2016 6:48:41 PM
Subject: [disklavier] One Long MIDI File


Hello All,
Last night my granddaughter came over and played for an hour and now I have one long MIDI file that I would like to separate into songs. Is there a free and EASY way to do this? I have both a Mac and a PC. I am looking for a "no brainer" way to do it. I am old and not sophisticated when it comes to computers.

Thank you,
Grandpa

Re: [disklavier] One Long MIDI File

2016-05-22 by Kevin Goroway

If this is really a one-off, and isn't the sort of thing you need to invest time in learning... I'm happy to do it for you.
Send me the midi file, and I'll send you back the pieces.  There's a good chance I won't know the song titles, so you'd have to rename them yourself.
-Kevin
Show quoted textHide quoted text
      From: "Laurel Lapin Murlyne@... [disklavier]" <disklavier@yahoogroups.com>
 To: disklavier Yamaha group <disklavier@yahoogroups.com> 
 Sent: Saturday, May 21, 2016 12:48 PM
 Subject: [disklavier] One Long MIDI File
   
    Hello All,Last night my granddaughter came over and played for an hour and now I have one long MIDI file that I would like to separate into songs. Is there a free and EASY way to do this? I have both a Mac and a PC. I am looking for a "no brainer" way to do it. I am old and not sophisticated when it comes to computers.
Thank you,Grandpa

Re: [disklavier] One Long MIDI File

2016-05-22 by Bill Brandom

Grandpa, that sounds like a great offer!

Bill
Love God. Love People. Make a difference.


On May 22, 2016, at 11:05 AM, Kevin Goroway kgoroway@yahoo.com [disklavier] <disklavier@yahoogroups.com> wrote:

If this is really a one-off, and isn't the sort of thing you need to invest time in learning... I'm happy to do it for you.

Send me the midi file, and I'll send you back the pieces.  There's a good chance I won't know the song titles, so you'd have to rename them yourself.

-Kevin
Show quoted textHide quoted text
From: "Laurel Lapin Murlyne@PacBell.Net [disklavier]" <disklavier@yahoogroups.com>
To: disklavier Yamaha group <disklavier@yahoogroups.com> 
Sent: Saturday, May 21, 2016 12:48 PM
Subject: [disklavier] One Long MIDI File

 
Hello All,
Last night my granddaughter came over and played for an hour and now I have one long MIDI file that I would like to separate into songs. Is there a free and EASY way to do this? I have both a Mac and a PC. I am looking for a "no brainer" way to do it. I am old and not sophisticated when it comes to computers.

Thank you,
Grandpa

Re: One Long MIDI File

2016-05-22 by rightnightboy@...

Hi,
The offer of Kevin Gorroway is probably the easiest thing to do... you won't do this often so ... but in case you would want to learn the suggestions of people here are all good . Id like to add from cannot.se MidiYodi which can cut a part of a midi file away and let you save whats left as a new midi file so in principle by going backward you can for example select all the file but lets say the first piece, then remove the selected part and your left with the first piece... and so on its a bit tedious one would think ... "how come there is not out there a midi file splitter....? LOL

RE: [disklavier] One Long MIDI File

2016-05-22 by rightnightboy@...

I join Owen Sayers in thanks vote for the experts of this forum . Your help is always really appreciated and soon precious. THANK YOU ALL ;- )

Re: [disklavier] One Long MIDI File

2016-05-22 by Bill Brandom

Owen,

Thanks! I love Disklavier and enjoy seeing others loving their pianos. I am always glad to help!

Bill
Love God. Love People. Make a difference.


On May 22, 2016, at 2:59 AM, 'Owen Sayers' owen.sayers@... [disklavier] <disklavier@yahoogroups.com> wrote:

Hi Spencer

I think that you, Bill Brandon and Mark Fontana deserve a huge vote of thanks for all that you do to help members of our group.   Where I am in Scotland there is a dearth of Disklavier Technicians and I have found the help in this forum to be first class.

Best wishes and keep up the good work.

Owen
Show quoted textHide quoted text
From: disklavier@yahoogroups.com [mailto:disklavier@yahoogroups.com] 
Sent: 22 May 2016 08:44
To: disklavier@yahoogroups.com
Subject: Re: [disklavier] One Long MIDI File

 

 

It is difficult to automatically process files unless there is something consistent use for making decisions. the best solution would be to buy an inexpensive sequencer program (you can get old versions of Cakewalk for very little on e-bay) and spend a little time learning it. there are also some free programs but i forget their names.

 

i write programs that process midi files and have one that shortens files for the purpose of making sample files. it could be modified pretty easily to split a file into several pieces but there are a few requirements. there has to be something recognizable at the points where you want the splitting to occur. this could be a period of silence of a duration that did not occur elsewhere. then you need to be able to decide what to call the new files made. the program could just give them sequential number names and could duplicate all the internal text information in all the files.

 

i also have a midi file player that i wrote that could be modified to allow you to split a file while it was playing. You could split the file right after the first song and then have two files, the first part and the rest in another file. Then you could repeat the process until you had split off all the individual songs. This might be more of a job to write but not a huge effort. I am traveling and finding that i have some time while waiting for others and getting bored. I could probably use this dead time to write a program.

 

Although I really recommend getting a simple sequencer and learning how to use it, if there is sufficient interest i will write the file splitting program.

 

Best regards, Spencer Chase
67550-Bell Springs Rd.
Garberville, CA 95542 Postal service only.
Laytonville, CA 95454 UPS only.
21220 92nd Place W., Edmonds, WA 98020
Spencer@...
Spencer@...
Spencer@...
http://www.spencerserolls.com
http://www.poodlex.com
(425) 791-0309
(707) 223-8212

 

 

 

------ Original Message ------

From: "Laurel Lapin Murlyne@PacBell.Net [disklavier]" <disklavier@yahoogroups.com>

To: "disklavier Yamaha group" <disklavier@yahoogroups.com>

Sent: 5/21/2016 6:48:41 PM

Subject: [disklavier] One Long MIDI File

 

 

Hello All,

Last night my granddaughter came over and played for an hour and now I have one long MIDI file that I would like to separate into songs. Is there a free and EASY way to do this? I have both a Mac and a PC. I am looking for a "no brainer" way to do it. I am old and not sophisticated when it comes to computers.

 

Thank you,

Grandpa

Re: [disklavier] Re: One Long MIDI File

2016-05-22 by Spencer Chase

would not be terribly difficult to make a midi file splitter. if there 
were enough demand i could convert one of my existing programs to do the 
job. i think the easiest method for a total novice would be to have a 
midi file player that would split off a file every time you clicked a 
certain key while it was playing. this would be pretty easy to write but 
as with any programs it is the details that make a simple program get 
pretty complicated. adding appropriate meta data and changing files 
names are all possible but to add all the options that users might want 
would increase the programming job considerably.

how about a player that had the usual play pause stop buttons and that 
you could interrupt at any point with a click of a button of key and 
then enter the name you wanted for the file split off?

Best regards, Spencer Chase
67550-Bell Springs Rd.
Garberville, CA 95542 Postal service only.
Laytonville, CA 95454 UPS only.
21220 92nd Place W., Edmonds, WA 98020
Spencer@...
Spencer@...
Spencer@...
http://www.spencerserolls.com
http://www.poodlex.com
(425) 791-0309
(707) 223-8212



------ Original Message ------
From: "rightnightboy@... [disklavier]" 
<disklavier@yahoogroups.com>
Show quoted textHide quoted text
To: disklavier@yahoogroups.com
Sent: 5/22/2016 7:17:03 PM
Subject: [disklavier] Re: One Long MIDI File

>
>Hi,
>
>The offer of Kevin Gorroway is probably the easiest thing to do... you 
>won't do this often so ... but in case you would want to learn the 
>suggestions of people here are all good . Id like to add from cannot.se 
>MidiYodi which can cut a part of a midi file away and let you save 
>whats left as a new midi file so in principle by going backward you can 
>for example  select all the file but lets say the first piece, then 
>remove the selected part and your left with the first piece... and so 
>on its a bit tedious one would think ... "how come there is not out 
>there a midi file splitter....? LOL
>
>

Re: [disklavier] Re: One Long MIDI File

2016-05-23 by rightnightboy@...

Hi Spencer,
"how about a player that had the usual play pause stop buttons and that you could interrupt at any point with a click of a button of key and then enter the name you wanted for the file split off?"

That looks to be the best scenario. Simple and efficient (maybe if possible add some kind of a visual display of the midi data in the file so to be able also to spot silences between pieces in a long midi file and split that way... but that can be more tricky no...? )

Best to you
Alain

Re: [disklavier] Re: One Long MIDI File

2016-05-23 by rightnightboy@...

I just read this which is somewhat a good reflexion on splitting midi files (its a question to the author of GNMIDI software.
http://www.gnmidi.com/cgi-bin/comments.pl?topic=gnmidic&lang=e&count=all



Newsgroup: alt.music.midiSubject: split midi files
>> With what (possibly free) program is possible to split in two a midi file?

Anything called a "sequencer".    I don't need to know about free
ones, but I'm sure there are suckh and someone will recommend one.

Note that a midi file often contains setup data - sounds allocated to
tracks, volumes etc. - at the start.     If you remove this section
and start half way through the song, you may get unexpected results.

If all you want to do is shorten the file, GNMIDI (http://www.gnmidi.com,
shareware) can do that.  Very flexible for this sort of thing, and
avoids any worry about manually cutting and leaving out vital messages
from earlier in the song.

  It isn't too hard to cut out the end of a song using a sequencer,
but taking out the beginning is trickier.  


Re: [disklavier] Re: One Long MIDI File

2016-05-23 by Spencer

Adding graphical display that was useful would probably be a lot of work. Could show time to next playing note. Might be good to delete empty space at beginning and end of each section and add fixed amount of silence. Also probably want to retain all events at beginning of file. It is difficult to anticipate all the strangeness that can occur in midi files. Will think about this and try to guess whether it will be an easy job or a big one. 

Sent from my iPhone
Show quoted textHide quoted text
> On May 23, 2016, at 9:08 AM, rightnightboy@... [disklavier] <disklavier@yahoogroups.com> wrote:
> 
> Hi Spencer,
> 
> "how about a player that had the usual play pause stop buttons and that you could interrupt at any point with a click of a button of key and then enter the name you wanted for the file split off?"
> 
> That looks to be the best scenario. Simple and efficient (maybe if possible add some kind of a visual display of the midi data in the file so to be able also to spot  silences between pieces in a long midi file and split that way... but that can be more tricky no...? )
> 
> Best to you
> Alain
>  
>

Re: One Long MIDI File

2016-05-23 by ben8choy@...

A free audio editor you can use is Audacity from http://audacity.sourceforge.net. You can import and export midi files but probably won't be able to play it back from Audacity so here's the suggested steps:

1. Play your midi file on any player to get the start and end time of each "song" you want to separate from the hour long midi file.
2. Import the hour long midi file into Audacity
3. Drag select the notes from the start and end time of each song and click "cut". If there were pronounced breaks between each song you will probably be able to see where those breaks are on the editor to make it easier to select the start and end points.
4. Open "new" file and "paste"
5. Export this as your new midi file for each "song"
6. Go to #3 and Repeat for each "song" you want to separate.

Re: [disklavier] Re: One Long MIDI File

2016-05-23 by Spencer

Amazing. Audacity works great to edit midi, even has a piano roll view. As long as you can recognize the place where you want to split, visually, it is great. Too bad you cant listen to the file


Sent from my iPhone
Show quoted textHide quoted text
> On May 23, 2016, at 10:06 AM, ben8choy@... [disklavier] <disklavier@yahoogroups.com> wrote:
> 
> A free audio editor you can use is Audacity from http://audacity.sourceforge.net.  You can import and export midi files but probably won't be able to play it back from Audacity so here's the suggested steps:
> 
> 
> 1. Play your midi file on any player to get the start and end time of each "song" you want to separate from the hour long midi file.
> 2. Import the hour long midi file into Audacity
> 3. Drag select the notes from the start and end time of each song and click "cut".  If there were pronounced breaks between each song you will probably be able to see where those breaks are on the editor to make it easier to select the start and end points.
> 4. Open "new" file and "paste"
> 5. Export this as your new midi file for each "song"
> 6. Go to #3 and Repeat for each "song" you want to separate.
> 
>

Re: [disklavier] Re: One Long MIDI File

2016-05-23 by rightnightboy@...

Great solution ! For MidiYodi I made some experiments and for  the resulting cropped files MidiYodi always puts  at their beginning the original data for proper playing that is part of the original file

Re: [disklavier] One Long MIDI File

2016-05-23 by George Litterst

Good morning, everyone.


I am a long-time user of Audacity for editing audio files. I’m astonished to discover that it can open, edit, and export MIDI files! At first blush, it appears that the editing is limited to cut, copy, and paste.


Prior to learning about Audacity, I was going to comment that when splitting up a Disklavier file, you really should find a way to do it and keep the messages that appear at the beginning of the file, which include:


—a variety of Yamaha SysEx messages
—GM reset message
—controller 7 (volume) message (typically setting the volume to 100)
—patch message


Unfortunately, Yamaha has not published a chart of the SysEx messages, and I therefore don’t know how important many of them are. I do know that some of them relate to:


—reseting the internal XG tone generator
—specifying which channels contain left hand and right hand data
—model of Disklavier


I am reasonably certain that other messages may relate to whether video-sync is being used, whether CD sync is being used, and whether the file contains XP data.


Speaking of XP data: We have had a long standing problem that the Disklavier PRO uses various controller messages to store extra bits of resolution for hammer velocity, key release velocity, and pedal positions as well as data for key-down velocity. These messages much occur in the correct order in the MIDI file and must be preceded by polyphonic aftertouch messages that effectively determine the association of these controller messages with specific notes.


Unfortunately, when you load a MIDI file into a typical sequencer, the sequencer imports the MIDI data into its own format and in doing so, messes up the ordering of the messages. When you export a new MIDI file from the sequencer, you have lost the integrity of the XP data (although there normal MIDI data in the file will play just fine).


If anyone wants to develop an application to split up XP MIDI files, this issue should—ideally—be taken into consideration.


I look forward to playing around with Audacity, MididYodi, and GN MIDI to see if any of these applications can treat XP data appropriately.


Regards,
PianoBench





On May 23, 2016, at 5:44 AM, Spencer lists@... [disklavier] <disklavier@yahoogroups.com> wrote:






Amazing. Audacity works great to edit midi, even has a piano roll view. As long as you can recognize the place where you want to split, visually, it is great. Too bad you cant listen to the file


Sent from my iPhone

On May 23, 2016, at 10:06 AM, ben8choy@... [disklavier] <disklavier@yahoogroups.com> wrote:



 
A free audio editor you can use is Audacity from http://audacity.sourceforge.net.  You can import and export midi files but probably won't be able to play it back from Audacity so here's the suggested steps:


1. Play your midi file on any player to get the start and end time of each "song" you want to separate from the hour long midi file.
2. Import the hour long midi file into Audacity
3. Drag select the notes from the start and end time of each song and click "cut".  If there were pronounced breaks between each song you will probably be able to see where those breaks are on the editor to make it easier to select the start and end points.
4. Open "new" file and "paste"
5. Export this as your new midi file for each "song"
6. Go to #3 and Repeat for each "song" you want to separate.

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.