C:/Musimathics_local/Musimat/MusimatTutorial/B0201c.cpp File Reference

#include "MusimatTutorial.h"

Go to the source code of this file.

Functions

 MusimatTutorialSection (B0201c)
RealList naturalChromatic (1.0/1.0, 16.0/15.0, 9.0/8.0, 6.0/5.0, 5.0/4.0, 4.0/3.0, 64.0/45.0, 3.0/2.0, 8.0/5.0, 5.0/3.0, 16.0/9.0, 15.0/8.0)
Static Void para1 ()

Variables

Real R = 440.0
Real cNat4 = R * 3.0/5.0


Function Documentation

MusimatTutorialSection ( B0201c   ) 

Definition at line 2 of file B0201c.cpp.

References para1().

00002                                {
00003 Print("*** Natural Chromatic Scale ***");
00004 /*****************************************************************************
00005 
00006 Natural Chromatic Scale
00007 
00008 To create the natural chromatic scale, all we need now is to establish 
00009 the frequency reference for natural chromatic middle C and tabulate the ratios of the scale.
00010 *****************************************************************************/
00011         para1();  // Step into this function to continue the tutorial
00012 }

RealList naturalChromatic ( 1.0/1.  0,
16.0/15.  0,
9.0/8.  0,
6.0/5.  0,
5.0/4.  0,
4.0/3.  0,
64.0/45.  0,
3.0/2.  0,
8.0/5.  0,
5.0/3.  0,
16.0/9.  0,
15.0/8.  0 
)

Static Void para1 (  ) 

Definition at line 23 of file B0201c.cpp.

References cNat4, naturalChromatic(), and pitchToHz().

00023                     {
00024 /*****************************************************************************
00025 Then
00026 *****************************************************************************/
00027 
00028 Print("A4=",  pitchToHz(A4 , cNat4, naturalChromatic));
00029 
00030 /*****************************************************************************
00031 prints A4=440.0, and
00032 *****************************************************************************/
00033 
00034 Print("C4=",  pitchToHz(C4 , cNat4, naturalChromatic));
00035 
00036 /*****************************************************************************
00037 prints C4=264.00.
00038 
00039 *****************************************************************************/
00040 }}


Variable Documentation

Real cNat4 = R * 3.0/5.0

Definition at line 15 of file B0201c.cpp.

Real R = 440.0

Definition at line 14 of file B0201c.cpp.


Generated on Fri Sep 8 23:10:52 2006 for Musimat Tutorial by  doxygen 1.4.7