3

I am in the process of creating a computer game, where a character moves in a grid sized 8 x 8 squares, i.e. 8 squares horizontally and 8 squares vertically. When the character is moving on the playing field, notes are played depending on the position of the character. Being in the same position always results in the same notes being played (by design, so that the character position can be identified without looking at the screen). Moving the character horizontally and vertically (diagonal movement or "teleporting" to non-neighbouring squares is not possible) results in a dynamic melody being played. The position of the character should be uniquely identifiable by the notes played.

I have some basic knowledge of harmonies and scales (e.g. how to construct chords, which tone combinations sound dissonant, keys, modes etc).

Currently I'm using an oriental-sounding scale (read in some guitar magazine a long time ago, don't know the name of it). I'm playing the base notes

E3, F3, G#3, A3, B3, C4, D#4, E4

when moving the character vertically (lower notes on the bottom of the sceen) and simultaneously one of the same 8 notes two octaves higher when moving the character horizontally (lower notes to the left of the screen), that is

E5, F5, G#5, A5, B5, C6, D#6, E6

so that every combination of two of these 16 notes is possible. For example, when the character starts in the bottom left square, the notes played are E3/E5. When the character moves to the right, the notes played are E3/F5. Moving down one square results in F3/F5 being played, and so on.

+--------+--------+---------+--------+--------+--------+---------+--------+
| E4 E5  | E4 F5  | E4 G#5  | E4 A5  | E4 B5  | E4 C5  | E4 D#5  | E4 E6  |
+--------+--------+---------+--------+--------+--------+---------+--------+
| D#4 E5 | D#4 F5 | D#4 G#5 | D#4 A5 | D#4 B5 | D#4 C5 | D#4 D#5 | D#4 E6 |
+--------+--------+---------+--------+--------+--------+---------+--------+
| C4 E5  | C4 F5  | C4 G#5  | C4 A5  | C4 B5  | C4 C5  | C4 D#5  | C4 E6  |
+--------+--------+---------+--------+--------+--------+---------+--------+
| B3 E5  | B3 F5  | B3 G#5  | B3 A5  | B3 B5  | B3 C5  | B3 D#5  | B3 E6  |
+--------+--------+---------+--------+--------+--------+---------+--------+
| A3 E5  | A3 F5  | A3 G#5  | A3 A5  | A3 B5  | A3 C5  | A3 D#5  | A3 E6  |
+--------+--------+---------+--------+--------+--------+---------+--------+
| G#3 E5 | G#3 F5 | G#3 G#5 | G#3 A5 | G#3 B5 | G#3 C5 | G#3 D#5 | G#3 E6 |
+--------+--------+---------+--------+--------+--------+---------+--------+
| F3 E5  | F3 F5  | F3 G#5  | F3 A5  | F3 B5  | F3 C5  | F3 D#5  | F3 E6  |
+--------+--------+---------+--------+--------+--------+---------+--------+
| E3 E5  | E3 F5  | E3 G#5  | E3 A5  | E3 B5  | E3 C5  | E3 D#5  | E3 E6  |
+--------+--------+---------+--------+--------+--------+---------+--------+

This sounds a bit monotonous and not always very pleasing to the ear, as the vertical "bass" notes do not always mix well with the horizontal higher "lead" notes.

What I'd like to do is have a unique "system" so that

  • each of the squares in the 8 x 8 grid contains notes unique to that square (as is the case now)
  • each pair is not very dissonant (not so currently)
  • the transition from every possible adjacent square results in a pleasant succession of notes, i.e a melody (not so currently)

I'm struggling to think of a way to create such a system so that the resulting melody still sounds like a real melody with a base tone and without shifting the key of the melody.

Is it possible to create such a system, and how should I go about doing this? I'm also not necesarily limited to using two notes in every square (each square can be divided into 16 subsquares), but to develop a melodic system I thought it would be easier to concentrate on 2 notes per square and go further from there. But I'm open to all suggestions.

Some food for thought:

  • the game can be though as a sequencer, where each row and line is one track, just that the track can be jumped at anytime
  • you could also maybe think of this as a grid of small songs, where each line and row is a 2-bar song in 4/4
  • I have made this in a very simple way, with just 8 notes horizontally and vertically, but this is of course not the end goal
