We are proud to publish the following article by Blake Troise (ThinkSpace, ProtoDome) as part of our contributor articles series. Feel free to leave comments, and do let us know if you would like to send us articles to share with the wider community!
Contributor: Blake Troise
A programmable sound generator (PSG) is an integrated circuit (IC) with the ability to generate sound by synthesizing basic waveforms.1 PSGs are often called sound chips, however not all sound chips are PSGs. PSGs were designed to be instructed by software commands and would usually be housed alongside a microprocessor as part of a computer system. The general benefit of the sound chip was that audio processing could be delegated to a dedicated system, freeing processing cycles for other functions, or simply, as Radio-Electronics magazine 1981 explains, “[controlling] music or sound effects from software, without overtaxing the computer”. One of the main reasons for the popularity of PSGs was that microcontrollers capable of generating pitches had become cheap enough to manufacture at the beginning of the 1980s.23 This became a commercially viable option for computational sound generation as part as an affordable home system. As such, PSGs were commonly utilised in the video game systems of the 1980s to mid 1990s, for example the Nintendo Entertainment System (Ricoh 2A03/2A07)4, Atari 2600 (Atari TIA)5, Sega Master System (Texas Instruments SN76489A, Yamaha YM-2413)6 and numerous others. The chips were also included in early home computers7, especially those with gaming capabilities; the most popular example being the Commodore 64’s PSG, the SID chip8. Perhaps one of the main reasons for the ubiquity of PSGs in video game applications is the medium’s requirement for a multimedia experience9, with the desire for sound effects and music in electronic games predating software games10.
Due to the prevalence of inexpensive computers, the eighties saw the emergence of a synergy of both programmer and composer practices due to both software accessibility and thus increased development in entertainment software111213. Many of these musicians, such as Hirokazu ‘Hip’ Tanaka, treated the computer (in Tanaka’s case, the Nintendo Entertainment System (NES)) as a means of expressing ‘serious’ music and approached their composition as such14. Each PSG however, had a set of numerous musical limitations the composer would have to adhere to.15 One of the most compositionally influential of these restrictions (and defining characteristic of computer music of the period) is the PSGs limited polyphony.
The amount of voices a PSG could provide varied between the different chips. The NES’ Ricoh 2A03/2A07, had five separate ‘channels’ (individual functions for generating a single waveform16); two pulse wave channels, one triangle channel, one pseudo-random noise generator and a rarely used Delta Modulation Channel (DMC) for playing Differential Pulse-Code Modulation (DPCM) samples1718 (Figure 1). The Commodore 64 had four channels with a very similar set of waveforms to the Nintendo Entertainment System, however, unlike the NES, these were not restricted to a single wave function.19 Other chips such as the General Instruments AY 3-8910 (found in the MSX computer2021 and Sinclair ZX spectrum 12822, to name two popular examples) included very similar waveforms with a very similar amount of channels; in the AY 3-8910’s case, three square wave channels and a pseudo-random noise generator.23 The limited number of channels each PSG provided posed a significant compositional challenge as to how best to maximise the musical content with only a few voices.
Figure 1. Oscilloscope examples of the basic common waveforms various PSG provided. Top Left: Saw Wave. Top Right: Pulse/Square Wave. Bottom Left: Triangle Wave. Bottom Right: Noise.
Writing music with limited polyphony is not unique to the sound chip; for hundreds of years composers have written for three, two and even single voices.24 Pieces such as Adagio in Bb (for two clarinets and three bassett horns) by Mozart25, Jägerlied by Schubert (for two horns or voices)26, most of Bach’s infamous chorales27 and even solo piano works for a single performer, make use of a small collection of monophonic voices (or fingers!) to create music. Even commercial synthesisers during the seventies and eighties would occasionally be dedicated to producing a single, monophonic voice2829 and often, when polyphony was available, was still limited to a maximum of only eight voices.303132 What separates these composers works (and other electronic hardware) from PSG composition is the idea of necessity. Whilst traditionally the basic form of the woodwind ensemble is the quintet33, this is usually a creative choice and can be “expanded and contracted to meet the needs of the composer”. The piano composer in desperate need of further polyphony can simply add another performer to allow access a further set of ten (or more) notes. No such luxury was (in most cases34) available to the sound chip composer.
Perhaps the simplest (and most common) approach seen in PSG composition was to consider each channel as an individual instrument, a similar method to the aforementioned ensemble writing.35 The iconic Super Mario Bros theme36 by K. Kondo37 is a good example of this process (figure 2). All three pitched channels of the Nintendo Entertainment System’s PSG move together as a three part harmony for the first thematic section. In the second section of the piece, the triangle channel diverges from rhythmic unison and plays a very simple arpeggiating bassline. This approach can be seen in video game soundtracks such as Mega Man 2 (1988) by T. Tateishi and M. Matsumae (programmed by Yoshihiro Sakaguchi)38, Legacy of the Wizard (1989) by Y. Koshiro39 and Castlevania (1986) by S. Terashima and K. Yamashita (programmed by H. Maezawa)40 (Figure 3). In fact, these soundtracks work so much like a traditional three part ensemble (with a fourth percussion instrument), they have a plethora of YouTube a capella covers (of varying successes) utilizing the original writing for each channel.4142434445
First thematic section.
Second thematic section.
Figure 2. Manuscript representation of the Super Mario Bros theme.
Figure 3. Manuscript representation of the Legacy of the Wizard ‘intro’ theme.
The ubiquity of this practice has resulted in the emergence of a common technique found in Nintendo Entertainment System music- dubbed the Famichord by chip musician Linus ‘LFT’ Akesson46 (Figure 4). The Famichord is essentially the removal of the dominant in a four note major or minor seventh chord (Maj7omit5 or m7omit5) to fit the NES’ three channel limit. Whilst not unusual in a wider musical practice, the fact many composers independently utilised this technique makes it distinctive in PSG compositional procedure. Examples can be found in the NES soundtracks to Mega Man II (1988)47, Duck Tales (1989)48, Super Mario Bros (1985)49 and various others (Figure 5).
Figure 4. Manuscript example of the C Major 7th Famichord.
Figure 5. D Minor seventh (b. 1) and C major seventh (b.3) Famichord in Super Mario Bros. ‘Invincibility’ theme.
The reason the ‘ensemble’ method of PSG writing was so popular was possibly because it was a very simple way of interfacing with the chip. Examining the documentation for the various sound chips, the way in which the microcontrollers expected to be instructed was with a simple ‘channel, pitch, duration’ format50515253, the way in which the MIDI (musical instrument digital interface) standard operates today.5455 A melody is easily built from instructions in this way and can be (and was often) very simply converted from score to code.565758 This could be done by either the composer himself, or given to a programmer to transcribe, which was common practice.596061 The downside to this technique is that the music is limited to as many instruments as there are PSG channels, resulting in a textually ‘thin’ soundscape. To fill the space, the prevalent mentality of trying to recreate externally composed music on the PSG had to shift to writing music for the PSG; treating the device as a unique, independent sonic medium.
The first technique to artificially expand the sonic environment is channel sharing, or splitting parts over a single voice.62 This technique is especially effective when two instruments can be distinguished from one another utilising the unique functions of the PSG channel. Often, each channel had an alterable amplitude for ADSR (attack, decay, sustain and release) envelope shaping63646566, and pulse waves frequently had the ability to alter their duty cycle (the percentage between the high and low of the wave cycle), both techniques for textural changes and emulation of instrumental transients.67 Even more basically, a change in pitch will dictate a sequence’s sonic responsibility (Figure 6). Figure 6 is a piece written by the author for a single beeper demonstrating the channel sharing procedure in its extreme. The bass line is separated from the melody mainly by pitch, however has the impression of being an individual instrument. Percussion is discriminated from other instrumentation by rapidly altering the channel’s pitch semi-randomly, with a negative correlation. The final element in the expansion of the soundscape is structural; by frequently altering the instrumental character in a rhythmic fashion, the listener has the impression that multiple voices are present, all achieved on a single voice. This false polyphony significantly alters the compositional process; the chip musician looks for ‘gaps’ in the melody in which to fill out the composition.
Figure 6. Scored extract from original composition for an ATMega328 microcontroller, using only a single voice. Percussion is created by rapidly changing pitch.
PSGs often had multiple channels however, and more waveforms than a single pulse/square wave. The Commodore 64 was particularly flexible as each channel could alter its waveform, allowing for a more freedom when composing for the chip.68 One notable example of this technique is T. Follin’s work on the NES game Silver Surfer (1990), regarded as one of the best PSG soundtracks of the era.697071 Follin utilises the triangle channel as both bass and drums whilst frequently switching melodic ‘licks’ between available channels.7273 Lead instrumentation is given to the first two pulse channels; handled by varying ADSR envelopes and altering pulse width, however, when a pulse channel is unused, it doubles up with the bass to provide a thicker texture. Each channel is always doing something helping to imply a greater polyphony than simply four voices.
The most common use of the channel sharing technique in other soundtrack writing was the utilisation of the pseudo-noise channel included in various PSGs7475767778, typically dedicated to accompanying the melodic or pitched elements with percussion, mimicking the characteristics of an acoustic drum kit (Figure 7).798081 This technique is popular as a repeated hi-hat figure is heard over a snare, kick or other percussive element, even though, when shared on a single channel, it is not present. Again, this fills the soundscape with a ‘false’ polyphony using listener expectation to ‘fill in the gaps’.
Figure 7. Typical PSG noise channel writing for a drum kit pattern. Kick, snare and hi-hat are all represented on a single channel. Vertical placement is representative of speed of noise randomization, which is perceived as a change in pitch.
Perhaps the most idiosyncratic and recognized feature of PSG writing is the super-fast arpeggio 86.82838485 Essentially, this is the same technique as instrumental channel sharing, however has the unique purpose of providing a ‘harmonic compression’; reducing all explicitly stated harmonic content to the fewest voices possible, liberating channels for other purposes. Both the Famichord and the super-fast arpeggio are solutions to the same problem, however the Famichord can only accurately represent a chord of four notes or less using all available channels whereas an arpeggio can cover any number of extensions by rapidly iterating through the chord on a single channel (Figure 8). This technique’s conception is sometimes credited to M. Galway with the score to Kong Strikes Back (1985) for the Commodore 64868788 and often appears in soundtracks throughout the computer’s lifespan.89
Figure 8. A variety of super-fast arpeggio forms, all based on a C Major 9th chord.
The main drawback to the super-fast arpeggio, and many of the channel sharing techniques, is that they are both more difficult to program, demand more processing power and use more memory than simple three/four part writing.90 The Famichord may represent less extended harmony, with a less elegant approach to wave function economy, however it requires only three channel instructions to the sound chip to create a chord. The arpeggiation technique requires multiple instructions to a single channel, in a very small space of time (Figure 9). Often, the read only memory (ROM) on software distribution media was very small91 and developers would limit their music data due to memory constraints.92 Gratuitous use of musical content would quickly fill the memory limits, encroaching on space needed for the rest of the software.
A l64 o5 @00 c e d g e b g >c
e g d e c d c e d g e b g >c <g b e
g d e c d c e d g e b g >c <g b e g
d e c d c e d g e b g >c <g b e g d
e c d
Super-Fast Arpeggio, C Major Ninth, 1 bar
A l1 o5 @00 b
B l1 o5 @00 e
C l1 o5 c
Famichord C Major Seventh, 1 bar
Figure 9. Comparison of a single bar Famichord command compared to a single bar arpeggio command in ppMCK MML.
It seems that, whilst PSG music was dramatically shaped by polyphonic restrictions, perhaps the main pervasive limiting factor is ultimately the available memory the composer has to work with. As with the Famichord versus the super-fast arpeggio scenario, the decision seems to be less founded in compositional choice but in a constant creative balance between musicality and pragmatics. Perhaps the main difference between the Super Mario Brothers and Silver Surfer soundtracks was not how well the latter utilised channel sharing, or the simplicity of the former’s harmonic writing, but how much memory was delegated to each respective composition.
- Paturzo, B. A. (1981) The Programmable Sound Generator. Radio-Electronics. 52, pp. 56-51.
- Akesson, L. (2011) Elements of chip music, [Online]. Available from: http://www.linusakesson.net/music/elements/index.php [May 2014].
- Ballas, J. and Houston, J. (1984). Evaluation of a Sound Generator Chip: The AY 3-8910. Behaviour Research Methods, Instruments & Computers. 16 (3), pp. 282-284.
- Korth, M. (2004) Everynes- Nocash NES Specs, [Online] Available from: http://nocash.emubase.de/everynes.htm#audioprocessingunitapu [May 2014]
- Korth, M. (2004) Atari 2600 Specifications, [Online]. Available from: http://nocash.emubase.de/2k6specs.htm [May 2014]
- Sega Retro (2014) Sega Master System, [Online]. Available from: http://segaretro.org/Sega_Master_System [May 2014]
- Old-Computers.com (2014) Museum, [Online]. Available from: http://www.old-computers.com/museum/default.asp [May 2014]
- Korth, M. (2004) Page Zero, [Online]. Available from: http://nocash.emubase.de/pagezero.htm [May 2014]
- Prebble, L. (2014, April 8). Video Game Audio: Why the Sound of Battle Always Lingers. The Observer, p. 33.
- Weske, J. (2000) Digital Sound and Music in Computer Games, [Online]. Available from: http://3daudio.info/gamesound/history.html [May 2014]
- Lloyd, D., Oji, L. and Prabhu, V. (2008) Composer Interview: David Wise, [Online]. Available from: http://ocremix.org/info/Composer_Interview:_David_Wise [May 2014]
- Baldwin, N. (2009) Duty Cycle Generator, [Online]. Available from: http://dutycyclegenerator.com/ [May 2014]
- Good-Evil.net (2009) Interview: Alberto Gonzalez (Part 1), [Online]. Available from: http://good-evil.net/features/interview-with-alberto-gonzalez-part-1 [May 2014]
- Brandon, A. (2002) Shooting from the Hip: An Interview with Hip Tanaka, [Online]. Available from: http://www.gamasutra.com/view/feature/2947/shooting_from_the_hip_an_.php [May 2014]
- NESDEV. (2009) Music engine limitations – tempos, [Online]. Available from: http://forums.nesdev.com/viewtopic.php?t=5517 [May 2014]
- NESDEV Wiki. (2013) APU, [Online]. Available from: http://wiki.nesdev.com/w/index.php/APU [May 2014]
- Old-Computers.com (2014) MSX, [Online]. Available from: http://www.old-computers.com/museum/computer.asp?c=90&st=1 [May 2014]
- Hanso (2013) MSX Hardware, [Online]. Available from: http://msx.hansotten.com/index.php?page=msxhardware [May 2014]
- Korth, M. (2004) ZXDOCS, [Online]. Available from: http://nocash.emubase.de/zxdocs.htm [May 2014]
- Fuller-Maitland, J. A. (1915). Ensemble. The Musical Quarterly. 1 (1), pp. 83-92.
- Mozart, W. A (1883). Wolfgang Amadeus Mozarts Werke, Serie X: Märsche und kleinere Stücke für Orchester. Leipzig: Breitkopf & Härtel. [Sheet Music]
- Schubert, F. (1884). Franz Schubert’s Werke, Serie XIX. Kleine Gesängwerke, No.33. Leipzig: Breitkopf & Härtel. [Sheet Music]
- JSBChorales. (2011). Chorale Sets. [Online]. Available from: http://www.jsbchorales.net/sets.shtml [May 2014]
- Planet of Tunes. (1999). Polyphony and Voices. [Online]. Available from: http://www.planetoftunes.com/synthesis/polophony-and-voices.html#.U3acy3aWSCk [May 2014]
- Casio. (1980). Casio VL-Tone Operation Manual. [Online]. Available from: http://www.wass.net/othermanuals/Casio%20VL-1.pdf [May 2014]
- Yamaha. (1986) DX21 Digital Programmable Algorithm Synthesizer, Owner’s Manual. [Online]. Available from: http://www2.yamaha.co.jp/manual/pdf/emi/english/synth/DX21E1.pdf [May 2014]
- Yamaha. (1986) PSS-680 Music Station, Operating Manual. [Online]. Available from: http://www2.yamaha.co.jp/manual/pdf/emi/english/synth/DX21E1.pdf [May 2014]
- Roland. (1981) Roland JP-8 Owner’s Manual. [Online]. Available from: http://www.synthdiy.com/files/2008/RolandJupiter8-OwnersManual.pdf [May 2014]
- Barrows J. R. (1947). Ensemble Music for Woodwinds and Brasses. Notes. 4 (3), pp. 367-368.
- Lakawicz, S. (2011) Fidelity Concerns: The Lost Sound Expansion Chips of the NES. [Online]. Available from: http://classicalgaming.wordpress.com/2011/02/27/fidelity-concerns-the-lost-sound-expansion-chips-of-the-nes/ [May 2014]
- Deane, D. (2013) Nine Legitimately Awesome Video Game Soundtracks, Rolling Stone Magazine. [Online]. Available from: http://www.rollingstone.com/culture/news/nine-legitimately-awesome-video-game-soundtracks-20131004 [May 2014]
- Kondo, K. (1985) Super Mario Bros, Nintendo Entertainment System Game: NES, Nintendo. NES soundtrack.
- Tateishi, T., Matsumae M. and Sakaguchi, Y. (1988) Mega Man II, Nintendo Entertainment System Game: NES, Capcom. NES soundtrack.
- Koshiro, Y. (1989) Legacy of the Wizard, Nintendo Entertainment System Game: NES, Nihon Falcom. NES soundtrack.
- Terashima, S., Yamashita K. and Maezawa H. (1986) Castlevania, Nintendo Entertainment System Game: NES, Konami. NES soundtrack.
- Smooth McGroove (2013) Castlevania – Vampire Killer Acapella. [Online]. Available from: http://www.youtube.com/watch?v=ih20Tx-fNJs [May 2014]
- Toyger (2011) Castlevania – Super Mario A Cappella Live. [Online]. Available from: http://www.youtube.com/watch?v=LoBvPh04jC0 [May 2014]
- noobnocontrole (2012) Castlevania – Super Mario Bros. A Cappella. [Online]. Available from: http://www.youtube.com/watch?v=-Q1YINY7d88 [May 2014]
- aznkalun (2005) Castlevania – Nintendo A Cappella. [Online]. Available from: http://www.youtube.com/watch?v=5nPbwnPer4Q [May 2014]
- Smooth McGroove (2013) Mega Man 2 – Dr. Wily Stage Acapella. [Online]. Available from: http://www.youtube.com/watch?v=iW_Ct49H1ng [May 2014]
- Capcom. (1989) DuckTales, Nintendo Entertainment System Game: NES.
- Yamaha. (1996) YM2413 OPLL (FM OPERATOR TYPLE-LL). [Online]. Available from: http://msx.hansotten.com/uploads/msxdocs/chipsym2413.pdf [May 2014]
- General Instruments. (no date) AY-3-8910, AY-38912, AY-3-8913. [Online] Available from: http://msx.hansotten.com/uploads/msxdocs/chipsay38910.pdf [May 2014]
- Yamaha. (no date) Y8950 Application Manual (MSX-Audio). [Online]. Available from: http://msx.hansotten.com/uploads/msxdocs/chipsy8950am.pdf [May 2014]
- Arduino. (2014) MIDI Note Player. [Online]. Available from: http://arduino.cc/en/Tutorial/Midi?from=Tutorial.MIDI [May 2014]
- Hinton Instruments. (2014) MIDI Protocol Guide. [Online]. Available from: http://hinton-instruments.co.uk/reference/midi/protocol/index.htm [May 2014]
- Kaufman, J. (2002) MCKC: MML > MCK Converter V0.14, [Online] Available: http://www.geocities.co.jp/Playtown-Denei/9628/mck/mckc-e.txt [March 2014]
- Jace, Norrin_Radd, bucky, dennis, raubhimself and ella guro (2011) Top 100 NES Tracks: as voted by The Shizz. Available from: http://bestnestracks.captaintortilla.com/results/index.php?back=115 [May 2014]
- Elston, B. (2010) Game Music of the Day: Silver Surfer. Available from: http://www.gamesradar.com/game-music-of-the-day-silver-surfer/ [May 2014]
- Pheduik (2007) Silver Surfer, GameFAQs Reviews. Available from: http://www.gamefaqs.com/nes/587618-silver-surfer/reviews/review-116211 [May 2014]
- Follin, G. and Follin, T. (1990) Silver Surfer, Nintendo Entertainment System Game: NES, Software Creation. NES soundtrack.
- BlueberryBurrito (2011) NES Music Compilation [Online]. Available from: http://www.youtube.com/watch?v=fLg7f9IGKrg [May 2014]
- sunteam (2013) 2 hours 45 minutes of ZX Spectrum 128K game music [Online]. Available from: http://www.youtube.com/watch?v=hLrNQ5m8MS8 [May 2014]
- sunteam (2013) 6 1/2 hours of Commodore 64 SID Music [Online]. Available from: http://www.youtube.com/watch?v=UD7Ti5-X5Ww [May 2014]
- aanaaanaaanaaana (2013) The Guide to Chiptuning. Available from: http://aanaaanaaanaaana.net/tutorials-archive/The_Guide_to_Chiptuning.html [May 2014]
- Clark, J. (2013) klystrack tutorial – arpeggios. Available from: http://n00bstar.blogspot.co.uk/p/about.html [May 2014]
- Fodin, S. (no date) How to Make Chipmusic. Available from: http://www.ehow.com/how_7998995_make-chip-music.html [May 2014]
- CW 461 (no date) A Brief History of Chiptune. Available from: http://www.cw461.com/style/chiptune [May 2014]
- Van Der Heide, M. (2014) Kong Strikes Back. Available from: http://www.worldofspectrum.org/infoseekid.cgi?id=0002742 [May 2014]
- Nectarine: Demoscene Radio (2010) Kong Strikes Back. Available from: https://www.scenemusic.net/demovibes/song/21160/ [May 2014]
- Phelps, P. (no date) A Modern Implementation of Chiptune Synthesis. Available from: http://woolyss.com/chipmusic/chipmusic-discovery/PhillPhelps-ChiptuneSynth.pdf [May 2014]
- NESDEV Wiki. (2013) MMC1, [Online]. Available from: http://wiki.nesdev.com/w/index.php/MMC1 [May 2014]
- Covell, C. (2000) NES Music Ripping Guide, [Online] Available: http://web.textfiles.com/games/nesaudioripping.txt [March 2014]