Mario Paint Composer File Parser (#215)


The three rules of Ruby Q.:

  1. Please do not post any solutions or spoiler discussion for this
    quiz until 48 hours have elapsed from the time this message was

  2. Support Ruby Q. by submitting ideas and responses
    as often as you can!

  3. Enjoy!

Suggestion: A [QUIZ] in the subject of emails about the problem
helps everyone on Ruby T. follow the discussion. Please reply to
the original quiz message, if you can.

RSS Feed:


Mario Paint Composer File Parser (#215)

Niltze Rubyists,

This week’s quiz is to create a parser for Mario Paint Composer1
files. Attached is a sample data file.

The file consists of three parts:
A time signature, either 3/4 or 4/4
A sequence of 384 beats which may each contain:
up to five notes which contain:
the instrument
the position on the musical staff
the volume for the beat
The tempo of the piece

The output can be in any format you want but should contain all the
data from the original file format. For extra credit you can add the
ability to translate back into the Mario Paint Composer format. Here
is an example of Mario Paint Composer in action: . There are many many

Have Fun!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs