Mmm, actually the composer is the one that creates music. A director simply translates music to something human can experience and enjoy, similar to a compiler.
Get your slop machine to write you better analogies.