I was able to recreate the MIDI file from your code dump and it plays fine on my Win98 box. I do not have a sound card in any of my linux boxen or I would test it on them.

So either the MIDI player doesn't like my MIDI files or the original file was corrupt due to bad choices on my part for the random values.

Update: It's not your linux configuration that is messed up because you said that other MIDI files play okay. We can't rule out the player not liking the file until you have tried playing it with another MIDI player. I doubt that it is due to bad values on my part since it works fine on other operating systems (but I wouldn't rule it out yet).

Update 2: Problem solved, see root node. (Aside: Don't trust the examples listed in module documentation.)


In reply to Re: Re: Re: Re: Create MIDI With Random Tracks by Mr. Muskrat
in thread Create MIDI With Random Tracks by Mr. Muskrat

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.