Algorithmic Composition: A Guide to Composing Music with Nyquist