Skip to content

Instantly share code, notes, and snippets.

@sasq64
Last active July 3, 2021 14:54
Show Gist options
  • Save sasq64/4214697b79cd0789c64a4f6d9cffe360 to your computer and use it in GitHub Desktop.
Save sasq64/4214697b79cd0789c64a4f6d9cffe360 to your computer and use it in GitHub Desktop.
Anlog playback control of digital media

Anlog playback control of digital media

This is the basic idea;

  • Use a standard D2A algorithm (check out the winmodem source in the linux kernel for instance) to record a sequence of timestamps onto a cassette tape, Compact Disc or even Vinyl record.

  • Connect the output of your choosen playback device to audio input of a computer (Raspberry PI).

  • Insert your media (casette) into your playback device and start playing.

  • Continously decode the stream of timestamps, and use the timestamps to set the current position of audio playback on the Raspberry PI (probably playing MP3s)

Now you can use Fast Forward / Rewind to seek in your MP3s using your cassette player.

You probably also want to include Track ID and Tape ID in the code, so you can "map" specific casettes to specific collections (directories ?) of music. Now you can skip tracks (if using a CD player) and switch media to switch MP3 "collection".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment