Research Log of Web Science Students

Computer Science is not simply programming

Logic vs Music

leave a comment »

Our mini-game needs to generate note sequences, which the player must identify. What we did was to generate the sequences in a totally random fashion, thinking that it would be the best way to go. It wasn’t the case when we demoed at Music.

As Ma’am Joy said, yes, generating the whole sequence randomly is technically correct and logically possible. However, it was definitely not musical. For starters, it didn’t really sound nice.

She suggested that we follow certain patterns to solve this. These patterns follow actual music theory, particularly that of intervals, or the vertical distance of two pitches in the staff.

We eventually came up with this method:

What happens per level is that we only randomly generate the first pitch. Depending on the current level, we choose among the possible patterns and generate the next pitch with respect to the previous pitch and the chosen pattern. We repeat this until all pitches have been generated.

We’re still unsure if this is acceptable. Nevertheless, we’ve already emailed her about it. We’re hoping that we got it right this time.

Advertisements

Written by Jhie

September 24, 2009 at 4:11 pm

Posted in GBLinMusic

Tagged with , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: