Re-interpreting Data
summary
Takes arbitrary files and actually converts them into WAV, BMP and MIDI by building real headers and rearranging raw bytes using Ruby rather than handwaving the idea. Writes a WAV header and appends file bytes so the Ruby interpreter becomes audible as noisy but structured WAV. Constructs BMP headers with padding, square-sizing and per-scanline null insertion so small files map to visible patterns. Generates MIDI by chunking bits into events using VLQ encoding and the pack method reading 27 bytes -> 8 events. Ships as the Stegosaurus Ruby library and demos work.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:26File extensions and data structure
- 3:54WAV file format and header
- 8:50Creating WAV from data
- 12:04Converting files to BMP
- 21:16Generating BMP from data
- 26:03MIDI structure introduction
- 33:29Building MIDI events
- 37:42MIDI file generation demo
- 39:55Exploring file formats for fun
- 44:00Closing remarks
related talks
23mHow music works, using Ruby
32mHow music works, using Ruby
28mHow music works, using Ruby
33mWriting Music with Ruby: A subtle introduction to music theory
31mIt's so quiet. Let's make music.
51mMaking Music with Ruby: Patterns, Context, Fun
43mMy Ruby is a Paintbrush. My Ruby is a Synth.
41mIt's More Fun to Compute
