Electronic music is made by synthesizing or processing digital audio signals. These are sequences of numbers,
Strictly speaking, this is the real Sinusoid, distinct from the complex Sinusoid introduced later in chapter 7; but where there's no chance of confusion we will simply say ``Sinusoid" to speak of the real-valued one.
Figure 1.1 shows a Sinusoid graphically.
In part (a) of the figure, the horizontal axis shows successive
values of
and the vertical axis shows the
corresponsding values of
. The graph is drawn in
such a way as to emphasize the sampled nature of the signal.
Alternatively, we could draw it more simply as a continuous curve
(part b). The upper drawing is the most faithful representation of
the (digital audio) Sinusoid, whereas the lower one can be
considered as idealization of it.
![]() |
Sinusoids play a key role in audio processing because, if you shift one of them left or right by any number of samples, you get another one. This makes it easy to calculate the effect of all sorts of operations on sinusoids. Our ears use this same special property to help us parse incoming sounds, which is why sinusoids, and combinations of sinusoids, can be used for a variety of musical effects.
Digital audio signals do not have any intrinsic relationship
with time, but to listen to them we must choose a sample rate, usually given the variable name
, which is the number of samples that fit
into a second. Time is related to sample number by
, or
. A sinusoidal signal with
angular frequency
has a real-time
frequency equal to
A real-world audio signal's amplitude might be expressed as a time-varying voltage or air pressure, but the samples of a digital audio signal are unitless numbers. We'll casually assume here that there is ample numerical accuracy so that we can ignore round-off errors, and that the numerical format is unlimited in range, so that samples may take any value we wish. However, most digital audio hardware works only over a fixed range of input and output values, most often between -1 and 1. Modern digital audio processing software usually uses a floating-point representation for signals. This allows us to use whatever units are most convenient for any given task, as long as the final audio output is within the hardware's range.