Basic "working" code

The notes/duration are generated as discussed, to the best of my
understanding.

To get the score looking even reasonable, I disabled \relative mode, as
we really want absolute mode. Relative mode is designed for manual
input, absolute is better for programmatically generated music. I think this means some transpose set up needs tweaking, and octaves fixing, perhaps.

Sounds reasonable on first play though, notes/phrasing seems to work as expected.