9. Recreating

II. Learning from songs

Recreating

The quickest way to learn how songs are made is to take apart ones you like. Musicians have always done it by ear, a few seconds at a time; the studio helps with each step: a chord chart copied from the web goes straight onto the chord row, a MIDI file opens as a song, and the notes you've played or drawn give up their key and their chords. A recording of the song itself can go in too, to find its tempo, its key, its chords, and the pitches of its bass and melody.

zig build run-studio -- manual/09-recreating/chart

Charts

A chord chart is a song's chords written out, bar by bar, and the web is full of them. The chord row takes one as text. A double-click on the row starts typing at that bar; or select a bar on the row with a click, and Ctrl+V pastes a chart copied from anywhere. The chart's chords replace those from that bar on, and the song runs on to hold them.

The chart `| Am | F | C G | Dm / E7 / |` on the chord row: a chord a bar for two bars, C and G sharing the third, and Dm and E7 two beats each. The E7 is outlined: its G# isn't in A minor.: the chords

0.0 / 9.6 s

peak -13.6 dBFS

Fig. 9.1 The chart | Am | F | C G | Dm / E7 / | on the chord row: a chord a bar for two bars, C and G sharing the third, and Dm and E7 two beats each. The E7 is outlined: its G# isn't in A minor.

openzig build run-studio -- manual/09-recreating/chart

renderzig build run-studio -- render manual/09-recreating/chart chart.wav

chart/song.json
{
  "tempo": 100,
  "end": "5",
  "key": ["1 A minor"],
  "chords": ["1 Am", "2 F", "3 C", "3.3 G", "4 Dm", "4.3 E7"],
  "devices": [
    { "name": "synth", "type": "synth", "state": { "parts": [
      { "patch": "A45", "level": -2, "reverb_send": 15 },
      { "patch": "A52", "level": -6 }
    ] } }
  ],
  "tracks": [
    { "name": "piano", "device": "synth", "channel": 1, "keys": "chord", "role": "chords", "clips": [{ "at": "1", "length": "4.0.0", "notes": "piano" }] },
    { "name": "bass", "device": "synth", "channel": 2, "keys": "pent", "role": "bass", "clips": [{ "at": "1", "length": "4.0.0", "notes": "bass" }] }
  ],
  "notes": {
    "piano": { "length": "4.0.0", "follow": { "pattern": "halves", "low": "F3" } },
    "bass": { "length": "4.0.0", "follow": { "pattern": "roots", "low": "E1" } }
  }
}

A chart reads the way guitarists write them:

  • Am F C G is a chord a bar.
  • | Am | F | C G | puts bar lines between bars, and chords in one bar share it evenly: C and G take two beats each.
  • / holds the chord before for another beat, as a chart's slashes do, so | Dm / E7 / | is Dm for two beats and E7 for two.
  • % plays the bar before again, and N.C. is no chord.
  • Lines that aren't all chords are skipped, so a page of chords over lyrics pastes as its chords. A chart without bar lines can't say how long its chords last, so they go a bar each, and a callout beside the pointer says so.

A chord's symbol is its root and its kind: Am7, Bbmaj7, F#m7b5, Dsus4, C/E for C with E in the bass. A root needs its capital, so a word like a in the lyrics doesn't read as a chord.

Chords and keys from notes

When you've worked out a part by ear, or drawn it, the studio can name what it plays:

  • The key: the key list's guess, from chapter 3, finds the likeliest key from the notes, with the runner-up beside it, usually the relative major or minor.
  • The chords: find chords, in chords ▾, names a chord for each bar, or each half bar where the notes change halfway, from the clips selected, or from every track but the drums. With cycle on, it looks between the locators; otherwise over the whole song. Each pitch weighs the time its notes sound, and the lowest note names the bass.

What find chords names is a draft: chords the row shows dimmer than the song's own, which the song doesn't hold yet. A click on a drafted chord takes it; Enter takes them all, as one edit; Esc drops them. Take a draft as a first guess. It names what the notes hold, which isn't always what a musician would call the chord: a melody alone often leaves the chord's third or fifth out.

