[QUIZ] Polyrhythm Trainer (#194)

D

Daniel Moore

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

The three rules of Ruby Quiz:

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

2. Support Ruby Quiz by submitting ideas and responses
as often as you can! Visit: <http://rubyquiz.strd6.com>

3. Enjoy!

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

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

## Polyrhythm Trainer (#194)

Greetings fellow Rubyists,

This week's quiz is to create a polyrhythm training program. The user
will be prompted to tap out a rhythm with two keys: left and right.
Each time the user presses a key the program will display how close to
the correct timing the key press occurred. The program will be
configurable to train the user in any polyrhythm 2:3, 5:4, 11:17, and
so on. The program will also have a configurable tempo. After a number
of complete rhythms the program will display the ratio of how many
notes were successfully struck, success determined by being within a
threshold around the perfect timing.

The display can be as simple as a console application or use a full
graphical interface. [Ruby Inside][1] recently had an article about
graphical toolkits if you are interested.

[Polyrhythm][2] is the simultaneous sounding of two or more independent rhythms.

[1]: http://www.rubyinside.com/ruby-gui-programming-survey-results-1552.html
[2]: http://en.wikipedia.org/wiki/Polyrhythm

Have Fun!
 
T

Todd Benson

configurable to train the user in any polyrhythm 2:3, 5:4, 11:17

11:17 is simply a modified 2:3, but I challenge anyone to do it with
any degree of precision at high tempo and only 2 references (2 keys).
If you can use your whole hand (as in playing a piano), it might be
easier. Scriabin, for example, would frequently throw his poor
pianist into 11:3, 9:4, etc. brief, but frequent, frenzies (see piano
sonata no. 1 in F minor).

Todd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,783
Latest member
RickeyDort

Latest Threads

Top