15 Music

This chapter covers

  • Music project structure
  • Arpeggios
  • Instruments
  • Generating music data for our game
  • Using music in our game

We have used sound effects to bring our game to life with zap and explosion sounds, but to bring more atmosphere to any game, it is also good to add some music. Music can be played on the title screen or during the game and can change depending on the location or scenario.

I do not purport to have the ability to create original-sounding music, and I usually rely on others to supply such things. But what we will focus on in this chapter is how to use the FamiStudio tool to create or adapt music. We will work with one of the included music examples included with FamiStudio.

We will use the file called Tetris (Tutorial Song).fms during this chapter. It is located in the Demo Songs folder of your FamiStudio’s installation directory.

15.1 Music project structure

A FamiStudio project consists of four main components (see figure 15.1):

  • A list of songs
  • A list of instruments (used to define different sounding notes)
  • A list of delta pulse code modulation (DPCM; 1-bit digital) samples
  • A list of arpeggios (multichord notes)
Figure 15.1 Tetris music project structure

15.1.1 Sequencer

15.1.2 Piano roll

15.2 Arpeggios

15.3 Instruments

15.3.1 Envelopes

15.3.2 DPCM samples

15.4 Generating music data

15.5 Using music in our game

Summary

sitemap