Steve Jobs Gave the Mac Team a Weekend to Fix Its Sound or Lose the Amp. They Borrowed the Gaps Between Screen Lines.
Andy Hertzfeld's firsthand account covers a Friday ultimatum, a three-voice driver that fell one short, and a Monday demo drawn on an oscilloscope.

Late on a Friday afternoon, Steve Jobs pulled Burrell Smith and Andy Hertzfeld aside and gave them a deadline. “If I don’t hear great sound coming out of that prototype by Monday morning, we’re going to remove the amplifier,” he told Smith, then turned to Hertzfeld: “I want to hear great sound on Monday, or else.” Hertzfeld’s own write-up on Folklore.org has him telling Smith, “I think he’s bluffing.” Then: “But what if he’s not?”
The threat had a history. In August 1982, Smith redesigned the Macintosh digital board after the Integrated Burrell Machine effort fell apart. That effort’s custom chip had enough spare logic for four simultaneous wavetable channels. Without the chip, four channels in hardware cost too much. Smith kept the core idea: sound samples fetched by DMA, 8 bits each, run through a pulse width modulated digital-to-analog converter. The four voices would now come from software. Jobs had approved an extra dollar for a better amplifier to match (premium audio, 1982 style). Meanwhile Hertzfeld was buried in getting the Toolbox ready for developers, and the sound driver kept slipping.
The hardware trick is the part worth retelling. The Mac was already pulling memory continuously to paint the display. But every 44 microseconds a horizontal blanking interval opened, a gap where no video data was needed, and Smith used that gap to fetch the next audio sample. One sample per scan line works out to a 22 kHz sample rate, good for frequencies up to 11 kHz. The sound had no slot of its own. It rode in the dead time of the video signal, which is audio on borrowed time.
The software side ran at interrupt level. The driver got control at the start of each vertical blanking interval, every 16 milliseconds, and had to produce the next 16 ms of samples before the next one arrived. At 44 microseconds per sample, that is roughly 364 samples per frame (our arithmetic from Hertzfeld’s figures). Hertzfeld’s math was blunt: if one sample took 22 microseconds to calculate, sound alone would eat half the processor.
His first driver took a few hours and handled two voices cleanly. At four, it glitched audibly and made everything else run “like molasses.” Smith looked at the code, saw it touching main memory, and objected: “Memory? Are you kidding? You can’t hit main memory, you’ll never make it that way. You’ve got to do everything in the registers!” Registers ran about four times faster than the memory chips, but the processor had only 16 of them. Each voice needed a frequency, a waveform pointer, a position in the waveform and an amplitude, plus housekeeping. Hertzfeld rewrote the routine to avoid memory and got three voices before the registers ran out.
Three was not enough for Smith. It was late Saturday evening, and he insisted on finishing the fourth voice before “head hits pillow” or it would never happen. Hertzfeld’s way out came from the registers’ width. They were 32 bits long, and some of the calculations only needed 16, so he packed two different values into a single register. That brought each sample to about 22 microseconds, using roughly half the CPU for four voices at the top sample rate.
They went home around midnight and returned near noon Sunday to build a demo called SoundLab. It let a user draw a waveform with the mouse and set each of the four voices’ pitch with a scrollbar. Without envelope shaping it didn’t sound like music, only “very eerie sounding noises,” but it could also feed an oscilloscope, so you could draw a shape and watch it appear on the scope. On Monday, Jobs was pleased by the four voices and impressed by the mouse-drawn waveform on the scope. Hertzfeld doubted he was satisfied, since Jobs wanted high-quality music, and getting there would take years and many third-party developers.
Hertzfeld added a correction in a 2003 comment: the team never had to run at the maximum 22 kHz all the time. A lower sample rate gives proportionally more time to calculate each sample, and Jam Session and other programs used that to reach eight voices on the original Mac.
The pattern here is a timing budget treated as a resource. Smith saw that the video circuit left idle time on every scan line and put sound there, and Hertzfeld then spent each of those 44-microsecond windows as carefully as a register file. Systems with a fixed refresh, frame or tick tend to hide similar slack, and engineers who read the timing diagram first tend to find it. That is a forecast from the mechanism and not something the account claims.
As for the Friday threat, the Folklore.org account does not say what happened to the amplifier afterward. It does say the team shipped a four-voice synthesizer by Monday, and that the spare hour of each scan line kept paying off: Jam Session eventually got eight voices.