7
  • 2
    To start, why not use the set of 7 notes that make up a diatonic scale? (personal choice: F G A Bb C D E). These are known to sound good together in most* cases. Then you hopefully have fewer sour combinations to sort out.
    – Edward
    Commented Nov 25, 2020 at 20:28
  • Yeah choosing a scale will be the essential first step. Also a permanent drone tone or chord could help to establish the tonical center and as a result the mode and feel. Commented Nov 25, 2020 at 23:31
  • The diatonic scale sounds good, just tried it out. I will also try out the drone tone, makes sense. Thanks guys.
    – simon
    Commented Nov 26, 2020 at 20:47
  • "E3, F3, G#3, A3, B3, C4, D#4, E4" Not sure if it has an official name but it forms the melody of the theme music of Pulp Fiction Commented Nov 27, 2020 at 0:14
  • 1
    @chasly-supportsMonica this scale is called "double harmonic major" ;) Commented Nov 27, 2020 at 4:50

2 Answers 2

2

I'm not sure if it's a good SE question as it's very much open ended, but I'll try to give some suggestions:

E3, F3, G#3, A3, B3, C4, D#4, E4

I would advice starting with regular modal scales.

E.g.

C3-D3-E3-F3-G3-A3-B3-C4 (all white keys in the keyboard)

This is called C-ionian scale. For a different sound you can simply rotate the whole sequence, e.g. D-dorian is as simple as

D3-E3-F3-G3-A3-B3-C4-D4

Please also check your octaves. It seems to me that in the third row you intended to have C4 rather than C3, and in 7th column you wanted D#6 rather than D#4.

By combining notes randomly you will still get some dissonant sounds. Is it bad for you? In music we often use dissonant sounds to produce tension, which then resolves in a more consonant sound.

If you however insist on having consonances only, I'd rather advice you to combine notes based on triads. This is simple: you take every second note from a scale, e.g.

E3-G3-B3

You can omit one note, or play them in a different order and they will still sound good, e.g.:

E3-B3-G4

You can space them even more.

E2-G3-B4

There's lot's more to explore, but if you have no music knowledge, I think this is where I should stop. Experiment with this and you will have a good base of consonant sounds.

5
  • 3
    Another idea even farther in this direction would be to use a pentatonic scale. Commented Nov 25, 2020 at 21:24
  • 1
    A note regarding the dorian mode: It will only truly sound dorian if the tonal center is established to be D by some mean. Commented Nov 25, 2020 at 23:43
  • 1
    This answer seems to be missing the main point of the question, namely to create a cartesian grid where each of the notes defines one of the coordinates (a tensor product of scales, I might call it). How would this go with your chord suggestion? Commented Nov 26, 2020 at 8:43
  • 1
    @leftaroundabout You're correct, I don't answer the question. My point was to give the OP several easy to follow patterns that may yield pleasant sounds, without getting too deep in theory. But to truly design the actual solution – I think this goes beyond what I can do in SE. That would be an interesting project for someone more involved in development of the OP's product. Commented Nov 26, 2020 at 16:11
  • Thanks for the suggestions. I'm trying out the triad pattern, and other patterns as well. I actually started out in the beginning with the basic ionian scale, but that sounds pretty boring. Maybe I was being a bit too humble in the opening post, I'm not an absolute beginner in music, I play some guitar and other instruments and know the basic chords and scales and how to construct them, but I have no formal music education.
    – simon
    Commented Nov 26, 2020 at 20:58
1

I can think of a couple of systems but it would require a fair amount of work. Will I get paid if the game is a success? ;-) (joking!!!)

One is to use modulation between keys similar to the arrangement on a button accordion

enter image description here and another is to always preserve the Hamming distance between adjacent chords.

3
  • This is just a hobby sideproject. When I get it in a more decent shape overall, maybe I put it on Github and you're more than welcome to contribute. :) But I don't know if I can publish the address here then (is it forbidden / frowned upon)?
    – simon
    Commented Nov 27, 2020 at 8:02
  • I'll look into the two concepts, thanks for the ideas. But if I understand that correctly with the Hamming distance, wouldn't it shift the key of the melody constantly?
    – simon
    Commented Nov 27, 2020 at 8:03
  • I was joking about getting paid. I'm actually too lazy to take on a new project! It looks really interesting though. Hopefully the ideas will be useful. You could also do something with pivot chords like diminished, placed strategically. The idea of changing key was deliberate because I think staying in the same key and moving one step at a time is going to get boring. Maybe not though it depends somewhat on the game and what the objectives are. Commented Nov 27, 2020 at 11:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.