The three rules of Ruby Q.:
Please do not post any solutions or spoiler discussion for this
quiz until 48 hours have elapsed from the time this message was
Support Ruby Q. by submitting ideas and responses
as often as you can!
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: http://rubyquiz.strd6.com/quizzes.rss
Mario Paint Composer File Parser (#215)
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 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:
http://www.youtube.com/watch?v=XDQu_kFpIHs . There are many many