MIDI-OX User Forum (http://www.midiox.com/cgi-bin/yabb/YaBB.pl)
MIDI-OX >> Questions and Discussion >> Forgot to log midi Data!! PLEASE HELP!
(Message started by: clpianostudio on Mar 14th, 2014, 5:35pm)

Title: Forgot to log midi Data!! PLEASE HELP!
Post by clpianostudio on Mar 14th, 2014, 5:35pm
Hey everyone,

I'm new to this forum. I have a huge problem! I played about an hour worth of midi data via my midi keyboard and I thought Midi-ox was logging the data. But it turns out it wasn't logging anything the whole time! :-[ So I copied everything from the Midi monitor to my clipboard and saved it as a text file. Is there any possible way I can convert the data from my midi monitor into a midi-to-text file (mtx) so I can then convert it into a standard midi file with the program Mtx2midi?

here's a snapshot of the midilog: http://i58.tinypic.com/dos977.jpg

Title: Re: Forgot to log midi Data!! PLEASE HELP!
Post by Breath on Mar 15th, 2014, 6:50pm
First of all I have to ask  - why?
I am curious why are you recording using MidiOx?
It is really a diagnostic tool and there are dozens of programs for free on the internet that will record Midi and save it as Midi files.

That of course doesn't help you in your present problem.
Any text editor will help you put the text file in the form you need.
I like PSPad.

Just make a copy of the file then play around with the copy by using 'Search and Replace'
PSPad will let you search for start or end of the line.
You can insert a Line feed after a certain character.
As MidiOx log is a fixed length of characters you can edit based on position.

Let me know if you need more help.

All the best
Royce

Title: Re: Forgot to log midi Data!! PLEASE HELP!
Post by clpianostudio on Mar 17th, 2014, 5:58pm
That's the thing! I have tons of midi recording programs! the reason why I'm trying Midi-Ox is because the program I thought I had recording the midi was actually NOT recording SMH. It was a nightmare! But then I realized I had Midi-Ox running and all of the midi data was being routed through it. So I thought I could research and find a way to convert all that data into an actual midi file. I have a huge feeling it's possible but I just can't seem to figure it out  :-[ PLEASE HELP

Title: Re: Forgot to log midi Data!! PLEASE HELP!
Post by Breath on Mar 17th, 2014, 9:59pm
So I guess this recording is important.
My guess is you need to do a bit of work to prepare the text.

So grab a text editor and play around with a copy of your file.

I would SaveAs to a new name, SongText1.txt,  SongText2.txt, SongText3.txt etc after each stage.

What does your Text to Midi expect to see?

My guess is that you will need to strip every thing except the lines with a time stamp.

004520B2  14  11      90     52     00   1   Bb  5  Note Off
004520B2  14  12      90     52     00   1   Bb  5  Note Off
004520B4  14  11      90     38     41   1   G# 3  Note On
etc

Next you need to remove the duplicates caused by multiple ports (11 and 12 get rid of port 12 lines)

004520B2  14  11      90     52     00   1   Bb  5  Note Off
004520B4  14  11      90     38     41   1   G# 3  Note On
etc

Next you need to strip out all the extra stuff.

004520B2  90     52     00  
004520B4  90     38     41
etc

The program needs handle the time stamp (it is in hexadecimal).

There are basically 2 forms of time stamp.
MidiOx gives an absolute time in milliseconds.
It looks like the clock starts when you start the program.

A Midi file uses delta time. That is, 'how long should I wait after putting out the last event till I put out this event'.

So the program needs to take the Event time stamp and subtract the previous time stamp.

This is my guess of the form the text has to be in, but you will need to check with the program's developer.

All the best
Royce



MIDI-OX User Forum » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.