Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Instruments and songs

Crash makes its music itself, with a synthesizer, so a game’s music is a small file of notes rather than a big recording. The IDE has an editor for the instruments and one for the songs they play.

Instruments

An instrument bank (.cbi, New instrument bank… in the file list) holds your game’s instruments. The Bank list shows them: New makes one, Built-in starts from one of Crash’s own, and Duplicate and Delete do what they say.

An instrument is built from:

  • LAYERS: the sounds it’s made of. A layer can be a wave, a table of waves (+ table…), or a recording of your own (+ WAV…).
  • ENVELOPE: how the sound starts, holds and fades.
  • PITCH ENVELOPE: how its pitch moves as it plays.
  • FILTER: how bright or dull it is.
  • OUTPUT: how loud it is, and where it sits between the speakers.

Tick PERCUSSION for a drum, which sounds the same whatever note it’s played on. Play a note to hear what you’ve made: each change is heard on the next note.

The File menu exports one instrument, imports another bank, or puts everything back to Crash’s built-ins.

Songs

A song file (.cbm, New song…) holds songs, each in tracks with an instrument each. There are three ways to see a song:

  • Piano roll: notes as bars, high notes higher, long notes longer. The keys 1 to 7 pick how long a new note is, from a whole note down to a sixty-fourth.
  • Drums: a row for each drum, a box for each beat.
  • MML: the song as text, the way a song in your code is written.

Space plays from the cursor. Pattern plays just the pattern you’re in, over and over, and Loop loops the whole song.

A song is made of patterns, short pieces like a verse and a chorus. The Arrangement puts them in order, and on top of each other.

+ Track adds an instrument’s track, and + Drum row a drum.

Crash-tan’s Tip: Copy code copies the line that plays the song in a game (PLAYMUSIC and the song’s name), so you can paste it straight in.

Help with the music

The Tools menu has helpers for anyone who isn’t sure what to play:

  • Chord helper: chords that fit the song’s key, to click into the roll.
  • Chord builder… and Arpeggiator…, for chords and patterns made of them.
  • Melody generator… and Drum generator…, which make one for you to start from. The melody generator also has Fix my melody, which listens to yours, says what might sound wrong (a note outside the key, a weak ending), and lets you hear the fix before you take it.

Playing it in

With a MIDI keyboard plugged in, MIDI setup connects it, and Play along records what you play into the song, with how hard you hit each key if you like. Pads route a drum pad to its drum.

In and out

The File menu imports a MIDI file (as a new song, or into the pattern you’re on) and another .cbm, and exports a song as a .cbm, a WAV or an MP3.