Musical rhythms


next up previous
Next: Prolog and grammars
Up: Navigating through data structures (PEAI)
Previous: Science fiction stories
Back: to main list of student notes

Musical rhythms

Now load notes. Call spin again. Now it generates rhythms to be used as a basis for fugues. In the output, c means crotchet; m minim, and q quaver. This is taken from a previous practical project, namely a fugue-generating program written by Lucy Mackintosh, which first generated a basic two-bar rhythm structure, then superimposed a melody, and finally constructed other harmonically-related melodies for the other voices. The melody generator is rather too complicated for this stage of the course, so what I've shown you is just the rhythm part.


next up previous
Next: Prolog and grammars
Up: Navigating through data structures (PEAI)
Previous: Science fiction stories
Back: to main list of student notes



Jocelyn Paine
Tue Jun 4 17:58:48 BST 1996