This completely off-topic to Finale, but I'm trying to find someone 
who uses PHP and is familiar with MIDI files, and this is one forum 
where it's possible someone like that may be reading.

I'm using aa PHP class written by someone else to calculate durations 
of MIDI files on a webpage and it's producing inaccurate results. 

The class is available here (free registration):

  http://www.phpclasses.org/browse/package/1362.html

or here (without registration but without showing the source code for 
the demos, which you can't see unless you download the class):

  http://staff.dasdeck.de/valentin/midi/

The problem is that the class is returning inaccurate durations for 
these two files:

8:04 duration calc'd as 7:09
  http://www.dfenton.com/Midi/MozartK581Arr/MozartK581ArrD.mid

6:54 duration calc'd as 19:59
  http://www.dfenton.com/Midi/FoersterOctet/FoersterOctetA.mid

Now, for one, the class returns seconds, and I'm dividing that by 60 
to get minutes, but if I run the files through the demo site:

  http://dasdeck.de/staff/valentin/midi/duration.php

and take the results (in seconds) and divide by 60, I get the same 
incorrect answers. So, it seems the problem is within the class, and 
not in my code that converts the seconds to an HH:MM:SS format.

Does anyone have the expertise to look into this? I will start 
digging, I guess, but the class itself is something I know how to use 
as a black box, but not something I understand the internals of.

If you have any pointers for trying to figure it out, I'd also be 
interested. 

I don't want to bother the creator of the class until I've determined 
whether I'm doing something wrong with it or not.

Could there be something weird about these particular MIDI files that 
could be causing the problem?

-- 
David W. Fenton                        http://www.bway.net/~dfenton
David Fenton Associates                http://www.bway.net/~dfassoc

_______________________________________________
Finale mailing list
[email protected]
http://lists.shsu.edu/mailman/listinfo/finale

Reply via email to