Ch-2 Sound and Audio
Ch-2 Sound and Audio
The waveform repeats the same shape at regular intervals and this portion is
called a period. Since sound wave occurs naturally, they are never perfectly
smooth or uniformly periodic. However, sounds that display a recognizable
periodicity tend to be more musical than those that are nonperiodic. Examples
of periodic sound sources are musical instruments, vowel sounds, whistling
wind and bird songs. Nonperiodic sound sources include unpitched percussion
instruments, coughs and sneezes and rushing water.
The mechanism that converts an audio signal into digital samples is the Analog-
to-Digital Converter (ADC). The reverse conversion is performed by a Digital-to-
Analog Converter (DAC).
Sampling Rate
Quantization
Sound Hardware
Audio Formats
The important format parameters for specification of audio are: sampling rate
(e.g. 8012.8 samples/ second) and sample quantization (e.g. 8-bit quantization).
2.2. Basic music [MIDI] concepts, devices, messages, standards, and software
MIDI Devices
The heart of any MIDI system is the MIDI synthesizer device. A typical
synthesizer looks like a simple piano keyboard with a panel full of buttons.
Most synthesizers have the following common components:
Sound Generator
The principal purpose of the generator is to produce an audio signal that
becomes sound when fed into a loudspeaker. By varying the voltage
oscillation of the audio signal, a sound generator changes the quality of
the sound – its pitch, loudness and tone – to create wide variety of
sounds and notes.
Microprocessor
The microprocessor communicates with the keyboard to know what
notes the musician is playing, and with the control panel to know what
commands the musician wants to send to the microprocessor. The
microprocessor then specifies note and sound commands to the sound
generators.
Keyboard
The keyboard affords the musician's direct control of the synthesizer.
Pressing keys on the keyboard signals the microprocessor knows what
notes to play and how long to play them.
Control Panel
The control panel controls those functions that are not directly
concerned with notes and durations. It includes: a slider that sets the
overall volume of the synthesizer, a button that turns the synthesizer on
and off, and a menu that calls up different patches for the sound
generators to play.
Auxiliary Controller
They are available to give more control over the notes played on the
keyboard.
Memory
Synthesizer memory is used to store patches for the sound generators
and settings on the control panel.
MIDI Messages
Channel Messages
Channel messages go only to specified devices. There are two types of
channel messages:
System Messages
System messages go to all devices in a MIDI system because no channel
numbers are specified. There are three types of system messages:
- System real-time messages are very short and simple, consisting only
one byte. They are specially used for system reset, timing clock etc.
- System common messages are commands that prepare sequencers and
synthesizers to play a song. They are used for song selection, tuning the
synthesizers etc.
MIDI Standards
MIDI reproduces traditional note length using MIDI clocks, which are
represented through timing clock messages. Using a MIDI clock, a receiver can
synchronize with the clock cycles of the sender. For example, a MIDI clock
helps to keep separate sequencers in the same MIDI system playing at the
same tempo. When a master sequencer plays a song, it sends out a stream of
'Timing Clock' messages to convey the tempo to other sequencer. The faster
the timing clock messages come in, the faster the receiving sequencer plays
the song.
MIDI Software
Speech Generation