Class D amps are simple – just take an input, and use that to modulate a square wave with PWM ... he built his own with an ATTiny and an H-bridge motor driver. No surprise, it works, but ...