MIDI files

Many songs can be found as Standard MIDI Files, .mid, the format sequencers have traded since the 1980s, with every note of every part. Drop one on the window and it opens as a new song, or make one from the command line:

studio import song.mid my-song
  • Each MIDI track's notes on each channel become a track of their own, their timing rescaled to the studio's 960 ticks a beat.
  • Channel 10, General MIDI's drums, goes to a drum machine, with its drum keys moved onto the 808's voices.
  • The other channels go to synth parts, four to a synth, each on the factory sound and the role its General MIDI program suggests: basses on the basses, pianos on the electric piano, strings on the strings, and pads on the pads.
  • The tempo map becomes the song's tempo, key signatures its key, markers its sections, and track names the tracks' names. A time signature other than 4/4 reads as 4/4, since every song in the studio is in 4/4.
  • The chords are found from the notes as a draft, ready to take.

A callout beside the pointer says what didn't fit: the parts left out, past the tracks and devices a song holds, and a meter read as 4/4. Then mute tracks, solo them, open them in Key Edit, and look: the bass's pattern, the chords' voicing, the melody's steps and leaps are all there to read.

A recording

The studio can also take the recording itself as a reference, a track that plays beside the song so you can recreate it against the original. A WAV dropped with Shift goes on a track of its own marked ref, on a sampler of its own. A reference plays in the window but not in an export or a render, and the coach and the ghosts leave it out. Its tempo isn't fitted to the song's; the song's tempo follows it.

The drop starts an analysis, and a card under the tempo proposes what it found, as ref 122.0 BPM · A minor · bar 1 at 0.43 s, with its keys. Enter takes it: the song's tempo and key, the reference trimmed so its bar 1 lands on the song's, and its chords as a draft on the chord row. It finds:

What How
The beat How sharply the sound changes every 10 ms, the tempo that pattern repeats at, near 120 BPM if it can, and the beats along it
Bar 1 The beat whose bars put the most low onsets on their first beat
The key Each pitch class's energy summed over the song, matched against the key profiles of chapter 3
The chords Each pitch class's energy a beat at a time, matched against each chord's notes, with a cost for every change
The pitches Each semitone's energy every 32nd note

On a clean loop it's right; on a full mix its chords are often wrong, which is why they come as a draft, to take bar by bar. A recording played without a click drifts, so Shift+Enter writes a tempo point a bar from the beats instead of one tempo.

Then the tools to recreate it:

  • The pitches in Key Edit: the reference's pitches, in show ▾ in Key Edit's header, draws the reference's semitones behind the roll, faint where quiet and bright where loud, as the program Transcribe! draws a recording over a keyboard. A bass line or a melody shows as bright rows to draw over.
  • Comparing: \ switches between the reference alone, the song without it, and both, so you hear one against the other, and match, in the reference track's menu, sets its level to the song's.
  • Slower: below 100% speed, from chapter 10, the reference plays slower and lower, as tape did. At 50% it plays an octave down, the old trick for hearing a fast line.
  • A melody from a voice: to notes, in the clip's menu from its name in Key Edit's header, on a clip that plays a recording of one voice, a phrase hummed, whistled, or sung, turns it into notes on a track of their own, in the song's key, and on the grid.

Ghosts help too: ghosts, in show ▾ in Key Edit's header, draws the other tracks' notes hollow behind the clip's, so a part you're working out sits against the rest.

Try it in the window

  • Copy the chart | Am | F | C G | Dm / E7 / |, click the first bar of the chord row in a new song, and paste it with Ctrl+V.
  • Double-click the chord row and type Am F C G, then a chart with lyrics between its lines.
  • Draw a few bars of chords as notes in Key Edit, then choose find chords from chords ▾ and take the draft one chord at a time.
  • Find a MIDI file of a song you like, drop it on the window, and take the chords it offers. Mute everything but the bass and listen.
  • In chart, click the E7 and try Em in its place: the cadence loses its pull.

Next: chapter 10, practice, learning to play a part.