16.5 Questions for the reader

16.5 Questions for the reader#

Exercise 107

Event representations. Using “note” events for each pitch and “shift” events that advance time by a number of beats, encode the following: a C major chord (C3, E3, G3) at beat \(0\), the melody note E4 at beat \(0\), the melody note G4 at beat \(1\), and the melody note C5 at beat \(3\). List the notes at each time in order of increasing pitch.

Reveal solution

C3, E3, G3, E4, (shift 1 beat), G4, (shift 2 beats), C5

Exercise 108

Codec language models. A learned codec encodes each second of \(44.1\) kHz mono audio as \(100\) tokens. Each token is one of an alphabet of \(1024\) possible values.

  1. How many tokens represent a \(3\)-minute recording?

  2. By what factor is the sequence of tokens shorter than the sequence of samples?

  3. What is the information rate of the tokens, in bits per second?

  4. Relative to uncompressed \(16\)-bit mono audio at \(44.1\) kHz, what is the codec’s compression factor?

Reveal solution
  1. \(18{,}000\)

  2. \(441\times\)

  3. \(1000\) bits per second

  4. \(705.6\times\)