how do they get those tracks sounding so clean??

all those little blips, bleeps, static sounds, sound really nice, do they use mostly hardware? or is it just good mastering?