Music

The mud client can play music to a player. Music can be configured so that for instance a new song is only played when a player has moved a certain distance.

Music is specified in the musics element of the config file. All songs are referenced in the sounds list. One of the modes for playing songs is that each song is played in sequence over and over (inorder). Another involves a song being selected at random and played at random intervals of time (randomtime). A third involves playing a random song only after a player has moved a certain distance (distance). These modes can be specified in the musics 'playmode' attribute.

This following example of musics has 6 songs played where there is a minimum wait time of 2 minutes before playing the song. On top of this wait time is a random time between 0 and 60 seconds. Also added to the wait time a player must walk 20 mud units before the player will hear a new random song. To make the playing of songs occur less and less often as the game progress an extra interval can be added every time a song is played ('addtimeperinterval').

<MUSICS playmode="distance" fixedtime="120" randomtime="60" distance="20" addtimeperinterval="20">

<MUSIC name="rudeawakening" />
<MUSIC name="kingdomofdreams" />
<MUSIC name="darkthumpwave" />
<MUSIC name="drughonkey" />
<MUSIC name="gatesofdawn" />
<MUSIC name="godsmake" />

</MUSICS>

These attributes help in reducing the number of times songs are played.

Making music
Songs should be mono mp3s. Also making them fade in and out so that they dont start or end too abruptly. Audacity is a good program for making mono mp3s. It has mp3 encoding that allows the bit rate be reduced for much smaller mp3's though with lower quality sound.