Pitch; The Characteristics Of A Musical Note - AMSTRAD CPC464 User Manual

Cpc464 colour personal computer 64k
Hide thumbs Also See for CPC464:
Table of Contents

Advertisement

6.2 Pitch

In a musical note the pitch is by far the single most important factor. A musical note can be
described as a regular oscillation, all oscillations have frequency, period and amplitude. (see fig 1).
Figure 1: The characteristics of a musical note
The frequency is the number of oscillations per second, and the period is length of time each
oscillation lasts. Amplitude is an attribute of volume and is not relevant here in defining the pitch of
a note.
Frequency and period are related to each other by the simple formula:
Frequency (expressed in Hertz) = l/Period (expressed in seconds)
The relationship between frequency and the <tone period> in the SOUND command is:
Frequency (expressed in Hz) = 125000 / <tone period>
Thus a tone period) of 1000 would result in a 125 Hz tone, and a tone period) of 125 would result in a
1000Hz (1kHz) note.
Either of these could be used to set the pitch, but Amstrad BASIC chooses to use the <tone period>.
Don' t be mislead by the fact that as the period goes up in value, the pitch goes down. The pitch
appears in the keyword description of SOUND as <tone period>. The range of tone periods available
is extensive (0....4095) and must be expressed as an integer. This may lead to some rounding errors
when constructing a scale of musical notes, but nothing that would offend any but the most critical
ear-see Appendix VII.
When a note is played on a real musical instrument the pitch may vary, sometimes deliberately by
vibrato. Using the ENT command (ENvelope Tone) we can design a specific format for the structure
of period changes during each note - and this may be invoked in the SOUND command. This feature
is known here as the <tone envelope>.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents