| |
| |
Preface | |
| |
| |
Acknowledgments | |
| |
| |
| |
Getting Started | |
| |
| |
| |
Introduction | |
| |
| |
| |
Binary Numbers | |
| |
| |
| |
A Simple Computer Hardware | |
| |
| |
The Instruction Set | |
| |
| |
Assembly Language | |
| |
| |
Simple Decisions | |
| |
| |
| |
High Level Languages | |
| |
| |
| |
Other Software | |
| |
| |
| |
Conclusion | |
| |
| |
References and Selected Readings | |
| |
| |
Exercises | |
| |
| |
| |
A Tutorial Introduction To Pascal | |
| |
| |
| |
Historical Perspective | |
| |
| |
| |
Program Structure | |
| |
| |
| |
Constants, Variables, and Arithmetic Operators | |
| |
| |
| |
Control Statements | |
| |
| |
The Compound Statement | |
| |
| |
Program Loops | |
| |
| |
Decision Statements | |
| |
| |
| |
User-Written Functions and Procedures | |
| |
| |
| |
Arrays and Other Structured Types | |
| |
| |
References and Selected Readings | |
| |
| |
Exercises | |
| |
| |
| |
Pascal Basics and Simple Types | |
| |
| |
| |
The Basic Elements of Pascal | |
| |
| |
Special Symbols | |
| |
| |
Reserved Words | |
| |
| |
Comments | |
| |
| |
Identifiers | |
| |
| |
Standard Identifiers | |
| |
| |
Numeric Literals | |
| |
| |
Boolean Literals | |
| |
| |
Strings Delimiters | |
| |
| |
| |
The Parts of a Program | |
| |
| |
| |
The Assignment Statement and Expressions | |
| |
| |
| |
Standard Functions | |
| |
| |
| |
Ordinal Types | |
| |
| |
| |
The Type Integer | |
| |
| |
Arithmetic Operators | |
| |
| |
Integer Functions | |
| |
| |
Integer Expressions | |
| |
| |
| |
The Type Boolean | |
| |
| |
Relational Operators | |
| |
| |
Boolean Operators | |
| |
| |
Boolean Functions | |
| |
| |
Boolean Assignment | |
| |
| |
The in Operator | |
| |
| |
| |
The Type Char | |
| |
| |
Character Functions | |
| |
| |
Comparing Character Data | |
| |
| |
| |
Enumerated Types | |
| |
| |
Functions with Enumerated Types | |
| |
| |
Relational Operators and Enumerated Types | |
| |
| |
| |
Subrange Types | |
| |
| |
| |
Named and Anonymous Types | |
| |
| |
| |
The Type Real | |
| |
| |
Arithmetic Operators | |
| |
| |
Real Functions | |
| |
| |
Real Expressions | |
| |
| |
Precision in Real Numbers | |
| |
| |
References and Selected Readings | |
| |
| |
Exercises | |
| |
| |
| |
Input and Output | |
| |
| |
| |
Program Output: write and writeIn | |
| |
| |
| |
Program Input: read and readIn | |
| |
| |
| |
The page Function | |
| |
| |
References and Selected Readings | |
| |
| |
Exercises | |
| |
| |
| |
Control Statements | |
| |
| |
| |
The Compound Statement: begin...end | |
| |
| |
| |
The if Statement | |
| |
| |
| |
Conditional Execution: if...then | |
| |
| |
| |
Compound if Statement: if...then...else | |
| |
| |
| |
Chained if Statements | |
| |
| |
| |
if...then...else if | |
| |
| |
| |
if...then if | |
| |
| |
| |
The case Statement: case...end | |
| |
| |
| |
Program Loops | |
| |
| |
| |
Testing at the Top of the Loop: while...do | |
| |
| |
| |
Testing at the End of the Loop: while...do | |
| |
| |
| |
Ordinal Iteration: for...do | |
| |
| |
| |
Which Loop to Use | |
| |
| |
| |
Debugging Loops | |
| |
| |
| |
The goto Statement | |
| |
| |
References and Selected Readings | |
| |
| |
Exercises | |
| |
| |
| |
Encoding Music | |
| |
| |
| |
Numeric Pitch Representation | |
| |
| |
| |
Pitch Class (pc) | |
| |
| |
| |
Continuous Pitch Code (cpc) | |
| |
| |
| |
Name Class (nc) | |
| |
| |
| |
Continuous Name Code (cnc) | |
| |
| |
| |
Binomial Representation (br) | |
| |
| |
| |
Music Operations | |
| |
| |
| |
Properties of the Binomial System | |
| |
| |
| |
A Single Number Binomial Representation (br) | |
| |
| |
| |
Continuous Binomial Representation (cbr) | |
| |
| |
| |
Reciprocal Duration Code (rdc) | |
| |
| |
| |
Delimiters | |
| |
| |
| |
DARMS Code | |
| |
| |
| |
Encoding Pitch | |
| |
| |
| |
Rhythm, Meter, and Bar lines | |
| |
| |
| |
Other Note Attributes | |
| |
| |
| |
Pa | |