[LAU] Rosegarden -> lilypond help

gene heskett gheskett at wdtv.com
Fri Dec 16 14:20:26 UTC 2011


On Friday, December 16, 2011 08:52:24 AM Lorenzo Sutton did opine:

> Hi,
> 
> On 15/12/11 22:02, gene heskett wrote:
> > Greetings everybody, midi folks in particular;
> > 
> > I have a .mid file that plays using the wrong instruments because it
> > was composed before GM.
> > 
> > Sent to the built in synth in an audigy2, it plays at normal speed but
> > wrong instruments.
> > 
> > Loaded into rosegarden (to fix this), it plays at about 1/100th speed.
> > This doesn't surprise me too much as the originating program dates to
> > 1991 on a TRS-80 Color Computer 3&  GM was something we only got in
> > the then brand new Sound Canvas's and such.  Obviously something in
> > the header doesn't meet .mid file specs.  I did change the internal
> > name from .ume to .mid in a hex editor, and reloaded but other than
> > the track title now showing the correct string, no other effect.
> > 
> > In an effort to see what might be wrong, I fired up the print preview
> > which uses lilypond to generate the 'sheet' music.  But from the
> > looks of it, its going to use 80% of all 4 cores of this phenom for
> > several hours to render, probably because of this same time error,
> > (transport says its like nearly 3 hours long, but its a bit over 3
> > mins in actual play time) so the generated pdf is likely to be 40Gb!
> > 
> > Does anyone know enough about this to tell me where, in rosegarden, to
> > fix this?  Or do I need the hex editor again?  Or, heaven forbid, its
> > a bug in rosegarden (shudder).
> > 
> > Thanks midi folks.
> > 
> > Cheers, Gene
> 
> Maybe something like midicomp [1] could be useful to dig into the file
> and see where the tempo problem is generated... It will convert midi
> to/from human readable text.
> 
> Lorenzo.
> 
> [1] https://github.com/markc/midicomp

Thanks, got it and installed it, makes me ask WTH is:

0 TimeSig 4/4 24 8
0 Tempo 428571
0 Arb f8
2 Arb f8
4 Arb f8
6 Arb f8
8 Arb f8
10 Arb f8
12 Arb f8
14 Arb f8
16 Arb f8
18 Arb f8
20 Arb f8
22 Arb f8
24 Arb f8
26 Arb f8
28 Arb f8
30 Arb f8
32 Arb f8
34 Arb f8

all the Arb f8 junk that is not in a good file? 

[root at coyote johnny_cash]# /usr/local/bin/midicomp californiaGirls.mid |
grep Arb|wc -l
6818

[root at coyote johnny_cash]# /usr/local/bin/midicomp smas6984.mid |grep Arb|
wc -l
0

The 2nd file is about 26 seconds of Tennessee Flat Top Box from Cash's 
AmericanIV cd.

I constructed a new file, using grep -v Arb to remove that stuff, and now 
Rosegarden is happy, and plays it at normal speed.

This is a very powerful way to fix buggy .mid files, thank you very much!

Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://coyoteden.dyndns-free.com:85/gene>
Power corrupts.  Absolute power is kind of neat.
		-- John Lehman, Secretary of the Navy, 1981-1987


More information about the Linux-audio-user mailing list