swt loves writing music

Here are some pieces of music that I wrote.
1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
21 22 23 24 25 26 27 28 29 30
31 32 33 34 35 36 37 38 39 40
41 42 43 44 45 46 47 48 49 50
51 52 53 54 55 56 57 58 59 60
61 62 63 64 65 66 67 68 69 70
71 72 73 74 75 76 77 78 79 80
81 82 83 84 85 86 87 88 89 90
91 92 93 94 95 96 97 98 99
101 102 103 104 105 106 107 108 109 110
111 112 113 114 115 116 117 118 119 120
121 122 123 124 125 126 127 128 129 130
131 132 133 134 135 136 137 138 139 140
-1 -2 -3 -4 -5

Here are .xm sources for the music files above. These are modules (tracked music files), so you will want to get a player (or winamp plugin) that can handle .xm files, if you don't have such a thing already.

1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
21 22 23 24 25 26 27 28 29 30
31 32 33 34 35 36 37 38 39 40
41 42 43 44 45 46 47 48 49 50
51 52 53 54 55 56 57 58 59 60
61 62 63 64 65 66 67 68 69 70
71 72 73 74 75 76 77 78 79 80
81 82 83 84 85 86 87 88 89 90
91 92 93 94 95 96 97 98 99
101 102 103 104 105 106 107 108 109 110
111 112 113 114 115 116 117 118 119 120
121 122 123 124 125 126 127 128 129 130
131 132 133 134 135 136 137 138 139 140

Some pieces of music that have been computer-generated. Some Python source code is available, if you want to see how it's done. I was surprised by how few lines of code were necessary.

First generator - This algorithm 'walks' through the chromatic scale. Each track is 'centered' on a note seven half-steps above the last, wrapping around at the end of the octave, and eventually hitting each note. Over time tracks may change instruments or transpose an octave; they can also introduce new notes around their center tone. Occasionally a rhythic silence-pattern is used to blank out all tracks. The algorithm shifts from a collection of 'slow' rhythmic patterns to 'fast', and then back to 'slow'.
  • random1.xm
  • random2.xm
  • random3.xm

    Second generator - This is (very loosely) based on music of the amadinda. The amadinda is a wooden xylophone played in parts of Africa, including Uganda. The amadinda is played by musicians at opposite sides of the instrument, who strike the keys out of phase - one player strikes the keys in the 'off beats' between the other's notes. (This is something which takes practice for most people. Ask a friend to clap their hands, and try clapping in the middle of the off beats. Many people find it surprisingly hard at first) A third player often joins and emphasizes certain notes in the main pentatonic melody by playing them an octave higher. I had the great pleasure to study amadinda music while at the University of Wisconsin--Madison, which also has an Indonesian Music Ensemble.
  • PentaA.xm
  • PentaB.xm
  • PentaC.xm


    Back to my page