The Musimat Examples from Chapter 9 of "Musimathics" V1

1.0

About the Examples

The following materials in Musimat are excerpted from Chapter 9, "Composition and Methodology", of "Musimathics Vol. 1", Published by the MIT Press and 2006 Gareth Loy.

It can be read as HTML text in your favorite web browser, or you can step through the code with your debugger to see it in action.

  1. Open the file Musimat'.cpp.
  2. Plant a breakpoint on the first function call (named C090400()) inside the main() routine at the bottom of the file.
  3. Run the program from within the debugger.
  4. The program will halt at the breakpoint you set.
  5. Step into the function C090400(). You will eventually be returned to the main() subroutine when C090400() returns.
  6. Step into the next function to continue.
  7. You can use your debugger to examine data structures and follow the execution of the code. The output of the Print() statements in the program will appear in another window (Windows) or directly on the console (gdb).

In order to follow the flow of Chapter 9 of "Musimathics", the tutorial had to be broken into a set of unique functions. You can follow the narrative by using your debugger to step into the next tutorial function when the previous one returns to main(). See the main() function at the bottom of this file for more details.

The section names in this tutorial are the same as Chapter 9 in "Musimathics" V1. For example, tutorial function C090400() corresponds to the text in section Chapter 9, section 4.