00001 // MusimatChapter9.cpp : Defines the entry point for the console application. 00002 // 00003 00048 #ifndef __GNUC__ 00049 #include "stdafx.h" 00050 #endif 00051 #include <iostream> 00052 #include "MusimatChapter9.h" 00053 00054 #ifndef __GNUC__ 00055 int _tmain(int argc, _TCHAR* argv[]) 00056 #else 00057 int main(int argc, char* argv[]) 00058 #endif 00059 { 00060 // Plant your first breakpoint on the line below containing 00061 // C090400(). Then run the program, which will stop just 00062 // before executing that function. To start, use the 00063 // debugger's "step into" command to step into the function. 00064 C090400(); // 9.4 Program for Guido's Method 00065 00066 // When you get here, you've finished stepping through C090400(). 00067 // To continue, use the debugger's "step into" command to 00068 // step into the next function. 00069 C090703(); // 9.7.3 Linear Congruential Method 00070 00071 // Use the debugger's "step into" command to continue 00072 // by stepping into each of the following functions. 00073 // For some sections, there may be additional functions for you 00074 // to visit within each file. 00075 C090400(); // Program for Guido's Method 00076 C090703a(); // Seeding the Random Number Generator 00077 C090703b(); // Random Real Numbers 00078 C090703c(); // Random Integer Numbers Scaled to an Arbitrary Range 00079 C090903(); // 9.9.3 Circular Permutation 00080 C091101(); // 9.11.1 Precomposition 00081 C091102(); // 9.11.2 The Set Complex 00082 C091200(); // 9.12 Traversing and Manipulating Musical Materials 00083 C091201(); // 9.12.1 Deterministic Serial Methods 00084 C091201a(); // Cycle 00085 C091201b(); // Palindrome 00086 C091201c(); // Permutation 00087 C091201d(); // Transpose 00088 C091201e(); // Interpolated Tendency Mask 00089 C091201f(); // Linear Interpolation 00090 C091204(); // 9.12.4 Nondeterministic Serial Methods 00091 C091204a(); // Sampling without Replacement 00092 C091204b(); // Shuffle 00093 C091204d(); // Random Tendency Mask 00094 C091405(); // 9.14.5 Generating Outcomes from Probability Distributions 00095 C091406(); // 9.14.6 Cumulative Distribution Function 00096 C091406a(); // Accumulation 00097 C091406b(); // Traversing the Cumulative Distribution Function 00098 C091406c(); // A Less Boring (?) Musical Example 00099 C091704b(); // Brownian Nose Generator 00100 C091704c(); // Fractional Brownian Motion 00101 C091704d(); // Voss's Method 00102 00103 Return 0; 00104 } 00105 00106 00108 /* $Revision: 1.4 $ $Date: 2006/09/09 06:23:23 $ $Author: dgl $ $Name: $ $Id: MusimatChapter9.cpp,v 1.4 2006/09/09 06:23:23 dgl Exp $ */ 00109 // The Musimat Tutorial © 2006 Gareth Loy 00110 // Derived from Chapter 9 and Appendix B of "Musimathics Vol. 1" © 2006 Gareth Loy 00111 // and published exclusively by The MIT Press. 00112 // This program is released WITHOUT ANY WARRANTY; without even the implied 00113 // warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00114 // For information on usage and redistribution, and for a DISCLAIMER OF ALL 00115 // WARRANTIES, see the file, "LICENSE.txt," in this distribution. 00116 // "Musimathics" is available here: http://mitpress.mit.edu/catalog/item/default.asp?ttype=2&tid=10916 00117 // Gareth Loy's Musimathics website: http://www.musimathics.com/ 00118 // The Musimat website: http://www.musimat.com/ 00119 // This program is released under the terms of the GNU General Public License 00120 // available here: http://www.gnu.org/licenses/gpl.txt 00121