GM Full Notes
GM Full Notes
GM Full Notes
Unit:4 AUDIO
Text Book(s)
1 Computer Graphics, Donald Hearn, M.Pauline Baker, 2nd edition, PHI. (UNIT-I:
3.1-3.6,4.1- 4.5 & UNIT-II: 5.1-5.4,6.1-6.5)
2 Principles of Multimedia, Ranjan Parekh, 2007, TMH. (UNIT III: 4.1-4.7,5.1-5.16
UNIT-IV: 7.1-7.3,7.8-7.14,7.18-7.20,7.22,7.24,7.26-28 UNIT-V: 9.5-
9.10,9.13,9.15,10.10-10.13)
Reference Books
1 Computer Graphics, Amarendra N Sinha, Arun D Udai, TMH.
2 Multimedia: Making it Work, Tay Vaughan, 7th edition, TMH.
Output Primitives
A picture can be described in several ways. Assuming we have a raster dis-
play, a picture is completely specified by the set of intensities for the pixel
positions in the display. At the other extreme, we can describe a picture as a set of
complex objects, such as trees and terrain or furniture and walls, positioned at
specified coordinate locations within the scene. Shapes and colors of the objects
can be described internally with pixel arrays or with sets of basic geometric struc-
tures, such as straight line segments and polygon color areas. The scene is then
displayed either by loading the pixel arrays into the frame buffer or by scan con-
verting the basic geometric-structure specifications into pixel patterns. Typically,
graphics programming packages provide functions to describe a scene in terms
of these basic geometric structures, referred to as output primitives, and to
group sets of output primitives into more complex structures. Each output primi-
tive is specified with input coordinate data and other information about the way
thal object is to be displayed. Points and straight line segments are the simplest
geometric components of pictures. Additional output primitives that can be used
to construct a picture include circles and other conic sections, quadric surfaces,
spline curves and surfaces, polygon color areas, and character strings. We begin
our discussion of picture-generation procedures by examining device-level algo-
rithms for displaying two-dimensional output primitives, with particular empha-
sis on scan-conversion methods for raster graphics systems. In this chapter, we
also consider how oulput functions can be provided in graphics packages, and
we take a look at the output functions available in the PHlGS language.
LINE-DRAWING ALGORITHMS
Line drawing on the computer means the computer screen is dividing into two parts
rows and columns. Those rows and columns are also known as Pixels. In case we have
to draw a line on the computer, first of all, we need to know which pixels should be on.
A line is a part of a straight line that extends in the opposite direction indefinitely. The
line is defined by two Endpoints. Its density should be separate from the length of the
line.
The formula for a line interception of the slope:
Y = mx + b
In this formula, m is a line of the slope and b is intercept of y in the line. In positions (x1,
y1) and (x2, y2), two endpoints are specified for the line segment.
DDA Algorithm
algorithm is the simple line generation algorithm which is explained step by step here.
Step 1 − Get the input of two end points (X0,Y0) and (X1,Y1)
Step 3 − Based on the calculated difference in step-2, you need to identify the number of
steps to put pixel. If dx > dy, then you need more steps in x coordinate; otherwise in y
coordinate.
if (absolute(dx) > absolute(dy))
Steps = absolute(dx);
else
Steps = absolute(dy);
Step 5 − Put the pixel by successfully incrementing x and y coordinates accordingly and
complete the drawing of the line.
for(int v=0; v < Steps; v++)
{
x = x + Xincrement;
y = y + Yincrement;
putpixel(Round(x), Round(y));
}
DDA Algorithm:
Step7: xinc=dx/step
yinc=dy/step
assign x = x1
assign y = y1
Step9: x = x + xinc
y = y + yinc
Set pixels (Round (x), Round (y))
x1=2
y1=3
x2= 6
y2=15
dx = 6 - 2 = 4
dy = 15 - 3 = 12
m=
Step5: Consider (x, y) as starting point and xendas maximum possible value of x.
If dx < 0
Then x = x2
y = y2
xend=x1
If dx > 0
Then x = x1
y = y1
xend=x2
Step9: Increment x = x + 1
Step11: Go to step 7
Solution: x1=1
y1=1
x2=8
y2=5
dx= x2-x1=8-1=7
dy=y2-y1=5-1=4
I1=2* ∆y=2*4=8
I2=2*(∆y-∆x)=2*(4-7)=-6
d = I1-∆x=8-7=1
x y d=d+I1 or I2
1 1 d+I2=1+(-6)=-5
2 2 d+I1=-5+8=3
3 2 d+I2=3+(-6)=-3
4 3 d+I1=-3+8=5
5 3 d+I2=5+(-6)=-1
6 4 d+I1=-1+8=7
7 4 d+I2=7+(-6)=1
85
Loading Frame Buffer:
You know that a memory bit has only two states, therefore a single bit plane yields a
black-and white display. You know that a frame buffer is a digital device and the CRT
is an analog device. Therefore, a conversion from a digital representation to an analog
signal must take place when information is read from the frame buffer and displayed
on the raster CRT graphics device. For this you can use a digital to analog converter
(DAC).Each pixel in the frame buffer must be accessed and converted before it is visible
on the raster CRT.
This is converted into an analog voltage between 0 and the maximum voltage of the
electron gun by the DAC. A total of 2N intensity levels are possible. Figure given below
illustrates a system with 3 bit planes for a total of 8 (23) intensity levels. Each bit plane
requires the full complement of memory for a given raster resolution; e.g., a 3-bit plane
frame buffer for a 1024 X1024 raster requires 3,145,728 (3 X 1024 X1024) memory bits.
LINE FUNCTION
wcPoints[ll .x = SO;
wcPoints[ll .y = 100;
wcPoints[21 .x = 150;
wc~oints[2l.y = 250;
wc~oints[3l.x = 250;
wcPoints[31 . y = 100;
polyline ( 3 , wcpoints);
Since the circle is a frequently used component in pictures and graphs, a procedure for
generating either full circles or circular arcs is included in most graphics packages. More
generally, a single procedure can be provided to display either circular or elliptical curves.
Drawing a circle on the screen is a little complex than drawing a line. There are two
popular
algorithms for generating a circle − Bresenham’s Algorithm and Midpoint Circle
Algorithm.
These algorithms are based on the idea of determining the subsequent points required
to draw the
circle. Let us discuss the algorithms in detail −
The equation of circle is X2 + Y2 = r2, where r is radius.
Algorithm
Step 1 − Get the coordinates of the center of the circle and radius, and store them in x,
y, and R
respectively. Set P=0 and Q=R.
Step 2 − Set decision parameter D = 3 – 2R.
Step 3 − Repeat through step-8 while X < Y.
Step 4 − Call Draw Circle X, Y, P, Q.
Step 5 − Increment the value of P.
Step 6 − If D < 0 then D = D + 4x + 6.
Step 7 − Else Set Y = Y + 1, D = D + 4X − Y + 10.
Step 8 − Call Draw Circle X, Y, P, Q.
Draw Circle Method(X, Y, P, Q).
Call Putpixel (X + P, Y + Q).
Call Putpixel (X - P, Y + Q).
Call Putpixel (X + P, Y - Q).
Call Putpixel (X - P, Y - Q).
Call Putpixel (X + Q, Y + X).
Call Putpixel (X - Q, Y + X).
Call Putpixel (X + Q, Y - X).
Call Putpixel (X - Q, Y - X).
Step 1 − Input radius r and circle center (xc , yc) and obtain the first point on the
circumference of
the circle centered on the origin as
(x0, y0) = (0, r)
Step 2 − Calculate the initial value of decision parameter as
P0 = 5/4 – r Seethefollowingdescriptionforsimplificationofthisequation.
f(x, y) = x2 + y2 - r2 = 0
f(xi - 1/2 + e, yi + 1)
= (xi - 1/2 + e)2 + (yi + 1)2 - r2
= (xi- 1/2)2 + (yi + 1)2 - r2 + 2(xi - 1/2)e + e2
= f(xi - 1/2, yi + 1) + 2(xi - 1/2)e + e2 = 0
Output:
Step3: End
class bresen
{
float x, y,a, b, r, p;
public:
void get ();
void cal ();
};
void main ()
{
bresen b;
b.get ();
b.cal ();
getch ();
}
Void bresen :: get ()
{
cout<<"ENTER CENTER AND RADIUS";
cout<< "ENTER (a, b)";
cin>>a>>b;
cout<<"ENTER r";
cin>>r;
}
void bresen ::cal ()
{
/* request auto detection */
int gdriver = DETECT,gmode, errorcode;
int midx, midy, i;
/* initialize graphics and local variables */
initgraph (&gdriver, &gmode, " ");
/* read result of initialization */
errorcode = graphresult ();
if (errorcode ! = grOK) /*an error occurred */
{
printf("Graphics error: %s \n", grapherrormsg (errorcode);
printf ("Press any key to halt:");
getch ();
exit (1); /* terminate with an error code */
}
x=0; y=r;
putpixel (a, b+r, RED);
putpixel (a, b-r, RED);
putpixel (a-r, b, RED);
putpixel (a+r, b, RED);
p=5/4)-r;
while (x<=y)
{
If (p<0)
p+= (4*x)+6;
else
{
p+=(2*(x-y))+5;
y--;
}
x++;
putpixel (a+x, b+y, RED);
putpixel (a-x, b+y, RED);
putpixel (a+x, b-y, RED);
putpixel (a+x, b-y, RED);
putpixel (a+x, b+y, RED);
putpixel (a+x, b-y, RED);
putpixel (a-x, b+y, RED);
putpixel (a-x, b-y, RED);
}
}
Output:
ELLIPSE-GENERATING ALGORITHMS
class bresen
{
float x,y,a, b,r,p,h,k,p1,p2;
public:
void get ();
void cal ();
};
void main ()
{
bresen b;
b.get ();
b.cal ();
getch ();
}
void bresen :: get ()
{
cout<<"\n ENTER CENTER OF ELLIPSE";
cout<<"\n ENTER (h, k) ";
cin>>h>>k;
cout<<"\n ENTER LENGTH OF MAJOR AND MINOR AXIS";
cin>>a>>b;
}
void bresen ::cal ()
{
/* request auto detection */
int gdriver = DETECT,gmode, errorcode;
int midx, midy, i;
/* initialize graphics and local variables */
initgraph (&gdriver, &gmode, " ");
/* read result of initialization */
errorcode = graphresult ();
if (errorcode ! = grOK) /*an error occurred */
{
printf("Graphics error: %s \n", grapherrormsg (errorcode);
printf ("Press any key to halt:");
getch ();
exit (1); /* terminate with an error code */
}
x=0;
y=b;
// REGION 1
p1 =(b * b)-(a * a * b) + (a * a)/4);
{
putpixel (x+h, y+k, RED);
putpixel (-x+h, -y+k, RED);
putpixel (x+h, -y+k, RED);
putpixel (-x+h, y+k, RED);
if (p1 < 0)
p1 += ((2 *b * b) *(x+1))-((2 * a * a)*(y-1)) + (b * b);
else
{
p1+= ((2 *b * b) *(x+1))-((2 * a * a)*(y-1))-(b * b);
y--;
}
x++;
}
//REGION 2
p2 =((b * b)* (x + 0.5))+((a * a)*(y-1) * (y-1))-(a * a *b * b);
while (y>=0)
{
If (p2>0)
p2=p2-((2 * a * a)* (y-1))+(a *a);
else
{
p2=p2-((2 * a * a)* (y-1))+((2 * b * b)*(x+1))+(a * a);
x++;
}
y--;
putpixel (x+h, y+k, RED);
putpixel (-x+h, -y+k, RED);
putpixel (x+h, -y+k, RED);
putpixel (-x+h, y+k, RED);
}
getch();
}
Output
1. Line Attributes
2. Curve Attributes
3. Color and Grayscale Levels
4. Area Fill Attributes
5. Character Attributes
6. Bundled Attributes
Line Attributes
Basic attributes of a straight line segment are its type, its width, and its color. In some
graphics packages, lines can also be displayed using selected pen or brush options
Line Type
Line Width
Pen and Brush Options
Line Color
Line type
Possible selection of line type attribute includes solid lines, dashed lines and dotted lines.
To set line type attributes in a PHIGS application program, a user invokes the function
setLinetype (lt)
Line width
Implementation of line width option depends on the capabilities of the output device to
set the line width attributes.
setLinewidthScaleFactor(lw)
Line width parameter lw is assigned a positive number to indicate the relative width of
line to be displayed. A value of 1 specifies a standard width line. A user could set lw to a
value of 0.5 to plot a line whose width is half that of the standard line. Values greater
than 1 produce lines thicker than the standard.
Line Cap
We can adjust the shape of the line ends to give them a better appearance by adding line
caps.
Butt cap obtained by adjusting the end positions of the component parallel lines so that
the thick line is displayed with square ends that are perpendicular to the line path.
Round cap obtained by adding a filled semicircle to each butt cap. The circular arcs are
centered on the line endpoints and have a diameter equal to the line thickness
Projecting square cap extend the line and add butt caps that are positioned one-half of
the line width beyond the specified endpoints.
Mitter Join
Round Join
Bevel Join
1. A miter join accomplished by extending the outer boundaries of each of the two lines
until they meet.
2. A round join is produced by capping the connection between the two segments with a
circular boundary whose diameter is equal to the width.
3. A bevel join is generated by displaying the line segment with but caps and filling in tri
angular gap where the segments meet
With some packages, lines can be displayed with pen or brush selections. Options in this
category include shape, size, and pattern. Some possible pen or brush shapes are given in
Figure
Line color
A poly line routine displays a line in the current color by setting this color value in the
frame buffer at pixel locations along the line path using the set pixel procedure.
We set the line color value in PHlGS with the function
setPolylineColourIndex (lc)
Nonnegative integer values, corresponding to allowed color choices, are assigned to the
line color parameter lc
setLinetype(2);
setLinewidthScaleFactor(2);
setPolylineColourIndex (5);
polyline(n1,wc points1);
setPolylineColorIindex(6);
poly line (n2, wc points2);
This program segment would display two figures, drawn with double-wide dashed lines.
The first is displayed in a color corresponding to code 5, and the second in color 6.
Curve attributes
Parameters for curve attribute are same as those for line segments. Curves displayed with
varying colors, widths, dot –dash patterns and available pen or brush options
Various color and intensity-level options can be made available to a user, depending on
the capabilities and design objectives of a particular system
In a color raster system, the number of color choices available depends on the amount of
storage provided per pixel in the frame buffer
With the direct storage scheme, whenever a particular color code is specified in an
application program, the corresponding binary value is placed in the frame buffer for
each-component pixel in the output primitives to be displayed in that color.
A minimum number of colors can be provided in this scheme with 3 bits of storage per
pixel, as shown in Table
Color tables(Color Lookup Tables) are an alternate means for providing extended color
capabilities to a user without requiring large frame buffers
A user can set color-table entries in a PHIGS applications program with the function
Grayscale
With monitors that have no color capability, color functions can be used in an application
program to set the shades of gray, or grayscale, for displayed primitives. Numeric values
over the range from 0 to 1 can be used to specify grayscale levels, which are then
converted to appropriate binary codes for storage in the raster.
Intensity = 0.5[min(r,g,b)+max(r,g,b)]
Fill Styles
Areas are displayed with three basic fill styles: hollow with a color border, filled with a
solid color, or filled with a specified pattern or design. A basic fill style is selected in a
PHIGS program with the function
setInteriorStyle(fs)
Values for the fill-style parameter fs include hollow, solid, and pattern. Another value for
fill style is hatch, which is used to fill an area with selected hatching patterns-parallel
lines or crossed lines
The color for a solid interior or for a hollow area outline is chosen with where fill color
parameter fc is set to the desired color code
setInteriorColourIndex(fc)
Pattern Fill
We select fill patterns with setInteriorStyleIndex (pi) where pattern index parameter pi
specifies a table position
For example, the following set of statements would fill the area defined in the fillArea
command with the second pattern type stored in the pattern table:
SetInteriorStyle( pattern)
SetInteriorStyleIndex(2);
Fill area (n, points)
Character Attributes
The appearance of displayed character is controlled by attributes such as font, size, color
and orientation. Attributes can be set both for entire character strings (text) and for
individual characters defined as marker symbols
Text Attributes
The choice of font or type face is set of characters with a particular design style as
courier, Helvetica, times roman, and various symbol groups.
The characters in a selected font also be displayed with styles. (solid, dotted,
double) in bold face in italics, and in outline or shadow styles.
setTextFont(tf)
Control of text color (or intensity) is managed from an application program with
setTextColourIndex(tc)
where text color parameter tc specifies an allowable color code.
Text size can be adjusted without changing the width to height ratio of characters with
SetCharacterHeight (ch)
Parameter ch is assigned a real value greater than 0 to set the coordinate height of capital
letters
setCharacterSpacing(cs)
The orientation for a displayed character string is set according to the direction of the
character up vector
setCharacterUpVector(upvect)
Parameter upvect in this function is assigned two values that specify the x and y vector
components. For example, with upvect = (1, 1), the direction of the up vector is 45o and
text would be displayed as shown in Figure.
setTextPath (tp)
Where the text path parameter tp can be assigned the value: right, left, up, or down
Another handy attribute for character strings is alignment. This attribute specifies how
text is to be positioned with respect to the $tart coordinates. Alignment attributes are set
with
setTextAlignment (h,v)
where parameters h and v control horizontal and vertical alignment. Horizontal alignment
is set by assigning h a value of left, center, or right. Vertical alignment is set by assigning
v a value of top, cap, half, base or bottom.
Marker Attributes
A marker symbol is a single character that can he displayed in different colors and in
different sizes. Marker attributes are implemented by procedures that load the chosen
character into the raster at the defined positions with the specified color and size. We
select a particular character to be the marker symbol with
setMarkerType(mt)
where marker type parameter mt is set to an integer code. Typical codes for marker type
are the integers 1 through 5, specifying, respectively, a dot (.) a vertical cross (+), an
asterisk (*), a circle (o), and a diagonal cross (X).
setMarkerSizeScaleFactor(ms)
with parameter marker size ms assigned a positive number. This scaling parameter is
applied to the nominal size for the particular marker symbol chosen. Values greater than
1 produce character enlargement; values less than 1 reduce the marker size.
setPolymarkerColourIndex(mc)
A selected color code parameter mc is stored in the current attribute list and used to
display subsequently s pecified marker primitives
Bundled Attributes
The procedures considered so far each function reference a single attribute that specifies
exactly how a primitive is to be displayed these specifications are called individual
attributes.
A particular set of attributes values for a primitive on each output device is chosen by
specifying appropriate table index. Attributes specified in this manner are called bundled
attributes. The choice between a bundled or an unbundled specification is made by setting
a switch called the aspect source flag for each of these attributes
setIndividualASF( attributeptr, flagptr)
where parameter attributer ptr points to a list of attributes and parameter flagptr points to
the corresponding list of aspect source flags. Each aspect source flag can be assigned a
value of individual or bundled.
Entries in the bundle table for line attributes on a specified workstation are set with the
function
Example
setPolylineRepresentation(1,3,2,0.5,1)
setPolylineRepresentation (4,3,1,1,7)
A poly line that is assigned a table index value of 3 would be displayed using
dashed lines at half thickness in a blue color on work station 1; while on workstation
4, this same index generates solid, standard-sized white lines
Which defines the attributes list corresponding to fill index fi on workstation ws.
Parameter fs, pi and fc are assigned values for the fill style pattern index and fill color.
bundles values for text font, precision expansion factor size an color in a table position
for work station ws that is specified by value assigned to text index parameter ti.
That defines marker type marker scale factor marker color for index mi on
workstation ws.
Inquiry functions
Current settings for attributes and other parameters as workstations types and status in the
system lists can be retrieved with inquiry functions.
inquirePolylineIndex ( lastli) and
inquireInteriorcColourIndex (lastfc)
Copy the current values for line index and fill color into parameter lastli and lastfc.
2D TRANSFORMATION
http://www.tutorialspoint.com/computer_graphics/2d_transformation.htm Copyright © tutorialspoint.com
Transformation means changing some graphics into something else by applying rules. We can
have various types of transformations such as translation, scaling up or down, rotation, shearing,
etc. When a transformation takes place on a 2D plane, it is called 2D transformation.
Transformations play an important role in computer graphics to reposition the graphics on the
screen and change their size or orientation.
Homogenous Coordinates
To perform a sequence of transformation such as translation followed by rotation and scaling, we
need to follow a sequential process −
To shorten this process, we have to use 3×3 transformation matrix instead of 2×2 transformation
matrix. To convert a 2×2 matrix to 3×3 matrix, we have to add an extra dummy coordinate W.
In this way, we can represent the point by 3 numbers instead of 2 numbers, which is called
Homogenous Coordinate system. In this system, we can represent all the transformation
equations in matrix multiplication. Any Cartesian point PX, Y can be converted to homogenous
coordinates by P’ (X h , Y h , h).
Translation
A translation moves an object to a different position on the screen. You can translate a point in 2D
by adding translation coordinate (tx, ty) to the original coordinate X, Y to get the new coordinate
X ′, Y ′.
X’ = X + tx
Y’ = Y + ty
The pair (tx, ty) is called the translation vector or shift vector. The above equations can also be
represented using the column vectors.
[X] [X′ ] [ tx ]
[ Y] [ Y′ ] [ ty ]
P= p' = T=
We can write it as −
P’ = P + T
Rotation
In rotation, we rotate the object at particular angle θ theta from its origin. From the following figure,
we can see that the point PX, Y is located at angle φ from the horizontal X coordinate with distance
r from the origin.
Let us suppose you want to rotate it at the angle θ. After rotating it to a new location, you will get a
new point P’ X ′ , Y ′ .
Using standard trigonometric the original coordinate of point PX, Y can be represented as −
X = r cos ϕ. . . . . . (1)
Y = r sin ϕ. . . . . . (2)
{x}'= r \: cos \: \left ( \phi \: + \: \theta \right ) = r\: cos \: \phi \: cos \: \theta \: − \: r \: sin \: \phi \: sin \: \theta ....... (3)
{y}'= r \: sin \: \left ( \phi \: + \: \theta \right ) = r\: cos \: \phi \: sin \: \theta \: + \: r \: sin \: \phi \: cos \: \theta ....... (4)
x ′ = x cos θ − y sin θ
[X ′ Y ′ ] = [X ′ Y ′ ] [ cosθ
−sinθ ]
sinθ
cosθ
OR
P’ = P . R
Where R is the rotation matrix
R=
[ cosθ
−sinθ
sinθ
cosθ ]
The rotation angle can be positive and negative.
For positive rotation angle, we can use the above rotation matrix. However, for negative angle
rotation, the matrix will change as shown below −
R=
[ cos( − θ)
−sin( − θ)
sin( − θ)
cos( − θ) ]
=
[ cosθ
sinθ
−sinθ
cosθ ]
( ∵ cos( − θ) = cosθ and sin( − θ) = − sinθ)
Scaling
To change the size of an object, scaling transformation is used. In the scaling process, you either
expand or compress the dimensions of the object. Scaling can be achieved by multiplying the
original coordinates of the object with the scaling factor to get the desired result.
Let us assume that the original coordinates are X, Y, the scaling factors are (SX, SY), and the
produced coordinates are X ′ , Y ′ . This can be mathematically represented as shown below −
The scaling factor SX, SY scales the object in X and Y direction respectively. The above equations
can also be represented in matrix form as below −
X ′′
( ) = (Y )
Y X
[ ]
Sx
0 Sy
0
OR
P’ = P . S
Where S is the scaling matrix. The scaling process is shown in the following figure.
If we provide values less than 1 to the scaling factor S, then we can reduce the size of the object. If
we provide values greater than 1, then we can increase the size of the object.
Reflection
Reflection is the mirror image of original object. In other words, we can say that it is a rotation
operation with 180°. In reflection transformation, the size of the object does not change.
The following figures show reflections with respect to X and Y axes, and about the origin
respectively.
Shear
A transformation that slants the shape of an object is called the shear transformation. There are
two shear transformations X-Shear and Y-Shear. One shifts X coordinates values and other shifts
Y coordinate values. However; in both the cases only one coordinate changes its coordinates and
other preserves its values. Shearing is also termed as Skewing.
X-Shear
The X-Shear preserves the Y coordinate and changes are made to X coordinates, which causes the
vertical lines to tilt right or left as shown in below figure.
[ ]
1 0 0
X sh = shx 1 0
0 0 1
Y’ = Y
Y-Shear
The Y-Shear preserves the X coordinates and changes the Y coordinates which causes the
horizontal lines to transform into lines which slopes up or down as shown in the following figure.
The Y-Shear can be represented in matrix from as −
[ ]
1 shy 0
Ysh 0 1 0
0 0 1
Y’ = Y + Shy . X
X’ = X
Composite Transformation
If a transformation of the plane T1 is followed by a second plane transformation T2, then the result
itself may be represented by a single transformation T which is the composition of T1 and T2 taken
in that order. This is written as T = T1∙T2.
A combined matrix −
Translation
Scaling
Shearing
Rotation
Reflection
The change in the order of transformation would lead to different results, as in general matrix
multiplication is not cumulative, that is [A] . [B] ≠ [B] . [A] and the order of multiplication. The basic
purpose of composing transformations is to gain efficiency by applying a single composed
transformation to a point, rather than applying a series of transformation, one after another.
For example, to rotate an object about an arbitrary point (X p , Y p ), we have to carry out three steps
−
Geometric Transformations
Changes in size, shape are accomplished with geometric transformation. It alter the
coordinate descriptions of object.
The basic transformations are Translation, Roatation, Scaling. Other transformations are
Reflection and shear.Basic transformations used to reposition and resize the two dimentional
objects.
The translation distance pair (tx,ty) is called a translation vector or shift vector.
P= X1 P’= X1’ T= tx
X2 X2’ ty
P’=P+T p’ = X1+tx
X2+ty
It moves objects without deformation. (ie) Every point on the objet is translated by the
same amount. It can be applied to lines, polygons.
Rotation
A two dimensional rotation is applied to an object by repositioning it along a circular path in
the xy plane. To generate a rotation, we specify a rotation angle theta and the position (xr,yr)
of the rotation point ( or pivot point) about which the object is to be rotated.
Positive value of the rotation angle defines counter clock wise rotation.
Negative value of the rotation angle defines the clock wise rotation.
X’=xcosθ – y sinθ
Y’=xsinθ + y cosθ
It moves objects without deformations. Every point on an object is rotated through the same
angle.
Scaling
A scaling transformation alters the size of an object. This operation can be carried out for
polygon by multiplying the coordinate values (x,y) of each vertex by scaling factors sx and sy
to produce the transformed coordinates (x’,y’).
X’=x.sx
Y’=y.sy
P= X1 P’= X1’ S= sx 0
X2 X2’ 0 sy
P’=P*S
By choosing the position called fixed point, we can control the location of the scaled
object. This point is remain unchanged after the scaling transformation.
X’= Xf +(X-Xf)sx => X’= X.sx +(Xf(1-sx))
Y’=Yf+(Y-Yf)sy => Y’= Y.sy +Yf(1-sy)
P’=M1 *P +M2
P, P’ --> Column vectors.
M1 --> 2 x 2 array containing multiplicative factors
M2 --> 2 Element column matrix containing translation terms
For coordinate positions are scaled, then rotated then translated, these steps are combined
together into one step, final coordinate positions are obtained directly from the initial
coordinate values.
To do this expand the 2 x 2 matrix into 3 x 3 matrix.
To express 2 dimensional transformation as a multiplication, we represent each cartesion
coordinate position (x,y) with the homogeneous co ordinate triple (Xh,Yh, h) where
X= xh/h, Y=Yh/h
So we can write (h.x, h.y,h), set h=1. Each two dimensional position is represented
with homogeneous coordinates(x,y,1). Coordinates are represented with three element
column vector. Transformation operations are written as 3 by 3 matrices.
For translation
X’ 1 0 tx X
Y’ 0 1 ty Y
1 0 0 1 1
P’=T(tx,ty)*P
Composite transformations
- sequence of transformations is called as composite transformation. It is obtained by forming
products of transformation matrices is referred as a concatenation (or) composition of
matrices.
Tranlation : -
Two successive translations
1 0 tx 1 0 tx 1 0 tx1+tx2
0 1 ty 0 1 ty 0 1 ty1+ty2
Rotation
Two successive rotations are additive.
R(θ1)* R(θ2)= R(θ1+ θ2)
P’=P. R(θ1+ θ2)
Scaling
Sx1 0 0 Sx2 0 0 Sx1.x2 0 0
0 Sy1 0 0 Sy2 0 0 Sy1.y2 0
0 0 1 0 0 1 0 0 1
M1 M2
translate translate
scale scale
rotate rotate
scale (sx = sy) rotate
Concatenation properties
T(xr,yr).R(θ).T(-xr,-yr) = R(xr,yr, θ)
Matrix multiplication is associative. Transformation products may not be commutative.
Combination of translations, roatations, and scaling can be expressed as
X’ rSxx rSxy trSx X
Y’ rSyx rSyy trSy Y
1 0 0 1 1
Other transformations
Besides basic transformations other transformations are reflection and shearing
Reflection :
Reflection is a transformation that produces the mirror image of an object relative to an axis
of reflection. The mirror image is generated relative to an axis of reflection by rotating the
object by 180 degree about the axis.
Reflection about the line y=0 (ie about the x axis), the x-axis is accomplished with the
transformation matrix.
100
0 -1 0
001
It keeps the x values same and flips the y values of the coordinate positions.
Reflection about the y-axis
-1 0 0
010
001
It keeps the y values same and flips the x values of the coordinate positions.
Reflection relative to the coordinate origin.
-1 0 0
0 -1 0
001
Reflection relative to the diagonal line y=x , the matrix is
010
100
001
Reflection relative to the diagonal line y=x , the matrix is
0 -1 0
-1 0 0
001
Shear
A transformation that alter the shape of an object is called the shear transformation.
Two shearing transformations
1. Shift x coordinate values ( X- shear)
2. Shifts y coordinate values. (Y-shear)
In both cases only one coordinate ( x or y ) changes its coordinates and other preserves its
values.
X –Shear
It preserves the y value and changes the x value which causes vertical lines to tilt right or left
1 0 0
X-sh = shx 1 0
0 01
X’= X+shx*y
Y’=Y
Y –Shear
It preserves the x value and changes the y value which causes vertical lines to tilt right or left
1 shy 0
Y-sh = 0 1 0
001
Y’= Y+shy*X
X’=X
Tranlation : -
Two successive translations
1 0 tx 1 0 tx 1 0 tx1+tx2
0 1 ty 0 1 ty 0 1 ty1+ty2
001 001 001
M1 M2
translate translate
Scale Scale
Rotate Rotate
Scale(sx=sy) Rotate
General pivot point rotation
Rotation about any selected pivot point (xr,yr) by performing the following sequence of
translate – rotate – translate operations.
1 0 xr Cosθ -Sinθ 0 1 0 -xr
0 1 yr Sinθ Cosθ 0 0 1 -yr
001 0 0 1 001
T(xr,yr).R(θ).T(-xr,-yr) = R(xr,yr, θ)
Concatenation properties
Matrix multiplication is associative. Transformation products may not be commutative.
Combination of translations, roatations, and scaling can be expressed as
X’ rSxx rSxy trSx X
Y’ rSyx rSyy trSy Y
1 0 0 1 1
Affine transformations
Two dimensional geometric transformations are affine transformations. Ie they can be
expressed as a linear function of co-ordinates x and y . Affine transformations transform the
parallel lines to parallel lines and transform finite points to finite points . Geometric
transformations that do not include scaling or shear also preserve angles and lengths.
Two dimensional viewing The viewing pipeline A world coordinate area selected for
display is called a window. An area on a display device to which a window is mapped is
called a view port. The window defines what is to be viewed the view port defines where it is
to be displayed. The mapping of a part of a world coordinate scene to device coordinate is
referred to as viewing transformation. The two d imensional viewing transformation is
referred to as window to view port transformation of windowing transformation.
A viewing transformation using standard rectangles for the window and viewport
The viewing transformation in several steps, as indicated in Fig. First, we construct the scene
in world coordinates using the output primitives. Next to obtain a particular orientation for
CS6504 & Computer Graphics Unit I Page 10
Sri Vidya College of Engineering & Technology, Virudhunagar Course Material (Lecture Notes)
2. Translate the scaled window area to the position of view port. Relative proportions of
objects are maintained if scaling factor are the same(Sx=Sy).
Otherwise world objects will be stretched or contracted in either the x or y direction when
displayed on output device. For normalized coordinates, object descriptions are mapped to
various display devices. Any number of output devices can be open in particular application
and another window view port transformation can be performed for each open output device.
This mapping called the work station transformation is accomplished by selecting a window
area in normalized apace and a view port are in coordinates of display device.
2. Object and window are scaled until the window has the dimensions of the viewport
3. Translate the viewport to its correct position on the screen.
YV-Yvmin YW-YWmin
-------------- = ----------------
YVmax-YVmin YWmax-YWmin
XV=XVmin + (XW-XWwmin)Sx
YV=YVmin + (YW-YWmin)Sy
XVmax-XVmin
Sx= --------------------
XWmax-Xwmin
YVmax-YVmin
Sy= --------------------
YWmax-YWmin
2D Clipping
The procedure that identifies the portion of a picture that are either inside or outside of a
specified regin of space is referred to as clipping. The regin against which an object is to be
clipped is called a clip window or clipping window.
The clipping algorithm determines which points, lines or portions of lines lie within the
clipping window. These points, lines or portions of lines are retained for display. All other are
discarded.
Possible clipping are
1. Point clipping
2. Line clipping
3. Area clipping
4. Curve Clipping
5. Text Clipping
Point Clipping:
The points are said to be interior to the clipping if
XWmin <= X <=XW max
YWmin <= Y <=YW max
The equal sign indicates that points on the window boundary are included within the window.
Line Clipping:
- The lines are said to be interior to the clipping window, if the two end points of the lines are
interior to the window.
- If the lines are completely right of, completely to the left of, completely above, or
completely below the window, then it is discarded.
- Both end points of the line are exterior to the window, then the line is partially inside and
partially outside the window.The lines which across one or more clipping boundaries requires
calculation of multiple intersection points to decide the visible portion of them.To minimize
the intersection calculation and increase the efficiency of the clipping algorithm, initially
completely visible and invisible lines are identified and then intersection points are calculated
for remaining lines.
There are many clipping algorithms. They are
1.Sutherland and cohen subdivision line clipping algorithm
It is developed by Dan Cohen and Ivan Sutharland. To speed up the processing this algorithm
performs initial tests that reduces the number of intersections that must be calculated.
given a line segment, repeatedly:
1. check for trival acceptance
both
2. check for trivial rejection
(the sign bit being the most significant bit in the binary representation of the value. This bit is
'1' if the number is negative, and '0' if the number is positive.)
The frame buffer itself, in the center, has code 0000.
1001 | 1000 | 1010
-------------------------
0001 | 0000 | 0010
-------------------------
0101 | 0100 | 0110
For each line segment:
1. each end point is given the 4-bit code of its region
2. repeat until acceptance or rejection
1. if both codes are 0000 -> trivial acceptance
2. if logical AND of codes is not 0000 -> trivial rejection
3. divide line into 2 segments using edge of clip rectangle
1. find an endpoint with code not equal to 0000
2. lines that cannot be identified as completely inside or outside are checked for the
intersection with two boundaries.
3. break the line segment into 2 line segments at the crossed edge
4. forget about the new line segment lying completely outside the clip rectangle
5. draw the line segment which lies within the boundary regin.
b. If the region codes for endpoints are not zero and the logical ANDing of them is also
nonzero then the line is completely invisible, so reject the line and go to step6
c. If region codes for two end points do not satisfy the condition in 4a and 4b the line is
partially visible.
5. Divide the partially visible line segments in equal parts and repeat steps 3 through 5 for
both subdivided line segments until you get completely visible and completely invisible line
segments.
6. Stop.
This algorithm requires repeated subdivision of line segments and hence many times it is
slower than using direct calculation of the intersection of the line with the clipping window
edge.
3. Liang-Barsky line clipping algorithm
The cohen Sutherland clip algorithm requires the large no of intesection calculations.here this
is reduced. The update parameter requires only one division and windows intersection lines
are computed only once.
The parameter equations are given as
X=x1+ux, Y=Y1 + uy
0<=u<=1, where x =x2-x1 , uy=y2-y1
Algorithm
1. Read the two end points of the line p1(x,y),p2(x2,y2)
2. Read the corners of the window (xwmin,ywmax), (xwmax,ywmin)
3. Calculate the values of the parameter p1,p2,p3,p4 and q1,q2,q3,q4m such that
4. p1= x q1=x1-xwmin
Else
{
Check whether the line is horizontal or vertical and check the line endpoint with the
corresponding boundaries. If it is within the boundary area then use them to draw a line.
Otherwise use boundary coordinate to draw a line. Goto stop.
}
6. initialize values for U1 and U2 as U1=0,U2=1
7. Calculate the values forU= qi/pi for I=1,2,3,4
8. Select values of qi/pi where pi<0 and assign maximum out of them as u1
9. If (U1<U2)
{
Calculate the endpoints of the clipped line as follows
XX1=X1+u1 x
XX2=X1+u 2x
YY1=Y1+u1 y
YY2=Y1+u 2y
}
10.Stop.
4. Nicholl-lee Nicholl line clipping
It Creates more regions around the clip window. It avoids multiple clipping of an individual
line segment. Compare with the previous algorithms it perform few comparisons and
divisions . It is applied only 2 dimensional clipping. The previous algorithms can be extended
to 3 dimensional clipping.
1. For the line with two end points p1,p2 determine the positions of a point for 9 regions.
Only three regions need to be considered (left,within boundary, left upper corner).
2. If p1 appears any other regions except this, move that point into this region using some
reflection method.
3. Now determine the position of p2 relative to p1. To do this depends on p1 creates some
new region.
a. If both points are inside the region save both points.
b. If p1 inside , p2 outside setup 4 regions. Intersection of appropriate boundary is
calculated depends on the position of p2.
c. If p1 is left of the window, setup 4 regions . L, Lt,Lb,Lr
1. If p2 is in region L, clip the line at the left boundary and save this intersection to p2.
2. If p2 is in region Lt, save the left boundary and save the top boundary.
3. If not any of the 4 regions clip the entire line.
d. If p1 is left above the clip window, setup 4 regions . T, Tr,Lr,Lb
1. If p2 inside the region save point.
2. else determine a unique clip window edge for the intersection calculation.
e. To determine the region of p2 compare the slope of the line to the slope of the
boundaries of the clip regions.
2. End points of the line with circle center distance is calculated . If the squre of the 2 points
less than or equal to the radious then save the line else calculate the intersection point of the
line.
Polygon clipping
Splitting the concave polygon
It uses the vector method , that calculate the edge vector cross products in a counter clock
wise order and note the sign of the z component of the cross products. If any z component
turns out to be negative, the polygon is concave and we can split it along the line of the first
edge vector in the cross product pair.
The Sutherland –Hodgeman polygon clipping algorithm clips convex polygons correctly, But
in case of concave polygons clipped polygon may be displayed with extraneous lines. It can
be solved by separating concave polygon into two or more convex polygons and processing
each convex polygons separately.
The following example illustrate a simple case of polygon clipping.
Instead of proceding around the polygon edges as vertices are processed, we sometime wants
to follow the window boundaries.For clockwise processing of polygon vertices, we use the
following rules.
- For an outside to inside pair of vertices, follow the polygon boundary.
- For an inside to outside pair of vertices, follow a window boundary in a clockwise direction.
Curve Clipping
It involves non linear equations. The boundary rectangle is used to test for overlap with a
rectangular clipwindow. If the boundary rectangle for the object is completely inside the
window , then save the object (or) discard the object.If it fails we can use the coordinate
extends of individual quadrants and then octants for preliminary testing before calculating
curve window intersection.
Text Clipping
The simplest method for processing character strings relative to a window boundary is to use
the all or none string clipping strategy. If all the string is inside then accept it else omit it.
We discard only those character that are not completely inside the window. Here the
boundary limits of individual characters are compared to the window.
Exterior clipping
The picture part to be saved are those that are outside the region. This is referred to as
exterior clipping. An application of exterior clipping is in multiple window systems.
Objects within a window are clipped to the interior of that window. When other higher
priority windows overlap these objects , the ojects are also clipped to the exterior of the
overlapping window.
Oct 6-8, 2003 CMPT-361 : Hamid Younesy 1 Oct 6-8, 2003 CMPT-361 : Hamid Younesy 2
Oct 6-8, 2003 CMPT-361 : Hamid Younesy 3 Oct 6-8, 2003 CMPT-361 : Hamid Younesy 4
Is point (x,y) inside the clip window? Find the part of a line inside the clip window
Oct 6-8, 2003 CMPT-361 : Hamid Younesy 5 Oct 6-8, 2003 CMPT-361 : Hamid Younesy 6
1
Line Segment Clipping (2) Line Segment Clipping (3)
Endpoints: Good approach will find eliminate trivial acceptances
if both endpoints are within the clipping rectangle, the line or rejections quickly and devote time to those lines
is completely inside (trivially accepted) which actually intersect the clipping rectangle.
Oct 6-8, 2003 CMPT-361 : Hamid Younesy 7 Oct 6-8, 2003 CMPT-361 : Hamid Younesy 8
Oct 6-8, 2003 CMPT-361 : Hamid Younesy 11 Oct 6-8, 2003 CMPT-361 : Hamid Younesy 12
2
Cyrus-Beck Algorithm Cyrus-Beck Algorithm (2)
Find t such that
We wish to optimize line/line intersection P1
NL . [P(t) - PL] = 0 PL
P(t)-PL
Start with parametric equation of line:
P(t) = P0 + (P1 - P0) t NL = (0, 1)
P(t)
Inside
And a point and normal for each edge P0
PL, NL NL = (-1, 0) NL = (1, 0) NL
Compute t for line intersection with all four edges Compute PE with largest t (maxPE)
Compute PL with smallest t (minPL)
Discard all (t < 0) and (t > 1)
if (maxPE < min PL) Clip to these two points
Classify remaining intersections as
else reject the line
Potentially Entering (PE): NL . [P1 - P0] < 0
NL = (0, 1)
Potentially Leaving (PL): NL . [P1 - P0] > 0
P1
PL
PL
NL = (-1, 0)
NL = (1, 0)
PE
PE
P0
NL = (0, -1)
Oct 6-8, 2003 CMPT-361 : Hamid Younesy 15 Oct 6-8, 2003 CMPT-361 : Hamid Younesy 16
3
Polygon Clipping Polygon Clipping (2)
Find the part of a polygon inside the clip window
Oct 6-8, 2003 CMPT-361 : Hamid Younesy 19 Oct 6-8, 2003 CMPT-361 : Hamid Younesy 20
Basic routine:
Go around polygon one vertex at a time
Do inside test for each point in sequence,
Insert new points when cross window boundary,
Remove points outside window boundary
Oct 6-8, 2003 CMPT-361 : Hamid Younesy 21 Oct 6-8, 2003 CMPT-361 : Hamid Younesy 22
Oct 6-8, 2003 CMPT-361 : Hamid Younesy 23 Oct 6-8, 2003 CMPT-361 : Hamid Younesy 24
4
3D Clipping: Point-to-Plane test 3D Clipping: Line-Plane Intersections
A very general test to determine if a point p is “inside” a plane P,
Edge intersects plane P where E(t) is on P
defined by point q and normal n:
q is a point on P
(p - q) • n < 0: p inside P
(p - q) • n = 0: p on P n is normal to P
(p - q) • n > 0: p outside P
(L(t) - q) • n = 0
5
Computergraphik 1 – Textblatt engl-03 Vs. 10
Werner Purgathofer, TU Wien
2D-Viewing
█ 2D Viewing Pipeline
The term Viewing Pipeline describes a series of transformations, which are passed by geometry data to end
up as image data being displayed on a device. The 2D viewing pipeline describes this process for 2D data:
norm.
object- construction world- definition of viewing- projection onto device- transformation device
coord. of objects coord. mapping region coord. unity image coord. to specific coord.
and scenes + orientation region device
The coordinates in which individual objects (models) are created are called model (or object) coordinates.
When several objects are assembled into a scene, they are described by world coordinates.
After transformation into the coordinate system of the camera (viewer) they become viewing coordinates.
Their projection onto a common plane (window) yields device-independent normalized coordinates.
Finally, after mapping those normalized coordinates to a specific device, we get device coordinates.
█ Window-Viewport Transformation
A window-viewport transformation describes
the mapping of a (rectangular) window in one
coordinate system into another (rectangular)
window in another coordinate system. This
transformation is defined by the section of the
original image that is transformed (clipping
window), the location of the resulting window
(viewport), and how the window is translated,
scaled or rotated.
The following derivation shows how easy this transformation generally is (i.e. without rotation):
The transformation is linear in x and y, and (xwmin/ywmin) (xvmin/yvmin), (xwmax/ywmax) (xvmax/yvmax) .
For a given point (xw/yw) which is transformed to (xv,yv), we get:
xw = xwmin + λ(xwmax-xwmin) where 0<λ<1 => xv = xvmin + λ(xvmax -xvmin)
Calculating λ from the first equation and substituting it into the second yields:
xv = xvmin + (xvmax – xvmin)(xw – xwmin)/(xwmax – xwmin) = xw(xvmax – xvmin)/(xwmax – xwmin) + tx
where tx is constant for all points, as is the factor sx = (xvmax – xvmin)/(xwmax – xwmin).
Processing y analogically, we get an ordinary linear transformation: xv = sxxw + tx, yv = syyw + ty,
The chapter “Transformations” describes, how such transformations can be notated even simpler.
█ Line Clipping
Clipping is the method of cutting away parts
of a picture that lie outside the displaying
window (see also picture above). The earlier
clipping is done within the viewing pipeline,
the more unnecessary transformations of
parts which are invisible anyway can be
avoided:
5
- in world coordinates, which means analytical calculation as early as possible,
- during raster conversion, i.e. during the algorithm, which transforms a graphic primitive to points,
- per pixel, i.e. after each calculation, just before drawing a pixel.
Since clipping is a very common operation it has to be performed simply and quickly.
█ Polygon Clipping
When clipping a polygon we have to make sure, that the result is one
single polygon again, even if the clipping procedure cuts the original
polygon into more than one piece. The upper figure shows a polygon
clipped by a line clipping algorithm. Afterwards it is not decidable
what is inside and what is outside the polygon. The lower figure
shows the result of a correct polygon clipping procedure. The
polygon is divided into several pieces, each of which can be filled
correctly.
6
There are 4 different cases how an edge (V1, V2) can be located relative to an edge of the window. Thus,
each step of the sequential procedure yields one of the following results:
1. out→in (output V’1, V2) 2. in→in (output V2) 3. in→out (output V’1) 4. out→out (no output)
When cutting a polygon to pieces, this procedure creates connecting edges along the clipping window’s
borders. In such cases, a final verification respectively post-processing step may be necessary.
7
█ Text Clipping
At first glance clipping of text seems to be trivial, however, one little point has to be kept in mind:
Depending on the way the letters are created it can happen, that either only text is displayed that is fully
readable (i.e. all letters lie completely inside the window), or that text is clipped letter by letter (i.e. all
letters disappear that do not lie completely inside the window), or that text is clipped correctly (i.e. also half
letters can be created).
8
ELECTIVE – II ES2-1: MULTIMEDIA TECHNOLOGY
Visual Display Systems: Introduction, cathode Ray Tube (CRT), Video Adapter Card, Video
Adapter cable, Liquid Crystal Display (LCD), Plasma Display Panel (PDP).
UNIT II:
Text: Introduction, Types of Text, Unicode Standard, Font, Insertion of Text, Text
compression, File Formats.
Image: Introduction, Image Types, Seeing colors, color models, Basic steps for Image
processing, Scanner, Digital camera, Interface Standards, Image processing software, File
formats, Image output on monitor, Image output on printer.
UNIT III:
UNIT IV:
Video: Introduction, Analog video camera, Transmission of video signals, Video signal
format, Digital video, Digital Video Standards, PC Video, Video File Format and CODECs,
Video editing, Video editing software.
UNIT V:
Plaintext, consisting of fixed sized characters having essentially the same type of
appearance.
Formatted text, where appearance can be changed using font parameters
Hypertext, which can serve to link different electronic documents and enable the user to
jump from one to the other in a non-linear way.
Internally text is represented via binary codes as per the ASCII table. The ASCII table is
however quite limited in its scope and a new standard has been developed to eventually replace
the ASCII standard. This standard is called the Unicode standard and is capable of representing
international characters from various languages throughout the world.
We also generate text automatically from a scanned version of a paper document or image
using Optical Character Recognition (OCR) software.
TYPES OF TEXT:
There are three types of text that can be used to produce pages of a document:
Unformatted text
Formatted text
Hypertext
I. Unformatted Text:
Also known as plaintext, this comprise of fixed sized characters from a limited character
set. The character set is called ASCII table which is short for American Standard Code for
Information Interchange and is one of the most widely used character sets. It basically consists of
a table where each character is represented by a unique 7-bit binary code. The characters include
a to z, A to Z, 0 to 9, and other punctuation characters like parenthesis, ampersand, single and
double quotes, mathematical operators, etc. All the characters are of the same height. In addition,
the ASCII character set also includes a number of control characters. These include BS
(backspace), LF (linefeed), CR (carriage return), SP (space), DEL (delete), ESC (escape), FF
(form feed) and others.
Formatted text are those where apart from the actual alphanumeric characters,
other control characters are used to change the appearance of the characters, e.g. bold,
underline, italics, varying shapes, sizes, and colors etc., Most text processing software use
such formatting options to change text appearance. It is also extensively used in the
publishing sector for the preparation of papers, books, magazines, journals, and so on.
III. Hypertext:
The term Hypertext is used to mean certain extra capabilities imparted to normal or
standard text. Like normal text, a hypertext document can be used to reconstruct knowledge
through sequential reading but additionally it can be used to link multiple documents in such
a way that the user can navigate non-sequentially from one document to the other for cross-
references. These links are called hyperlinks.
The underlined text string on which the user clicks the mouse is called an anchor
and the document which opens as a result of clicking is called the target document. On the
web target documents are specified by a specific nomenclature called Web site address
technically known as Uniform Resource Locators or URL.
Node or Anchor:
The anchor is the actual visual element (text) which provides an entry point to another
document. In most cases the appearance of the text is changed from the surrounding text to
designate a hypertext, e.g. by default it is colored blue with an underline. Moreover the mouse
pointer changes to a finger icon when placed over a hypertext. The user usually clicks over the
hypertext in order to activate it and open a new document in the document viewer. In some cases
instead of text an anchor can be an image, a video or some other non-textual element
(hypermedia).
Pointer or Link
These provide connection to other information units known as target documents. A link
has to be defined at the time of creating the hyperlink, so that when the user clicks on an anchor
the appropriate target document can be fetched and displayed. Usually some information about
the target document should be available to the user before clicking on the anchor. If the
destination is a text document, a short description of the content can be represented.
UNICODE STANDARD:
The Unicode standard is a new universal character coding scheme for written
characters and text. It defines a consistent way of encoding multilingual text which enables
textual data to be exchanged universally. The Unicode standard goes far beyond ASCII‘s limited
capability by providing the capacity of encoding more than 1 million characters. The Unicode
standard draws a distinction between characters, which are the smallest component of written
language, and glyphs, which represent the shapes, the characters can have when displayed.
Some of the languages and their corresponding codes are: Latin (00), Greek (03),
Arabic (06), Devanagari/Bengali (09), Oriya/Tamil (0B), etc. Several methods have been
suggested to implement Unicode based on variations in storage space and compatibility. The
mapping methods are called Unicode Transformation Formats (UTF) and Universal
Character Set (UCS). Some of the major mapping methods are:
a) UCS-4,UTF-32
Uses 32-bit for each character. The simplest scheme as it consists of fixed length
encoding, how it is not efficient with regard to storage space and memory usage, and therefore
rarely used. Initially the UCS-4 was proposed with a possible address range of 0 to
FFFFFFFFFF, but Unicode requires only upto 10FFFF.
b) UTF-16
A 16-bit encoding format. In its native format it can encode numbers upto FFFF, i.e, as
xxxxxxx xxxxxxx. For codings beyond this, the original number is expressed as a
combination of two 16-bit numbers.
c) UTF-8
The bits of a Unicode character is divided into a series of 8-bit numbers. The output code
against various ranges of input codes are given in Table 4.1
Code range Input code Output code
1) Using a keyboard
The most common process of inserting text into a digital document is by typing
the text using an input device like the keyboard. Usually a text editing software, like
Microsoft Word, is used to control the appearance of text which allows the user to
manipulate variables like the font, size, style, color, etc.,
Another way of inserting text into a document is by copying text from a pre-
existing digital document. The existing document is opened using the corresponding text
processing program and portions of the text may be selected by using the keyboard or
mouse. Using the Copy command the selected text is copied to the clipboard. By
choosing the Paste command, whereupon the text is copied from the clipboard into the
target document.
A third way of inserting text into a digital document is by scanning it from a paper
document. Text in a paper document including books, newspapers, magazines, letterheads,
etc. can be converted into the electronic form using a device called the scanner. The
electronic representation of the paper document can then be saved as a file on the hard disk
of the computer. To be able to edit the text, it needs to be converted from the image format
into the editable text format using software called an Optical Character Recognition (OCR).
The OCR software traditionally works by a method called pattern matching. Recent
research on OCR is based on another technology called feature extraction.
TEXT COMPRESSION:
Large text documents covering a number of pages may take a lot of disk space.
We can apply compression algorithms to reduce the size of the text file during storage. A reverse
algorithm must be applied to decompress the file before its contents can be displayed on screen.
There are two types of compression methods that are applied to text as explained:
a. Huffman Coding:
FILE FORMATS:
The following text formats are usually used for textual documents.
TXT (Text)
PostScript (PS)
Postscript is a page description language used mainly for desktop publishing. A page
description language is a high-level language that can describe the contents of a page such that
it can be accurately displayed on output devices usually a printer. A PostScript interpreter inside
the printer converted the vercors backi into the raster dots to be printed. This allows arbitrary
scaling, rotating and other transformations.
IMAGES: INTRODUCTION
The pictures that we see in our everyday life can be broadly classified into two groups:
Images
Graphics
Images can either be pure black and white, or grayscale having a number of grey shades, or color
containing a number of color shades. Color is a sensation that light of different frequencies
generates on our eyes, the higher frequencies producing the blue end and the lower frequencies
producing the red end of the visible spectrum. White light is a combination of all the colors of
the spectrum. To recognize and communicate color information we need to have color models.
To recognize and communicate color information we need to have color models. The two most
well known color models are the RGB model used for colored lights like images on a monitor
screen, and the CMYK model used for colored inks like images printed on paper. One of the
most well known device independent color model is the HSB Model where the primaries are
hue, saturation and brightness. The total range of colors in a color model is known is its gamut.
The input stage deals with the issues of converting hardcopy paper images into electronic
versions. This is usually done via a device called the scanner. While scanners are used to digital
documents, another device called the digital camera can convert a real world scene into a digital
image. Digital camera can also contain a number of these electronic sensors which are known as
Charge-Couple Devices (CCD) and essentially operate on the same principle as the scanner.
This is the editing stage and involves operations like selecting, copying, scaling, rotating,
trimming, changing the brightness, contrast color tones, etc. of an image to transform it as per the
requirements of the application.The output stage involves saving the transformed image in a file
format which can be displayed on the monitor screen or printed on a printer. To save the image,
it is frequently compressed by a compression algorithm is ued the final image can be saved into a
variety of file formats.
IMAGE TYPES:
Images that we see in our everyday lives can be categorized into various types.
The typical images that we usually come across are the pictures that have been
printed on paper or some other kinds of surfaces like plastic, cloth, wood, etc. These are also
called hard copy images because they have been printed on solid surfaces. Such images have
been transformed from hard copy images or real objects into the electronic form using
specialized procedures and are referred to as soft copy images.
Photographs are also known as continuous tone images because they are usually
composed of a large number of varying tones or shades of colors. Sometimes due to
limitations of the display or printed devices, all the colors of the photograph cannot be
represented adequately. In those cases a subset of the total number of colors of displayed.
Such images are called partial tone or half-tone images. A third category of images is called
bitonal images which uses only two colors, typically black and white, and do not use any
shades of grey.
SEEING COLOR:
The Phenomenon of seeing color is dependent on a triad of factors: the nature of light, the
interaction of light and matter, and the physiology of human version. Light is a form of energy
known as electromagnetic radiation. It consists of a large number of waves with varying
frequencies and wavelengths. Out of the total electromagnetic spectrum a small range of waves
cause sensations of light in our eyes. This is called the visible spectrum of waves.
The second part of the color triad is human vision. The retina is the light-sensitive part of
the eye and its surface is composed of photoreceptors or nerve endings.
The third factor is the interaction of light with matter. Whenever light waves strike an
object, part of the light energy gets absorbed and /or transmitted, while the remaining part gets
reflected back to our eyes.
COLOR MODELS:
Researchers have found out that most of the colors that we see around us can be
derived from mixing a few elementary colors. These elementary colors are known as primary
colors. Primary colors mixed in varying proportions produce other colors called composite
colors. Two primary colors mixed in equal proportions produce a secondary color. The primary
colors along with the total range of composite colors they can produce constitute a color model.
a) RGB Model
The RGB color model is used to describe behavior of colored lights like those
emitted from a TV screen or a computer monitor. This model has three primary colors:
red, green, blue, in short RGB.
The RGB model is only valid for describing behavior of colored lights. This new
model is named CMYK model and is used to specify printed colors. The primary colors
of this model are cyan, magenta and yellow. These colors when mixed together in equal
proportions produce black, due to which the model is known as a subtractive model.
Mixing cyan and magenta in equal proportions produce blue, magenta and yellow
produce red, and yellow and cyan produce green. Thus, the secondary colors of the
CMYK model are the same as the primary colors of the RGB model and vice versa.
These two models are thus, known as complimentary models.
It is to be noted that both the RGB and the CMYK models do not have universal
or absolute color values. But different devices will give rise to slightly different sets of
colors. For this reason both the RGB and the CMYK models are known as device
dependent color models.
Another issue of concern here is the total range of colors supported by each color
model. This is known as the gamut of the model.
Image processing is the name given to the entire process involved with the input, editing
and output of images from a system. There are three basic steps:
a. Input
Image input is the first stage of image processing. It is concerned with getting
natural images into a computer system for subsequent work. Essentially it deals with the
conversion of analog images into digital forms using two devices. The first is the scanner
which can convert a printed image or document into the digital form. The second is the
digital camera which digitizes real-world images, similar to how a conventional camera
works.
b. Editing
After the images have been digitized and stored as files on the hard disk of a
computer, they are changed or manipulated to make them more suitable for specific
requirements. This step is called editing. Before the actual editing process can begin, and
important step called color calibration needs to be performed to ensure that the image
looks consistent when viewed on multiple monitors.
c. Output
Image output is the last stage in image processing concerned with displaying the
edited image to the user. The image can either be displayed in a stand-alone manner or as
part of some application like a presentation or web-page.
SCANNER
For images, digitization involves physical devices like the scanner or digital
camera. The scanner is a device used to convert analog images into the digital form. The most
common type of scanner for the office environment is called the flatbed scanner. The traditional
way of attaching a scanner to the computer is through an interface cable connected to the
parallel port of the PC.
The voltage signals are temporarily stored in a buffer inside the scanner. The next step
called quantization involves representing the voltage pulses as binary numbers and carried out
by an ADC inside the scanner in conjuction with a software bundled with the scanner called the
scanning software.
Since each number has been derived from the intensity of the incident light, these
essentially represent brightness values at different points of the image and are known as pixels.
Scanner Types:
Scanners can be of various types each designed for specific purposes.
a. Flatbed scanners:
The flatbed scanner is the most common type in office environments and has been
described above. It looks like a photocopying machine with a glass panel on which the
document to be scanned is placed face down. Below the glass panel is a moving head
with a source of white light usually xenon lamps.
b. Drum Scanners:
Drum Scanner is used to obtain good quality scans for professional purposes and
generally provides a better performance than flatbed scanners. It consists of a cylindrical
drum made out of a highly translucent plastic like material. The fluid can either be oil-
based or alcohol-based. For the sensing element, drum scanners use a Photo-Multiplier
Tube (PMT) instead of a CCD. An amplifier gain of the order of 108 can be achieved in
multipliers containing about 14 dynode, which can provide measurable pulses from even
single photons.
c. Bar-code Scanners:
d. Color Scanning
Since the CCD elements are sensitive to the brightness of the light, the pixels
essentially store only the brightness information of the original image. This is also known as
luminance (or luma) information. To include the color or chrominance (or chroma)
information, there are three CCD elements for each pixel of image formed. White light
reflected off the paper document is split into the primary color components by a glass prism
and made to fall on the corresponding CCD sub-components.
e. Pixel Information:
To describe a color digital image, the pixels need to contain both the luma and the
chroma values, i.e. the complete RGB information of each color. To represent the orange
color we write: R=245 (96% of 255), G=102 (40% of 255), B=36 (14% of 255). This is
called a RGB triplet and notation for making it more compact, e.g. given below. These
values are also called RGB attributes of a pixel.
f. Scan quality:
The quality of a scanned image is determined mostly by its resolution and color
depth. The scanner resolution pertains to the resolution of the CCD elements inside a
scanner measured in dots per inch (dpi). Scanner resolution can be classified into two
categories; the optical resolution refers to the actual number of sensor elements per inch on
the scan head. Scanners however are often rated with resolution values higher than that of the
optical resolution e.g. 5400, 7200 or 9600dpi. These resolutions are called interpolated
resolutions and basically involve an interpolation process for generating new pixel values.
g. Scanning Software:
To scan an image, the user needs a scanning software to be installed on the computer
as in (fig) given below. The software lets the user interact with the scanner and set
parameters like bit depth and resolution. A typical scanning software should allow the user to
do the following:
i. Set the bit depth of the image file, which in turn determines the total number of
colors.
ii. Set the output path of the scanned image.
iii. Set the file type of the scanned image. Most scanners nowadays suppor the
standard file types like DMP, JPG, TIFF, etc.
iv. Adjust the brightness and contrast parameters usually by dragging sliders.
v. Change the size of the image by specifying a scale factor.
vi. Adjust the color of the scanned image by manipulating the amounts of red, green
and blue primaries.
vii. Adjust the resolution value.
The ‗final‘ button instructs the scanner to save the updated pixel values in a file
whose type and location have been previously specified.
DIGITAL CAMERA:
Apart from the scanner used to digitize paper documents and film, another device
used to digitize real world images is the digital camera. Unlike a scanner a digital camera is
usually not attached to the computer via a cable. The camera has its own storage facility inside it
usually in the form of a floppy drive, which can save the image created into a floppy disc. So
instead they are compressed to reduce their file sizes and stored usually in the JPEG format.
This is a lossy compression technique and results in slight loss in image quality.
Most of the digital cameras have an LCD screen at eh back, which serve now
important purposes: first it can be used as a viewfinder for composition and adjustment; secondly
it can be used for viewing the images stored inside the camera. The recent innovation of built-in
microphones provides for sound annotation, in standard WAV format. After recording, this
sound can be sent to an external device for playback on headphones using an ear socket.
Digital cameras also have a software utility resident in a ROM chip inside it which
allow the user to toggle between the CAMERA mode and PLAY mode. In the PLAY mode
the user is presented with a menu structure having some fo the functionalities like: displaying
all the images on the floppy , selecting a particular image, deleting selected images, write-
protecting the important image for deletion, setting the date and time, displaying how much
of the floppy disk space is free and even allowing a floppy to be formatted in the drive.
INTERFACE STANDARDS:
Interface standards determine how data from acquisition devices like scanners and
digital cameras flow to the computer in an efficient way. Refer fig.5.15. Two main interface
standards exists: TWAIN and ISIS.
i. TWAIN:
The second important standard for document scanner is the Image and Scanner
Interface Specification (ISIS). It was developed by Pixel Translations and they retain control
over its development and licensing. ISIS has a wider set of features than TWAIN and
typically uses the SCSI-2 interface while TWAIN mostly uses the USB interface. Currently
ISIS compatible drivers are available for more than 250 scanner models most of them
certified by Pixel Translations.
i) Selection Tools:
Selection Tools enables us to select a specific potion out of an image and manipulate it or
copy it to another image. The selection border may be geomentrical in shape like rectangular,
circular, polygonal and may be irregular in shape. Selection may also be done based on color instead
of shapes.fig 5.22
These tools are used to paint lines, shapes, etc. or fill regions with specified colors.
The colors are chosen from a color palette or specified by their RGB values.fig 5.23
Gradient Tools are used to create smooth blends of multiple colors. Gradients may be
of various shapes like linear, radial, diamond-shaped, etc.fig 5.25
v) Clone Tools
Clone Tools are used to create multiple copies of specific features in an image.
They are also used to select specific patterns and apply them repeatedly over an
image. Fig5.26
These tools are used to transform specific portions of an image in various ways
like moving, rotating, scaling, skewing, distorting, etc. fig 5.27
These tools are used to change brightness/contrast of the image as well as color hues.
Specific portions of the image may be desaturated, i.e. converted to grayscale. Parts of
the image may also be blurred or sharpened. Fig 5.28
These tools allow the user to include text in various styles and sizes. The text may
have different colors and orientations. Fig 5.29
x) Indexed color
The term refers to a type of images usually with a limited number of color values e.g.
256. A color lookup table (CLUT) is used to store and index the color values of the
image. Within the image file, instead of storing the actual RGB values, the index number
of the row containing the specific color value is stored.
FILE FORMATS:
Images may be stored in a variety of file formats. Each file format is characterized
by a specific compression type and color depth. The choice of file formats would depend on the
final image quality required and the import capabilities of the authoring system. The most
popular file formats are:
1) BMP (Bitmap)
Graphics Interchange Format (GIF) is the file format commonly used to display
indexed color graphics and images in hypertext markup language (HTML) document
over the World Wide Web and other online services.
6) PICT (Picture)
PICT format is widely used among Mac OS graphics and page-layout applications as
an intermediatary file format for transferring images between applications. PICT format is
especially effective at compression images with large areas of solid color.
7) TGA (Targa)
Targa (TGA) format is designed for systems using the True vision video board and is
commonly supported by MS-DOS color applications. This format supports 24-bit RGB
images.
Photoshop (PSD) format is a default file format used in the Adobe Photoshop
package and the only format supporting all available image modes.
The image pixels are actually strings of binary numbers and therefore may be
referred to as logical pixels. When the images are displayed on the monitor however, the logical
pixels are directly mapped on to the phosphor dots of the monitor, which may be referred to as
physical pixels.
On the other hand if the image resolution decreases to 30ppi, internally 1 inch of the
image will consist of 30 logical pixels. The monitor resolution in this case is more than the
image resolution and makes the image look smaller.
Let us consider a 15‖ monitor which displays 640 pixels horizontally and 480
pixels vertically. An image with pixel dimensions of 640X480 would fill up the entire screen. If
the viewing mode of the 20‖ Monitor is increased to 800 by 600 then the image will occupy only
a portion of the screen as the available number of pixels is more than that required for displaying
the image.
Though there are a large variety of printers in the industry, two types are mostly
used for printing multimedia content: the LASER printer and the Inkjet printer. The number of
dots printed per inch of the printed page is called the printer resolution and expressed as dots
per inch. Thus based on the final purpose the image needs to be created or scanned at the
appropriate resolution.
LASER Printer
Inkjet Printer
Inkjet printers, like LASER printers, employ a non-impact method meaning that there
is no head or hammer striking the paper to produce the print, like typewriters or the
dot-matrix printer. Ink is emitted from nozzles as they pass over a variety of possible
media.
i) Thermal technology
Most inkjets use thermal technology, whereby heat is used to fire ink onto
the paper. There are three main stages with this method. The ink emission is initiated
by heating the ink to create a bubble until the pressure forces it to burst and hit the
paper. This is the method favored by Canon and Hewlett-Packard. This imposes
certain limitations on the printing process in that whatever type of ink is used, it must
be resistant to heat because the firing process is heat-based.
iii) Inks
The ink is used in inkjet technology is water-based and this poses a few
problems. Oil based ink is not really a solution to the problem because it would
impose a far higher maintenance cost on the hardware. Printer manufacturers are
making continual progress in the development of water-resistant inks, but the
print quality from inkjet printers are still weak compared to LASER printers.
UNIT –III
CHARACTERISTICS OF SOUND:
Sound waves travel at great distances in a very short time, but as the distance increases the
waves tend to spread out. As the sound waves spread out, their energy simultaneously spreads through
an increasingly larger area. Thus, the wave energy becomes weaker as the distance from the source is
increased. Sounds may be broadly classified into two general groups. One group is NOISE, which
includes sounds such as the pounding of a hammer or the slamming of a door. The other group is
musical sounds, or TONES. The distinction between noise and tone is based on the regularity of the
vibrations, the degree of damping, and the ability of the ear to recognize components having a musical
sequence. You can best understand the physical difference between these kinds of sound by comparing
the wave shape of a musical note, depicted in view A of figure 1-13, with the wave shape of noise,
shown in view B. You can see by the comparison of the two wave shapes, that noise makes a very
irregular and haphazard curve and a musical note makes a uniform and regular curve.
In this information Age, the quest and journey for knowledge is something we all spend a
lot of time doing. Well, I don‘t know about you but sometimes I simply do not understand
something when it is presented in only one way and so I search for other means to gain the
understanding and knowledge I seek. As a result, I wander around scratching my head pondering
and wondering, all the while not understanding what was being taught in that moment, until such
time as new information comes along and all of a sudden the itch of wonder is replaced by
knowledge and certainty.
Understanding sound and the characteristics of sound can be more easily learned in that same
way. There are several concepts that are difficult to understand in music unless they are
presented in more than one way too. Hopefully this article will help you to understand the basics
of sound more fully by this multi-focused approach. It is through an understanding of the
characteristics that make up sound that you can more fully appreciate what you listen to, but
more so, gain an understanding of some of the basic tools a composer considers and uses when
creating a piece of music.
After all, music is actually and simply sound and sound has only four characteristics. When we
arrange these characteristics in such a way that we find it pleasing to listen to we call that music.
The basic fundamentals of music are by their very nature a necessary tool to use in many of the
future papers I will be presenting over time. The fundamental characteristics of sound consist of
only; pitch, duration, quality and intensity, however, the character of the sequence of sounds and
its arrangement is what makes music subjectively pleasing and individually enjoyed. Let‘s take a
closer look at these four basic characteristics that comprise the foundation for everything else we
will be discussing, as related to music.
Pitch* – In music notation, pitch can be seen visually by looking at the placement of a note on a
musical staff. By comparing the location of where two or more notes are placed graphically, we
look at their relative position to one another and we know in what direction they are related to
each other, in a position of either higher or lower than another. We make a comparison of the
two notes thereby easily identifying where each note is spatially on the staff by making a visual
distinction. This is made possible through the use of notation software or by notating music by
hand. The example below shows visually the basic concept of pitch.
Each sound or tone represented by the notes in the above diagram is produced or
transformed from a visual only presentation by the notes as shown on the staff, to an audio and
visual presentation, what we hear, when played by an instrument and what we see on the staff.
Again, the notes are relative to each other, higher or lower, and we understand their relationship
by making the visual comparison of one to the other. We can see pitch visually in this way and at
the same time hear the sound in an analog or auditory way by playing the notes on an instrument
or we can do the same thing by playing a sound clip at the same time we look at the chart below.
So, before playing the notes first look at the chart and make some distinctions such as, the first
note is lower than the second note on the chart. Then click on the link and listen to the sound,
paying attention to and identifying the differences between the two notes being played.
In essence, we have two methods of determining pitch using our senses, sight and
hearing. We will limit our understanding to these two senses at this time, unless you are so
inclined to pull out your musical instrument and play the notes now. By doing this you can
experience the notes in three senses; hearing, sight and tactile feeling. However, it is important to
know that through a multiple sensory approach such as this we can learn to associate the sound
of the note on the staff and in reverse hear the note and learn how to notate music. We can also
learn to sing from this basis too.
Duration – Duration is also a simple concept whereby we make additional distinctions based
upon the linear structure we call time. In music, the duration is determined by the moment the
tone becomes audible until the moment the sound falls outside of our ability to hear it or it
simply stops. In music notation, a half note is longer than an eighth note, a quarter note is shorter
in duration than a whole note, for example.
As shown in the following chart, visually, we see notes represented by different shapes.
These shapes determine the designated amount of time they are to be played. Silence is also
represented in the chart by the funny little shapes in between the notes. They are called rests and
this is also heard as silence. Note shapes partially determine the duration of the audible sound
and rest shapes partially determine the duration of silence in music.
By playing the sound clip you can hear the difference between the tones in terms of
duration, longer or shorter. We can also hear the difference in the length of the silence, again,
longer or shorter. Remember, we are comparing one note to the other or one rest to the other.
After your visual review, please click on the link below the chart to hear the sound clip.
Quality – From a church bell tower we hear the sound of the large bell ringing in the
neighborhood. Assuming the bell is playing a C note and we compare a different instrument
playing the same C note, a tuba for example, we can make the comparison between them
listening and comparing the tonal quality or timber differences between the two instruments.
This exercise will help in understanding tonal quality. Even though the pitch is the same for both
notes they sound different, in many ways.
To further explain; below is an mp3 sample of two different instruments, one following
the other. One instrument is a violin and the other is a flute, both playing the same C note or the
same pitch. The difference we hear is not in duration or in pitch but in tonal quality or timbre.
This aspect of music is broad and encompassing of the many different possibilities available
from different instruments and from the same instrument as well. The skill and artistry of the
performer also plays a significant role and highly influences the tonal quality produced by a
single instrument as does the quality and character of the instrument itself.
I have used two different tones, the C and the G (that‘s the one in the middle), to
demonstrate the tonal characteristics by comparing the sound qualities between a flute and a
violin. The last measure provides a comparison again, but this time while both instruments are
simultaneously sounding.
All sounds that we hear are made up of many overtones in addition to a fundamental
tone, unless the tone is a pure tone produced by a tuning fork or an electronic device. So, in
music when a cellist plays a note we not only hear the note as a fundamental note but we also
hear the overtones at the same time. By making sounds from different instruments and sounding
them simultaneously we hear a collection of tonal qualities that is broad in scope however, again
we still primarily hear the loudest or the fundamental tone. The spectral analysis photo below
demonstrates this point.
Spectral Analysis
Each peak is not simply a vertical line. It has many more nuances and sounds making up
the total sound we hear. The photo shows this where in between each peak we see a lot of
smaller peaks and the width of the main peaks is broad, partly contingent upon intensity and
partly on overtones.
Note: Tonal quality and overtones can be further understood visually by taking a closer look at
the first picture in this article. It is reproduced here for convenience.
3D Sound Spectrum
The concept of and study of overtones and other sound mechanisms takes us to material
and information beyond the scope of this article. Our intention here is to provide the basic
understanding of the difference in tonal quality as compared to intensity, duration and pitch.
Intensity – Intensity is a measure of the loudness of the tone. Assuming that the pitch, duration
and tonal quality are the same, we compare two or more tones based upon loudness or intensity.
One is louder or quieter than the other. When playing a piano for instance, if we strike the keys
gently we produce a quiet sound. If we strike them hard we produce a louder sound even though
the pitch is the same. Here is an audio clip comparing intensity or loudness on the flute.
Intensity can also be seen when working with a wave form editor as the photo below
shows. The larger the wave form the louder the sound. If you‘ll notice the small ―wavy line‖ in
between each of the larger wave forms in this snapshot, even though they show up on the graph,
it is likely that you do not hear the sound in these locations.
The really super cool thing about working with wave forms is that you can edit them
extensively and make unique sounds out of the originally recorded instrument. That method of
editing sound is only one of the ways in which digital sound can be manipulated and controlled.
Clarity
When looking at acoustic quality, Clarity is the most important element. Clarity cannot be
accomplished unless you have achieved all of the other four goals. Clarity includes the ability to:
understand dialogue in movies, understand musical lyrics, hear quiet details in a soundtrack or in
music, and have sounds be realistic. Just about every characteristic of your sound system and
room can and will affect clarity.
Focus
Sit down in the ―hot seat‖ of your home theater and play your favorite music. Now close your
eyes and imagine where each instrument is located in the sound you are hearing. Every recording
is designed to place instruments and sounds in a precise (or sometimes an intentionally non-
precise) location. Focus is the ability of your system to accurately communicate those locations
to your ears and brain.
Proper focus includes three aspects: the position of the sound in the soundfield (left to right
and front to back), the ―size‖ of the sound (does it sound ―bigger/more pronounced‖ or
―smaller/less pronounced‖ than it should), and the stability of that image (does the sound wander
around as the instrument plays different notes, for example). Finally, focus allows you to
distinguish between different sounds in the recording, assuming the recording was done in a way
that the sounds are actually distinguishable!
Envelopment
Envelopment refers to how well your system can ―surround‖ you with the sound. You may
be surprised, but a well designed and calibrated system with only two speakers is still well
capable of surrounding you with sound. A well done 5.1 or 7.1 system will do it even better.
Dynamic Range
The difference between the softest sound and loudest sound a system can reproduce is it‘s
dynamic range. Most people focus on bumping up the loud side of things (with bigger amps,
etc.). The reality is that the dynamic range of many home theaters is limited by the quietest
sounds. The softest sounds can be buried under excessive ambient noise - whether it‘s fan noise,
A/C noise, DVR hard drives, the kitchen refrigerator in the next room, or cars driving by outside
the window.
The goal for dynamic range is to easily & effortlessly reproduce loud sounds while still
ensuring that quiet sounds can be easily heard.
Response
A system‘s response is a measurement of how equally every frequency is played by the system.
The goal is a smooth response from the very low end (bass) all the way up to the highest (treble)
frequencies. Examples of uneven response include:
Boomy bass: certain bass notes knocking you out of your chair while others even a few notes
higher or lower can barely be heard
Not enough bass overall
Instruments sounding “wrong”
Things sounding just generally unrealistic
A system that is tiring to listen to, causing “listener fatigue” after only a short time.
A properly tuned system will sound smooth across all frequencies, will not cause fatigue
even at higher volumes, and will result in instruments and other acoustic elements sounding
natural and realistic.
Microphones:
I. How They Work.
II. Specifications.
III. Pick Up Patterns
IV. Typical Placement
V. The Microphone Mystique
A microphone is an example of a transducer, a device that changes information from one form to
another. Sound information exists as patterns of air pressure; the microphone changes this
information into patterns of electric current. The recording engineer is interested in the accuracy
of this transformation, a concept he thinks of as fidelity.
A variety of mechanical techniques can be used in building microphones. The two most
commonly encountered in recording studios are the magneto-dynamic and the variable condenser
designs.
In a condenser microphone, the diaphragm is mounted close to, but not touching, a rigid
backplate. (The plate may or may not have holes in it.) A battery is connected to both pieces of
metal, which produces an electrical potential, or charge, between them. The amount of charge is
determined by the voltage of the battery, the area of the diaphragm and backplate, and the
distance between the two. This distance changes as the diaphragm moves in response to sound.
When the distance changes, current flows in the wire as the battery maintains the correct charge.
The amount of current is essentially proportioinal to the displacement of the diaphragm, and is
so small that it must be electrically amplified before it leaves the microphone.
A common varient of this design uses a material with a permanently imprinted charge for
the diaphragm. Such a material is called an electret and is usually a kind of plastic. (You often
get a piece of plastic with a permanent charge on it when you unwrap a record. Most plastics
conduct electricity when they are hot but are insulators when they cool.) Plastic is a pretty good
material for making diaphragms since it can be dependably produced to fairly exact
specifications. (Some popular dynamic microphones use plastic diaphragms.) The major
disadvantage of electrets is that they lose their charge after a few years and cease to work.
II. Specifications
There is no inherent advantage in fidelity of one type of microphone over another.
Condenser types require batteries or power from the mixing console to operate, which is
occasionally a hassle, and dynamics require shielding from stray magnetic fields, which makes
them a bit heavy sometmes, but very fine microphones are available of both styles. The most
important factor in choosing a microphone is how it sounds in the required application. The
following issues must be considered:
Sensitivity.
This is a measure of how much electrical output is produced by a given sound. This is a vital
specification if you are trying to record very tiny sounds, such as a turtle snapping its jaw, but
should be considered in any situation. If you put an insensitive mic on a quiet instrument, such as
an acoustic guitar, you will have to increase the gain of the mixing console, adding noise to the
mix. On the other hand, a very sensitive mic on vocals might overload the input electronics of
the mixer or tape deck, producing distortion.
Overload characteristics.
Any microphone will produce distortion when it is overdriven by loud sounds. This is caused
by varous factors. With a dymanic, the coil may be pulled out of the magnetic field; in a
condenser, the internal amplifier might clip. Sustained overdriving or extremely loud sounds can
permanently distort the diaphragm, degrading performance at ordinary sound levels. Loud
sounds are encountered more often than you might think, especially if you place the mic very
close to instruments. (Would you put your ear in the bell of a trumpet?) You usually get a choice
between high sensitivity and high overload points, although occasionally there is a switch on the
microphone for different situations.
Linearity, or Distortion.
This is the feature that runs up the price of microphones. The distortion characteristics of
a mic are determined mostly by the care with which the diaphragm is made and mounted. High
volume production methods can turn out an adequate microphone, but the distortion performance
will be a matter of luck. Many manufacturers have several model numbers for what is essentially
the same device. They build a batch, and then test the mics and charge a premium price for the
good ones. The really big names throw away mic capsules that don't meet their standards. (If you
buy one Neumann mic, you are paying for five!)
No mic is perfectly linear; the best you can do is find one with distortion that
complements the sound you are trying to record. This is one of the factors of the microphone
mystique discussed later.
Frequency response.
A flat frequency response has been the main goal of microphone companies for the last
three or four decades. In the fifties, mics were so bad that console manufacturers began adding
equalizers to each input to compensate. This effort has now paid off to the point were most
professional microphones are respectably flat, at least for sounds originating in front. The major
exceptions are mics with deliberate emphasis at certain frequencies that are useful for some
applications. This is another part of the microphone mystique. Problems in frequency response
are mostly encountered with sounds originating behind the mic, as discussed in the next section.
Noise.
Microphones produce a very small amount of current, which makes sense when you
consider just how light the moving parts must be to accurately follow sound waves. To be useful
for recording or other electronic processes, the signal must be amplified by a factor of over a
thousand. Any electrical noise produced by the microphone will also be amplified, so even slight
amounts are intolerable. Dynamic microphones are essentially noise free, but the electronic
circuit built into condensor types is a potential source of trouble, and must be carefully designed
and constructed of premium parts.
Noise also includes unwanted pickup of mechanical vibration through the body of the
microphone. Very sensitive designs require elastic shock mountings, and mics intended to be
held in the hand need to have such mountings built inside the shell.
The most common source of noise associated with microphones is the wire connecting
the mic to the console or tape deck. A mic preamp is very similar to a radio reciever, so the cable
must be prevented from becoming an antenna. The basic technique is to surround the wires that
carry the current to and from the mic with a flexible metallic shield, which deflects most radio
energy. A second technique, which is more effective for the low frequency hum induced by the
power company into our environment, is to balance the line:
Current produced by the microphone will flow down one wire of the twisted pair, and back along
the other one. Any current induced in the cable from an outside source would tend to flow the
same way in both wires, and such currents cancel each other in the transformers. This system is
expensive.
Microphone Levels
As I said, microphone outputs are of necessity very weak signals, generally around -60dBm.
(The specification is the power produced by a sound pressure of 10 uBar) The output impedance
will depend on whether the mic has a transformer balanced output . If it does not, the
microphone will be labeled "high impedance" or "hi Z" and must be connected to an appropriate
input. The cable used must be kept short, less than 10 feet or so, to avoid noise problems.
If a microphone has a transformer, it will be labeled low impedance, and will work best
with a balanced input mic preamp. The cable can be several hundred feet long with no problem.
Balanced output, low impedance microphones are expensive, and generally found in professonal
applications. Balanced outputs must have three pin connectors ("Cannon plugs"), but not all mics
with those plugs are really balanced. Microphones with standard or miniature phone plugs are
high impedance. A balanced mic can be used with a high impedance input with a suitable
adapter.
You can see from the balanced connection diagram that there is a transformer at the input
of the console preamp. (Or, in lieu of a transformer, a complex circuit to do the same thing.) This
is the most significant difference between professional preamplifiers and the type usually found
on home tape decks. You can buy transformers that are designed to add this feature to a
consumer deck for about $20 each. (Make sure you are getting a transformer and not just an
adapter for the connectors.) With these accessories you can use professional quality
microphones, run cables over a hundred feet with no hum, and because the transformers boost
the signal somewhat, make recordings with less noise. This will not work with a few inexpensive
cassette recorders, because the strong signal causes distortion. Such a deck will have other
problems, so there is little point trying to make a high fidelity recording with it anyway.
Many people have the misconception that microphones only pick up sound from sources
they are pointed at, much as a camera only photographs what is in front of the lens. This would
be a nice feature if we could get it, but the truth is we can only approximate that action, and at
the expense of other desirable qualities.
MICROPHONE PATTERNS
These are polar graphs of the output produced vs. the angle of the sound source. The
output is represented by the radius of the curve at the incident angle.
Omni
The simplest mic design will pick up all sound, regardless of its point of origin, and is
thus known as an omnidirectional microphone. They are very easy to use and generally have
good to outstanding frequency response. To see how these patterns are produced, here's a sidebar
on directioal microphones.
Bi-directional
It is not very difficult to produce a pickup pattern that accepts sound striking the front or
rear of the diaphragm, but does not respond to sound from the sides. This is the way any
diaphragm will behave if sound can strike the front and back equally. The rejection of undesired
sound is the best achievable with any design, but the fact that the mic accepts sound from both
ends makes it difficult to use in many situations. Most often it is placed above an instrument.
Frequency response is just as good as an omni, at least for sounds that are not too close to the
microphone.
Cardioid
This pattern is popular for sound reinforcement or recording concerts where audience
noise is a possible problem. The concept is great, a mic that picks up sounds it is pointed at. The
reality is different. The first problem is that sounds from the back are not completely rejected,
but merely reduced about 10-30 dB. This can surprise careless users. The second problem, and a
severe one, is that the actual shape of the pickup pattern varies with frequency. For low
frequencies, this is an omnidirectional microphone. A mic that is directional in the range of bass
instruments will be fairly large and expensive. Furthermore, the frequency response for signals
arriving from the back and sides will be uneven; this adds an undesired coloration to instruments
at the edge of a large ensemble, or to the reverberation of the concert hall.
A third effect, which may be a problem or may be a desired feature, is that the
microphone will emphasize the low frequency components of any source that is very close to the
diaphragm. This is known as the "proximity effect", and many singers and radio announcers rely
on it to add "chest" to a basically light voice. Close, in this context, is related to the size of the
microphone, so the nice large mics with even back and side frequency response exhibit the
strongest presence effect. Most cardioid mics have a built in lowcut filter switch to compensate
for proximity. Missetting that switch can cause hilarious results. Bidirectional mics also exhibit
this phenomenon.
Tighter Patterns
It is posible to exaggerate the directionality of cardioid type microphones, if you don't
mind exaggerating some of the problems. The Hypercardioid pattern is very popular, as it gives a
better overall rejection and flatter frequency response at the cost of a small back pickup lobe.
This is often seen as a good compromise between the cardioid and bidirectional patterns. A
"shotgun" mic carries these techniques to extremes by mounting the diaphragm in the middle of
a pipe. The shotgun is extremely sensitive along the main axis, but posseses pronounced extra
lobes which vary drastically with frequency. In fact, the frequency response of this mic is so bad
it is usually electronically restricted to the voice range, where it is used to record dialogue for
film and video.
Stereo microphones
You don't need a special microphone to record in stereo, you just need two (see below).
A so called stereo microphone is really two microphones in the same case. There are two kinds:
extremely expensive professional models with precision matched capsules, adjustable capsule
angles, and remote switching of pickup patterns; and very cheap units (often with the capsules
oriented at 180 deg.) that can be sold for high prices because they have the word stereo written
on them.
Use of a single microphone is pretty straightforward. Having chosen one with appropriate
sensitivity and pattern, (and the best distortion, frequency response, and noise characteristics you
can afford), you simply mount it where the sounds are. The practical range of distance between
the instrument and the microphone is determined by the point where the sound overloads the
microphone or console at the near end, and the point where ambient noise becomes objectionable
at the far end. Between those extremes it is largely a matter of taste and experimentation.
If you place the microphone close to the instrument, and listen to the results, you will find
the location of the mic affects the way the instrument sounds on the recording. The timbre may
be odd, or some notes may be louder than others. That is because the various components of an
instrument's sound often come from different parts of the instrument body (the highest note of a
piano is nearly five feet from the lowest), and we are used to hearing an evenly blended tone. A
close in microphone will respond to some locations on the instrument more than others because
the difference in distance from each to the mic is proportionally large. A good rule of thumb is
that the blend zone starts at a distance of about twice the length of the instrument. If you are
recording several instruments, the distance between the players must be treated the same way.
If you place the microphone far away from the instrument, it will sound as if it is far
away from the instrument. We judge sonic distance by the ratio of the strength of the direct
sound from the instrument (which is always heard first) to the strength of the reverberation from
the walls of the room. When we are physically present at a concert, we use many cues beside the
sounds to keep our attention focused on the performance, and we are able to ignore any
distractions there may be. When we listen to a recording, we don't have those visual clues to
what is happening, and find anything extraneous that is very audible annoying. For this reason,
the best seat in the house is not a good place to record a concert. On the other hand, we do need
some reverberation to appreciate certain features of the music. (That is why some types of music
sound best in a stone church) Close microphone placement prevents this. Some engineers prefer
to use close miking techniques to keep noise down and add artificial reverberation to the
recording, others solve the problem by mounting the mic very high, away from audience noise
but where adequate reverberation can be found.
Stereo
Spaced microphones
The simplest approach is to assume that the speakers will be eight to ten feet apart, and
place two microphones eight to ten feet apart to match. Either omnis or cardioids will work.
When played back, the results will be satisfactory with most speaker arrangements. (I often laugh
when I attend concerts and watch people using this setup fuss endlessly with the precise
placement of the mics. This technique is so forgiving that none of their efforts will make any
practical difference.)
The big disavantage of this technique is that the mics must be rather far back from the ensemble-
at least as far as the distance from the leftmost performer to the rightmost. Otherwise, those
instruments closest to the microphones will be too prominent. There is usually not enough room
between stage and audience to achieve this with a large ensemble, unless you can suspend the
mics or have two very tall stands.
Coincident cardioids
There is another disadvantage to the spaced technique that appears if the two channels are
ever mixed together into a monophonic signal. (Or broadcast over the radio, for similar reasons.)
Because there is a large distance between the mics, it is quite possible that sound from a
particular instrument would reach each mic at slightly different times. (Sound takes 1
millisecond to travel a foot.) This effect creates phase differences between the two channels,
which results in severe frequency response problems when the signals are combined. You
seldom actually lose notes from this interference, but the result is an uneven, almost shimmery
sound. The various coincident techniques avoid this problem by mounting both mics in almost
the same spot.
This is most often done with two cardioid microphones, one pointing slightly left, one
slightly right. The microphones are often pointing toward each other, as this places the
diaphragms within a couple of inches of each other, totally eliminating phase problems. No
matter how they are mounted, the microphone that points to the left provides the left channel.
The stereo effect comes from the fact that the instruments on the right side are on-axis for the
right channel microphone and somewhat off-axis (and therefore reduced in level) for the other
one. The angle between the microphones is critical, depending on the actual pickup pattern of the
microphone. If the mics are too parallel, there will be little stereo effect. If the angle is too wide,
instruments in the middle of the stage will sound weak, producing a hole in the middle of the
image. [Incidentally, to use this technique, you must know which way the capsule actually
points. There are some very fine German cardioid microphones in which the diaphragm is
mounted so that the pickup is from the side, even though the case is shaped just like many
popular end addressed models. (The front of the mic in question is marked by the trademark
medallion.) I have heard the results where an engineer mounted a pair of these as if the axis were
at the end. You could hear one cello player and the tympani, but not much else.]
You may place the microphones fairly close to the instruments when you use this
technique. The problem of balance between near and far instruments is solved by aiming the
mics toward the back row of the ensemble; the front instruments are therefore off axis and record
at a lower level. You will notice that the height of the microphones becomes a critical
adjustment.
M.S.
The most elegant approach to coincident miking is the M.S. or middle-side technique.
This is usually done with a stereo microphone in which one element is omnidirectional, and the
other bidirectional. The bidirectional element is oriented with the axis running parallel to the
stage, rejecting sound from the center. The omni element, of course, picks up everything. To
understand the next part, consider what happens as instrument is moved on the stage. If the
instrument is on the left half of the stage, a sound would first move the diaphragm of the
bidirectional mic to the right, causing a positive voltage at the output. If the instrument is moved
to center stage, the microphone will not produce any signal at all. If the instrument is moved to
the right side, the sound would first move the diaphragm to the left, producing a negative volage.
You can then say that instruments on one side of the stage are 180 degrees out of phase with
those on the other side, and the closer they are to the center, the weaker the signal produced.
Now the signals from the two microphones are not merely kept in two channels and
played back over individual speakers. The signals are combined in a circuit that has two outputs;
for the left channel output, the bidirectional output is added to the omni signal. For the right
channel output, the bidirectional output is subtracted from the omni signal. This gives stereo,
because an instrument on the right produces a negative signal in the bidirectional mic, which
when added to the omni signal, tends to remove that instrument, but when subtracted, increases
the strength of the instrument. An instrument on the left suffers the opposite fate, but instruments
in the center are not affected, because their sound does not turn up in the bidirectional signal at
all.
M.S. produces a very smooth and accurate image, and is entirely mono compatabile. The
only reason it is not used more extensively is the cost of the special microphone and decoding
circuit, well over $1,000.
Large ensembles
The above techniques work well for concert recordings in good halls with small
ensembles. When recording large groups in difficult places, you will often see a combination of
spaced and coincident pairs. This does produce a kind of chorusing when the signals are mixed,
but it is an attractive effect and not very different from the sound of string or choral ensembles
any way. When balance between large sections and soloists cannot be acheived with the basic
setup, extra microphones are added to highlight the weaker instruments. A very common
problem with large halls is that the reverberation from the back seems late when compared to the
direct sound taken at the edge of the stage. This can be helped by placing a mic at the rear of the
audience area to get the ambient sound into the recording sooner.
Studio techniques
A complete description of all of the procedures and tricks encountered in the recording
studio would fill several books. These are just a few things you might see if you dropped in on
the middle of a session.
Individual mics on each instrument.
This provides the engineer with the ability to adjust the balance of the instruments at the
console, or, with a multitrack recorder, after the musicians have gone home. There may be eight
or nine mics on the drum set alone.
The microphones will usually be placed rather close to the instruments. This is partially
to avoid problems that occur when an instrument is picked up in two non-coincident mics, and
partially to modify the sound of the instruments (to get a "honky-tonk" effect from a grand piano,
for instance).
The interference that occurs when when an instrument is picked up by two mics that are
mixed is a very serious problem. You will often see extreme measures, such as a bass drum
stuffed with blankets to muffle the sound, and then electronically processed to make it sound like
a drum again.
Studio musicians often play to "click tracks", which are not recorded metronomes, but
someone tapping the beat with sticks and occasionally counting through tempo changes. This is
done when the music must be synchronized to a film or video, but is often required when the
performer cannot hear the other musicians because of the isolation measures described above.
Recordings require a level of perfection in intonation and rhythm that is much higher than
that acceptable in concert. The finished product is usually a composite of several takes.
Some microphones are very sensitive to minor gusts of wind--so sensitive in fact that
they will produce a loud pop if you breath on them. To protect these mics (some of which can
actually be damaged by blowing in them) engineers will often mount a nylon screen between the
mic and the artist. This is not the most common reason for using pop filters though:
Vocalists like to move around when they sing; in particular, they will lean into microphones. If
the singer is very close to the mic, any motion will produce drastic changes in level and sound
quality. (You have seen this with inexpert entertainers using hand held mics.) Many engineers
use pop filters to keep the artist at the proper distance. The performer may move slightly in
relation to the screen, but that is a small proportion of the distance to the microphone.
V. The Microphone Mystique
There is an aura of mystery about microphones. To the general public, a recording
engineer is something of a magician, privy to a secret arcana, and capable of supernatural feats.
A few modern day engineers encourage this attitude, but it is mostly a holdover from the days
when studio microphones were expensive and fragile, and most people never dealt with any
electronics more complex than a table radio. There are no secrets to recording; the art is mostly a
commonsense application of the principles already discussed in this paper. If there is an arcana,
it is an accumulation of trivia achieved through experience with the following problems:
There is no wrong microphone for any instrument. Every engineer has preferences,
usually based on mics with which he is familiar. Each mic has a unique sound, but the
differences between good examples of any one type are pretty minor. The artist has a conception
of the sound of his instrument, (which may not be accurate) and wants to hear that sound through
the speakers. Frequency response and placement of the microphone will affect that sound;
sometimes you need to exaggerate the features of the sound the client is looking for.
It is easy to forget that the recording engineer is an illusionist- the result will never be
confused with reality by the listener. Listeners are in fact very forgiving about some things. It is
important that the engineer be able to focus his attention on the main issues and not waste time
with interesting but minor technicalities. It is important that the engineer know what the main
issues are. An example is the noise/distortion tradeoff. Most listeners are willing to ignore a
small amount of distortion on loud passages (in fact, they expect it), but would be annoyed by
the extra noise that would result if the engineer turned the recording level down to avoid it. One
technique for encouraging this attention is to listen to recordings over a varitey of sound systems,
good and bad.
Many students come to me asking for a book or a course of study that will easily make
them a member of this elite company. There are books, and some schools have courses in
recording, but they do not supply the essential quality the professional recording engineer needs,
which is experience.
A good engineer will have made hundreds of recordings using dozens of different
microphones. Each session is an opportunity to make a new discovery. The engineer will make
careful notes of the setup, and will listen to the results many times to build an association
between the technique used and the sound achieved. Most of us do not have access to lots of
professional microphones, but we could probably afford a pair of general purpose cardioids.
With about $400 worth of mics and a reliable tape deck, it is possible to learn to make excellent
recordings. The trick is to record everything that will sit still and make noise, and study the
results: learn to hear when the mic is placed badly and what to do about it. When you know all
you can about your mics, buy a different pair and learn those. Occasionally, you will get the
opportunity to borrow mics. If possible, set them up right alongside yours and make two
recordings at once. It will not be long before you will know how to make consistently excellent
recordings under most conditions.
Audio amplifier:
An audio amplifier is an electronic amplifier that amplifies low-power audio signals
(signals composed primarily of frequencies between 20 - 20 000 Hz, the human range of hearing)
to a level suitable for driving loudspeakers and is the final stage in a typical audio playback
chain.
The preceding stages in such a chain are low power audio amplifiers which perform tasks like
pre-amplification, equalization, tone control, mixing/effects, or audio sources like record players,
CD players, and cassette players. Most audio amplifiers require these low-level inputs to adhere
to line levels.While the input signal to an audio amplifier may measure only a few hundred
microwatts, its output may be tens, hundreds, or thousands of watts.
Open MP3 Lecture in New Window, then minimize New Window and continue to listen and view animations below.
Loudspeaker Basics
The loudspeakers are almost always the limiting element on the
fidelity of a reproduced sound in either home or theater. The
other stages in sound reproduction are mostly electronic, and the
electronic components are highly developed. The loudspeaker
involves electromechanical processes where the amplified audio
signal must move a cone or other mechanical device to produce
sound like the original sound wave. This process involves many
difficulties, and usually is the most imperfect of the steps in
sound reproduction. Choose your speakers carefully. Some basic
ideas about speaker enclosures might help with perspective.
Click image for more
Once you have chosen a good loudspeaker from a reputable
manufacturer and paid a good price for it, you might presume that details.
you would get good sound reproduction from it. But you won't ---
not without a good enclosure. The enclosure is an essential part of
sound production because of the following problems with a direct
radiating loudspeaker:
The sound from the back of the speaker cone will The free cone speaker is very inefficient at
tend to cancel the sound from the front, especially producing sound wavelengths longer than the
for low frequencies. diameter of the speaker.
Speakers have a free-cone resonant frequency which More power is needed in the bass range, making
distorts the sound by responding too strongly to multiple drivers with a crossover a practical
frequencies near resonance. necessity for good sound.
A passive crossover.
Bi-amped.
Used in multi-driver speaker systems, the crossover is a subsystem that separates the
input signal into different frequency ranges suited to each driver. The drivers receive only the
power in their usable frequency range (the range they were designed for), thereby reducing
distortion in the drivers and interference between them.
Crossovers can be passive or active. A passive crossover is an electronic circuit that uses
a combination of one or more resistors, inductors, or non-polar capacitors. These parts are
formed into carefully designed networks and are most often placed between the power amplifier
and the loudspeaker drivers to divide the amplifier's signal into the necessary frequency bands
before being delivered to the individual drivers. Passive crossover circuits need no external
power beyond the audio signal itself, but do cause overall signal loss and a significant reduction
in damping factor between the voice coil and the crossover. An active crossover is an electronic
filter circuit that divides the signal into individual frequency bands before power amplification,
thus requiring at least one power amplifier for each bandpass.Passive filtering may also be used
in this way before power amplification, but it is an uncommon solution, due to inflexibility
compared to active filtering. Any technique that uses crossover filtering followed by
amplification is commonly known as bi-amping, tri-amping, quad-amping, and so on, depending
on the minimum number of amplifier channels.Some loudspeaker designs use a combination of
passive and active crossover filtering, such as a passive crossover between the mid- and high-
frequency drivers and an active
Crossovers, like the driver units that they feed, have power handling limits, have insertion
losses (10% is often claimed), and change the load seen by the amplifier. The changes are
matters of concern for many in the hi-fi world.When high output levels are required, active
crossovers may be preferable. Active crossovers may be simple circuits that emulate the response
of a passive network, or may be more complex, allowing extensive audio adjustments. Some
active crossovers, usually digital loudspeaker management systems, may include facilities for
precise alignment of phase and time between frequency bands, equalization, and dynamics
(compression and limiting) control.
Some hi-fi and professional loudspeaker systems now include an active crossover circuit
as part of an onboard amplifier system. These speaker designs are identifiable by their need for
AC power in addition to a signal cable from a pre-amplifier. This active topology may include
driver protection circuits and other features of a digital loudspeaker management system.
Powered speaker systems are common in computer sound (for a single listener) and, at the other
end of the size spectrum, in modern concert sound systems, where their presence is significant
and steadily increasing.
MIDI Messages:
The MIDI Message specification (or "MIDI Protocol") is probably the most important part of
MIDI.
Though originally intended just for use over MIDI Cables to connect two keyboards,
MIDI messages are now used inside computers and cell phones to generate music, and
transported over any number of professional and consumer interfaces (USB, FireWire, etc.) to a
wide variety of MIDI-equipped devices. There are different message groups for different
applications, only some of which are we able to explain here.
MIDI is a music description language in digital (binary) form. It was designed for use
with keyboard-based musical instruments, so the message structure is oriented to performance
events, such as picking a note and then striking it, or setting typical parameters available on
electronic keyboards. For example, to sound a note in MIDI you send a "Note On" message, and
then assign that note a "velocity", which determines how loud it plays relative to other notes.
You can also adjust the overall loudness of all the notes with a Channel Volume" message. Other
MIDI messages include selecting which instrument sounds to use, stereo panning, and more.
The first specification (1983) did not define every possible "word" that can be spoken in
MIDI , nor did it define every musical instruction that might be desired in an electronic
performance. So over the past 20 or more years, companies have enhanced the original MIDI
specification by defining additional performance control messages, and creating companion
specifications which include:
Alternate Applications MIDI Machine Control and MIDI Show Control are interesting
extensions because instead of addressing musical instruments they address studio recording
equipment (tape decks etc) and theatrical control (lights, smoke machines, etc.).
MIDI is also being used for control of devices where standard messages have not been
defined by MMA, such as with audio mixing console automation.
Tables displaying some of the most commonly used messages for musical performance are
available below and via the links in the left-hand column.. For the complete specification(s), you
will need to get the most recent edition of the Complete MIDI 1.0 Detailed Specification and any
supplemental documents and/or specifications that are appropriate.
Table 1 - Summary of MIDI Messages
The following table lists many of the major MIDI messages in numerical (binary) order.
This table is intended as an overview of MIDI, and is by no means complete. Additional
messages are listed in the printed documentation available from the MMA.
1100nnnn 0ppppppp Program Change. This message sent when the patch number
changes. (ppppppp) is the new program number.
All Sound Off. When All Sound Off is received all oscillators
will turn off, and their volume envelopes are set to zero as
soon as possible. c = 120, v = 0: All Sound Off
11111010 Start. Start the current sequence playing. (This message will
be followed with Timing Clocks).
Many different "transports" can be used for MIDI messages. The speed of the transport
determines how much MIDI data can be carried, and how quickly it will be received.
Each transport has its own performance characteristics which might make some difference in
specific applications, but in general the transport is the least important part of MIDI , as long as it allows
you to connect all the devices you want use!
Using a 5-pin "DIN" connector, the MIDI DIN transport was developed back in 1983, so it is slow
compared to common high-speed digital transports available today, like USB, FireWire, and Ethernet.
But MIDI-DIN is almost always still used on most MIDI-equipped devices because it adequately handles
communication speed for one device. IF you want to connect one MIDI device to another (not a
computer), MIDI cables are still the best way to go.
It used to be that connecting a MIDI device to a computer meant installing a "sound card" or
"MIDI interface" in order to have a MIDI DIN connector on the computer. Because of space limitations,
most such cards did not have actual 5-Pin DIN connectors on the card, but provided a special cable with
5-Pin DINs (In and Out) on one end (often connected to the "joystick port"). All such cards need "driver"
software to make the MIDI connection work, but there are a few standards that companies follow,
including "MPU-401" and "SoundBlaster". Even with those standards, however, making MIDI work could
be a major task.
Over a number of years the components of the typical sound card and MIDI interface (including
the joystick port) became standard on the motherboard of most PCs, but this did not make configuring
them any easier.
Before USB and FireWire, personal computers were all generally equipped with serial, parallel,
and (possibly) joystick ports, all of which have been used for connecting MIDI-equipped instruments
(through special adapters). Though not always faster than MIDI-DIN, these connectors were already
available on computers and that made them an economical alternative to add-on cards, with the added
benefit that in general they already worked and did not need special configuration.
The High Speed Serial Ports such as the "mini-DIN" ports available on early Macintosh
computers support communication speeds roughly 20 times faster than MIDI-DIN, making it also
possible for companies to develop and market "multiport" MIDI interfaces that allowed connecting
multiple MIDI-DINs to one computer. In this manner it became possible to have the computer address
many different MIDI-equipped devices at the same time. Recent multi-port MIDI interfaces use even
faster USB or FireWire ports to connect to the computer.
All recent computers are equipped with either USB and/or FireWire connectors, and these are
now the most common means of connecting MIDI devices to computers (using appropriate format
adapters). Adapters can be as simple as a short cable with USB on one end and MIDI DIN on the other,
or as complex as a 19 inch rack mountable CPU with dozens of MIDI and Audio In and Out ports. The
best part is that USB and FireWire are "plug-and-play" interfaces which means they generally configure
themselves. In most cases, all you need to do is plug in your USB or FireWire MIDI interface and boot up
some MIDI software and off you go.
Current USB technology generally supports communication between a host (PC) and a device, so
it is not possible to connect to USB devices to each other as it is with two MIDI DIN devices. (This may
change sometime in the future with new versions of USB). Since communications all go through the PC,
any two USB MIDI devices can use different schemes for packing up MIDI messages and sending them
over USB... the USB device's driver on the host knows how that device does it, and will convert the MIDI
messages from USB back to MIDI at the host. That way all USB MIDI devices can talk to each other
(through the host) without needing to follow one specification for how they send MIDI data over USB.
Most FireWire MIDI devices also connect directly to a PC with a host device driver and so can
talk to other FireWire MIDI devices even if they use a proprietary method for formatting their MIDI data.
But FireWire supports "peer-to-peer" connections, so MMA has produced a specification for MIDI over
IEEE-1394 (FireWire), which is available for download on this site (and incorporated in IEC-61883 part
5).
Ethernet
If you are connecting a number of MIDI instruments to one or more computers, using Ethernet
seems like a great solution. In the MIDI industry there is not yet agreement on the market desire for
MIDI over Ethernet, nor on the net value of the benefits vs. challenges of using Ethernet, and so there is
currently no MMA standard for MIDI over Ethernet.
However, other Standard Setting Organizations have specifications for MIDI Over Ethernet, and we
think it appropriate that people know about those solutions. There are also proprietary solutions for
MIDI Over Ethernet, but because they are not open standards they are not appropriate for discussion by
MMA.
IETF RTP-MIDI
The IETF RTP Payload Format for MIDI solution has received extensive modification in response to
comments by MMA-members, and is also the foundation of Apple's own MIDI Over Ethernet solution.
Though neither solution has been officially adopted or endorsed in any way by MMA, both technologies
have stood up to MMA member scrutiny and so are likely to appear (in one manner or another) in future
MIDI hardware and/or software products.
For the past several years, the IEEE has been developing protocols for low-latency audio and video
transport over Ethernet with high quality of service. These protocols are known as Audio/Video Bridging,
or AVB, and are part of the larger IEEE 802.1 Working Group, which develops networking standards that
enable interoperability of such ubiquitous devices as Ethernet switches. The AVB protocols provide
precision time synchronization and stream bandwidth reservation at the network level.
The AVB protocols do not provide a standard means for interoperable communication of content
such as a live video stream. Utilizing the 802.1 AVB protocols, the IEEE P1722 AVB Transport Protocol
(AVBTP) draft standard provides the necessary content encapsulation in an evolutionary manner by
adopting the existing IEEE 1394 (Firewire) audio and video streaming mechanisms already in use by
millions of devices. However, AVBTP is not limited to bridging IEEE 1394 content, as it provides
extensibility to encapsulate new and different media formats.
The MMA collaborated with the IEEE P1722 working group to enable transport of MIDI and any
future content format defined by the MMA over IEEE P1722 networks. The P1722 standard defines MIDI
1.0 content within this protocol by referencing an MMA-authored document. The MMA has not yet
published that document, but plans to do so in the near future.
Let's first take a look at what you need to get your MIDI (Recording) system setup:
Hardware:
Software
Install drivers for soundcard (better to download latest version from manufacturer). SEARCH
TIP: Go to Google and search "Model number of card + drivers download". i.e. If your soundcard
is called "SoundcardXYZ" then type "SoundcardXYZ drivers download" (without the quotes) into
Google. There is a high probability that Google will give you the exact page you need for the
latest drivers.
Install latest drivers for keyboard (if needed) - more common for USB keyboards.
Install MIDI Sequencing package - Cubase LE
IMPORTANT MIDI CONNECTIONS - Always connect MIDI OUT from one device to MIDI IN on the
other or vice-versa.
If you have a computer a keyboard or any external sound modules then connect as shown
below:
If you have an additional module to add to the setup above then simply connect a MIDI OUT
from the sound module to the additional module (MIDI IN).
Having a large number of MIDI chain connections is not advisable and not really practical when
it comes to controlling your MIDI channels from within the sequencing software - The system
above only allows you 16 channels of sounds playing simultaneously. Of course, this depends on
the equipment, but let's just assume that the keyboard and module are multi-timbral and can
play 16 channels at the same time. Because of the setup above you are limited.
MIDI Thru Box - A MIDI thru box is advisable on bigger systems to allow more than 16
channels be played back simultaneously - the MIDI output of each MIDI port on the Thru
box is controlled from within the sequencing package. For example, let's say we are using
Cubase. Track 1 is playing MIDI channel 1, Track 2 plays MIDI channel 2 etc. etc. The
MIDI output of MIDI channel 1 is routed to the MIDI Thru Box - Port 1, The MIDI
output of MIDI channel 2 is routed to the MIDI Port 2. So, for 4 MIDI ports connected to
4 different devices you can have 64 MIDI channels!
Connect
Assuming you have installed your software and hardware correctly you are literally steps away
from completing your MIDI setup!
If you have a USB Keyboard then connect it to your USB port on your computer. Load up your
MIDI sequencing software and see if you can see the MIDI input from your sequencing software.
Cubase LE is great for this and will show if you connection has been establised by displaying a
light trigger when ever you play your keyboard.
If you have a MIDI keyboard then connect the MIDI cable from your MIDI Out on the keyboard
to MIDI In on your soundcard. As above, if you have Cubase installed then it will display a
connection if you depress a key on the keyboard.
If you want to playback the sounds of your keyboard then you have to connect the MIDI Out
from your soundcard to the MIDI In of your keyboard.
So, when recording, you play out the notes from your keyboard into your computer (sequencer)
then after you've finished recording the computer will playback MIDI recorded information back
from the MIDI Out port of the computer to the MIDI In of your keyboard. It's quite simple!
Multitrack MIDI recording - Simple! Same as above, keep recording and pre-recorded tracks will
playback when you are recording additional tracks.
This is a generic description of your MIDI setup and you may have to customise it slightly for your own
setup since very few MIDI setups are the same it's almost impossible to give a direct answer to this
popular topic.
Sound card:
A sound card (also known as an audio card) is a computer expansion card that facilitates the
input and output of audio signals to and from a computer under control of computer programs.
Typical uses of sound cards include providing the audio component for multimedia applications
such as music composition, editing video or audio, presentation, education, and entertainment
(games). Many computers have sound capabilities built in, while others require additional
expansion cards to provide for audio capability.
Most sound cards have a line in connector for signal from a cassette tape recorder or similar
sound source. The sound card digitizes this signal and stores it (under control of appropriate
matching computer software) on the computer's hard disk for storage, editing, or further
processing. Another common external connector is the microphone connector, for use by a
microphone or other low level input device. Input through a microphone jack can then be used
by speech recognition software or for Voice over IP applications.
Audio file format:
An audio file format is a file format for storing audio data on a computer system. It can be a raw
bitstream, but it is usually a container format or an audio data format with defined storage layer.
The general approach towards storing digital audio is to sample the audio voltage which, on
playback, would correspond to a certain level of signal in an individual channel with a certain
resolution—the number of bits per sample—in regular intervals (forming the sample rate). This
data can then be stored uncompressed, or compressed to reduce the file size
Types of formats:
It is important to distinguish between a file format and a CODEC. A codec performs the
encoding and decoding of the raw audio data while the data itself is stored in a file with a
specific audio file format. Most of the publicly documented audio file formats can be created
with one of two or more encoders or codecs. Although most audio file formats support only one
type of audio data (created with an audio coder), a multimedia container format (as MKV or
AVI) may support multiple types of audio and video data.
There is one major uncompressed audio format, PCM which is usually stored as a .wav on
Windows or as .aiff on Mac OS. WAV and AIFF are flexible file formats designed to store more
or less any combination of sampling rates or bitrates. This makes them suitable file formats for
storing and archiving an original recording. There is another uncompressed audio format which
is .cda (Audio CD Track) .cda is from a music CD and is 0% compressed.
The AIFF format is based on the IFF format. The WAV format is based on the RIFF file format,
which is similar to the IFF format.
BWF (Broadcast Wave Format) is a standard audio format created by the European Broadcasting
Union as a successor to WAV. BWF allows metadata to be stored in the file. See European
Broadcasting Union: Specification of the Broadcast Wave Format (EBU Technical document
3285, July 1997). This is the primary recording format used in many professional audio
workstations in the television and film industry. BWF files include a standardized Timestamp
reference which allows for easy synchronization with a separate picture element. Stand-alone,
file based, multi-track recorders from Sound Devices, Zaxcom, HHB USA, Fostex, and Aaton all
use BWF as their preferred format.
A lossless compressed format requires much more processing time than an uncompressed format
but is more efficient in space usage.
Uncompressed audio formats encode both sound and silence with the same number of bits per
unit of time. Encoding an uncompressed minute of absolute silence produces a file of the same
size as encoding an uncompressed minute of symphonic orchestra music. In a lossless
compressed format, however, the music would occupy a marginally smaller file and the silence
take up almost no space at all.
Lossless compression formats (such as the most widespread FLAC, WavPack. Monkey's Audio,
ALAC/Apple Lossless) provide a compression ratio of about 2:1. Development in lossless
compression formats aims to reduce processing time while maintaining a good compression
ratio.
wav – standard audio file container format used mainly in Windows PCs. Commonly used for
storing uncompressed (PCM) , CD-quality sound files, which means that they can be large in
size—around 10 MB per minute. Wave files can also contain data encoded with a variety of
(lossy) codecs to reduce the file size (for example the GSM or mp3 codecs). Wav files use a RIFF
structure.
ogg – a free, open source container format supporting a variety of codecs, the most popular of
which is the audio codec Vorbis. Vorbis offers compression similar to MP3 but is less popular.
mpc - Musepack or MPC (formerly known as MPEGplus, MPEG+ or MP+) is an open source lossy
audio codec, specifically optimized for transparent compression of stereo audio at bitrates of
160–180 kbit/s.
flac – Free Lossless Audio Codec, a lossless compression codec.
aiff – standard audio file format used by Apple. It could be considered the Apple equivalent of
wav.
raw – a raw file can contain audio in any codec but is usually used with PCM audio data. It is
rarely used except for technical tests.
au – the standard audio file format used by Sun, Unix and Java. The audio in au files can be PCM
or compressed with the μ-law, a-law or G729 codecs.
gsm – designed for telephony use in Europe, gsm is a very practical format for telephone quality
voice. It makes a good compromise between file size and quality. Note that wav files can also be
encoded with the gsm codec.
dct – A variable codec format designed for dictation. It has dictation header information and can
be encrypted (often required by medical confidentiality laws).
vox – the vox format most commonly uses the Dialogic ADPCM (Adaptive Differential Pulse Code
Modulation) codec. Similar to other ADPCM formats, it compresses to 4-bits. Vox format files
are similar to wave files except that the vox files contain no information about the file itself so
the codec sample rate and number of channels must first be specified in order to play a vox file.
mmf - a Samsung audio format that is used in ringtones.
Proprietary formats
mp3 – MPEG Layer-3 format is the most popular format for downloading and storing music. By
eliminating portions of the audio file that are less audible, mp3 files are compressed to roughly
one-tenth the size of an equivalent PCM file sacrificing quality.
aac – the Advanced Audio Coding format is based on the MPEG2 and MPEG4 standards. aac files
are usually ADTS or ADIF containers.
mp4/m4a – MPEG-4 audio most often AAC but sometimes MP2/MP3, MPEG-4 SLS, CELP, HVXC
and other audio object types defined in MPEG-4 Audio
wma – the popular Windows Media Audio format owned by Microsoft. Designed with Digital
Rights Management (DRM) abilities for copy protection.
atrac (.wav) – the older style Sony ATRAC format. It always has a .wav file extension. To open
these files simply install the ATRAC3 drivers.
ra & rm – a Real Audio format designed for streaming audio over the Internet. The .ra format
allows files to be stored in a self-contained fashion on a computer, with all of the audio data
contained inside the file itself.
ram – a text file that contains a link to the Internet address where the Real Audio file is stored.
The .ram file contains no audio data itself.
dss – Digital Speech Standard files are an Olympus proprietary format. It is a fairly old and poor
codec. Gsm or mp3 are generally preferred where the recorder allows. It allows additional data
to be held in the file header.
msv – a Sony proprietary format for Memory Stick compressed voice files.
dvf – a Sony proprietary format for compressed voice files; commonly used by Sony dictation
recorders.
IVS – A proprietary version with Digital Rights Management developed by 3D Solar UK Ltd for
use in music downloaded from their Tronme Music Store and interactive music and video player.
m4p – A proprietary version of AAC in MP4 with Digital Rights Management developed by Apple
for use in music downloaded from their iTunes Music Store.
iklax – An iKlax Media proprietary format, the iKlax format is a multi-track digital audio format
allowing various actions on musical data, for instance on mixing and volumes arrangements.
mxp4 – a Musinaut proprietary format allowing play of different versions (or skins) of the same
song. It allows various interactivity scenarios between the artist and the end user.
3gp - multimedia container format can contain proprietary formats as AMR, AMR-WB or AMR-
WB+, but also some open formats
amr - AMR-NB audio, used primarily for speech
awb - AMR-WB audio, used primarily for speech
Codec:
A codec is a device or computer program capable of encoding and/or decoding a digital
data stream or signal. The word codec is a portmanteau of 'compressor-decompressor' or, more
commonly, 'coder-decoder'. A codec (the program) should not be confused with a coding or
compression format or standard – a format is a document (the standard), a way of storing data,
while a codec is a program (an implementation) which can read or write such files. In practice
"codec" is sometimes used loosely to refer to formats, however.
Media codecs:
Codecs are often designed to emphasize certain aspects of the media, or their use, to be
encoded. For example, a digital video (using a DV codec) of a sports event needs to encode
motion well but not necessarily exact colors, while a video of an art exhibit needs to perform
well encoding color and surface texture.
Audio codecs for cell phones need to have very low latency between source encoding and
playback; while audio codecs for recording or broadcast can use high-latency audio compression
techniques to achieve higher fidelity at a lower bit-rate.
There are thousands of audio and video codecs ranging in cost from free to hundreds of
dollars or more. This variety of codecs can create compatibility and obsolescence issues. By
contrast, raw uncompressed PCM audio (44.1 kHz, 16 bit stereo, as represented on an audio CD
or in a .wav or .aiff file) is a standard across multiple platforms.
Many multimedia data streams contain both audio and video, and often some metadata
that permit synchronization of audio and video. Each of these three streams may be handled by
different programs, processes, or hardware; but for the multimedia data streams to be useful in
stored or transmitted form, they must be encapsulated together in a container format.
Lower bit rate codecs allow more users, but they also have more distortion. Beyond the
initial increase in distortion, lower bit rate codecs also achieve their lower bit rates by using more
complex algorithms that make certain assumptions, such as those about the media and the packet
loss rate. Other codecs may not make those same assumptions. When a user with a low bit-rate
codec talks to a user with another codec, additional distortion is introduced by each transcoding.
The notion of AVI being a codec is incorrect as AVI is a container format, which many
codecs might use (although not to ISO standard). There are also other well-known containers
such as Ogg, ASF, QuickTime, RealMedia, Matroska, DivX Media Format and containers
defined as ISO standards, such as MPEG transport stream, MPEG program stream, MP4 and ISO
base media file format.
Audio player (software):
An audio player is a kind of media player for playing back digital audio, including
optical discs such as CDs, SACDs, DVD-Audio, HDCD, audio files and streaming audio.
Many of the audio players also support simple playback of digital videos in which we can
also run movies.
Digital audio player, shortened to DAP, MP3 player or, rarely, as an OGG player, is a
consumer electronic device that stores, organizes and plays digital audio files. In contrast,
analog audio players play music from cassette tapes, or records. Portable devices that also
play video and text are referred to as portable media players.
Digital recording and reproduction converts the analog sound signal picked up by the
microphone to a digital form by a process of digitization, allowing it to be stored and transmitted
by a wider variety of media. Digital recording stores audio as a series of binary numbers
representing samples of the amplitude of the audio signal at equal time intervals, at a sample rate
so fast that the human ear perceives the result as continuous sound. Digital recordings are
considered higher quality than analog recordings not necessarily because they have higher
fidelity (wider frequency response or dynamic range), but because the digital format can prevent
much loss of quality found in analog recording due to noise and electromagnetic interference in
playback, and mechanical deterioration or damage to the storage medium. A digital audio signal
must be reconverted to analog form during playback before it is applied to a loudspeaker or
earphones.
Electrical recording:
Sound recording began as a mechanical process and remained so until the early 1920s
(with the exception of the 1899 Telegraphone) when a string of groundbreaking inventions in the
field of electronics revolutionised sound recording and the young recording industry. These
included sound transducers such as microphones and loudspeakers and various electronic devices
such as the mixing desk, designed for the amplification and modification of electrical sound
signals.
After the Edison phonograph itself, arguably the most significant advances in sound recording,
were the electronic systems invented by two American scientists between 1900 and 1924. In
1906 Lee De Forest invented the "Audion" triode vacuum-tube, electronic valve, which could
greatly amplify weak electrical signals, (one early use was to amplify long distance telephone in
1915) which became the basis of all subsequent electrical sound systems until the invention of
the transistor. The valve was quickly followed by the invention of the Regenerative circuit,
Super-Regenerative circuit and the Superheterodyne receiver circuit, all of which were invented
and patented by the young electronics genius Edwin Armstrong between 1914 and 1922.
Armstrong's inventions made higher fidelity electrical sound recording and reproduction a
practical reality, facilitating the development of the electronic amplifier and many other devices;
after 1925 these systems had become standard in the recording and radio industry.
While Armstrong published studies about the fundamental operation of the triode vacuum
tube before World War I, inventors like Orlando R. Marsh and his Marsh Laboratories, as well as
scientists at Bell Telephone Laboratories, achieved their own understanding about the triode and
were utilizing the Audion as a repeater in weak telephone circuits. By 1925 it was possible to
place a long distance telephone call with these repeaters between New York and San Francisco
in 20 minutes, both parties being clearly heard. With this technical prowess, Joseph P. Maxfield
and Henry C. Harrison from Bell Telephone Laboratories were skilled in using mechanical
analogs of electrical circuits and applied these principles to sound recording and reproduction.
They were ready to demonstrate their results by 1924 using the Wente condenser microphone
and the vacuum tube amplifier to drive the "rubber line" wax recorder to cut a master audio disc.
Beginning during World War One, experiments were undertaken in the United States and
Great Britain to reproduce among other things, the sound of a Submarine (u-boat) for training
purposes. The acoustical recordings of that time proved entirely unable to reproduce the sounds,
and other methods were actively sought. Radio had developed independently to this point, and
now Bell Laboritories sought a marriage of the two disparate technologies, greater than the two
separately. The first experiments were not very promising, but by 1920 greater sound fidelity
was achieved using the electrical system than had ever been realized acoustically. One early
recording made without fanfare or announcement was the dedication of the Tomb of the
Unknown Soldier at Arlington Cemetery.
By early 1924 such dramatic progress had been made, that Bell Labs arranged a
demonstration for the leading recording companies, the Victor Talking Machine Company, and
the Columbia Phonograph Co. (Edison was left out due to their decreasing market share and a
stubborn Thomas Edison). Columbia, always in financial straits, could not afford it, and Victor,
essentially leaderless since the mental collapse of founder Eldridge Johnson, left the
demonstration without comment. English Columbia, by then a separate company, got hold of a
test pressing made by Pathé from these sessions, and realized the immediate and urgent need to
have the new system. Bell was only offering its method to United States companies, and to
circumvent this, Managing Director Louis Sterling of English Columbia, bought his once parent
company, and signed up for electrical recording. Although they were contemplating a deal,
Victor Talking Machine was apprised of the new Columbia deal, so they too quickly signed.
Columbia made its first released electrical recordings on February 25, 1925, with Victor
following a few weeks later. The two then agreed privately to "be quiet" until November 1925,
by which time enough electrical repertory would be available.
This period also saw several other historic developments including the introduction of the
first practical magnetic sound recording system, the magnetic wire recorder, which was based on
the work of Danish inventor Valdemar Poulsen. Magnetic wire recorders were effective, but the
sound quality was poor, so between the wars they were primarily used for voice recording and
marketed as business dictating machines. In the 1930s radio pioneer Guglielmo Marconi
developed a system of magnetic sound recording using steel tape. This was the same material
used to make razor blades, and not surprisingly the fearsome Marconi-Stille recorders were
considered so dangerous that technicians had to operate them from another room for safety.
Because of the high recording speeds required, they used enormous reels about one metre in
diameter, and the thin tape frequently broke, sending jagged lengths of razor steel flying around
the studio.
However, if the information is audio, such as a RealAudio feed from a news conference
or the proceedings in a courtroom, a person who is deaf or hard of hearing cannot access that
content unless provision is made for a visual presentation of audio content. Similarly, if the
content is pure video, a blind person or a person with severe vision loss will miss the message
without the important information in the video being described.
Remember from Section 2 that to be compliant with Section 508, you must include text
equivalents for all non-text content. Besides including alternative text for images and image map
areas, you need to provide textual equivalents for audio and more generally for multimedia
content.
Some Definitions
A transcript of audio content is a word-for-word textual representation of the audio,
including descriptions of non-text sounds like "laughter" or "thunder." Transcripts of audio
content are valuable not only for persons with disabilities but in addition, they permit searching
and indexing of that content which is not possible with just the audio. "Not possible" is, of
course too strong. Search engines could, if they wanted, employ voice recognition to audio files,
and index that information - but they don't.
System Requirements
UNIT – IV
VIDEO
INTRODUCTION:
Motion video is a combination of image and audio. It consists of a set of still images called
frames displayed to the user one after another at a specific speed, known as the frame rate measured in
number of frames per second(fps). The frame rate should range between 20 and 30 for perceiving
smooth realistic motion. The recording and editing of sound has long been in the domain of the PC. This
is because of the enormous file size required by video. Thus, a 20 minute clip fills up 32 GB of disk space.
The only solution to this problem is to compress the data, but compression hardware and software were
very expensive in the early days of video editing. Motion video is conceptually similar to but physically
different from motion picture. Motion picture is recorded on celluloid film and displayed in cinema
theaters by projecting on a screen, whereas motion video is represented in the form of electrical signals
as an output from video cameras. Motion video is also conceptually similar to animation, the difference
being that while video represents a sequence of real world images captured by a movie camera.
Analog video cameras are used to record a succession of still images and then convert the
brightness and color information of the images into electrical signals. The tube type analog video
camera is generally used in professional studios and uses electron beams to scan in a raster pattern,
while the CCD video camera, using a light-sensitive electronic device called the CCD, is used for
home/office purposes where portability is important.
The essential components of an analog video camera consist of a vacuum tube containing an
electron gun, and a photo-sensitive semi-conductor plate called Target in front. A lens in front of the
Target focuses light from an object on to the Target. The positive terminal of a battery is connected to
the lens side of the Target while the negative terminal is attached to the cathode of the electron
gun.(fig)
The target is almost an insulator in the absence of light. The electrons migrate towards a
positive potential applied to the lens side of the target. This positive potential is applied to a thin layer of
conductive but transparent material. The vacant energy states left by the liberated electrons, called
holes, migrate towards the inner surface of the target. Thus, a charge pattern appears on the inner
surface of the target that is most positive where the brightness or luminosity of the scene is the
greatest.
The charge pattern is sampled point-by-point by a moving beam of electrons which originates in
an electron gun in the tube. Excess electrons are turned back towards the source. The exact number of
electrons needed to neutralize the charge pattern constitutes a flow of current in a series circuit. It is
this current flowing across a load resistance that forms the output signal voltage of the tube.
Fig. shows a block diagram of a color TV camera. It essentially consists of three camera tubes in
which each tube receives selectively filtered primary colors. Each camera tube develops a signal voltage
proportional to the respective color intensity received by it. Light from the scene is processed by the
objective lens system. The image formed by the lens is split into three images by glass prisms. These
prisms are designed as diachronic mirrors. A diachronic mirror passes one wavelength and rejects other
wavelengths. Thus, red, green and blue images are formed. This generates the three color signals Vr,Vg,Vb
the voltage levels of which are proportional to the intensity of the colored light falling on the specific
tube.
A color video camera produces three color signals corresponding to the R,G,B components to
the R,G,B components of the color image. These signals must be combined in a monitor to reproduce
the original image. Such a scheme is suitable when the monitor is close to the camera, and three cables
could be used to transmit the signals from the camera to the monitor. Firstly, it requires three separate
cables or wires or channels which increases the cost of the setup for large distances. Secondly, it was
found difficult to transmit the cables at exact synchronism with each each other so that they arrived at
the same instant at the receiving end. Thirdly, for TV signals, the transmission scheme had to adapt to
the existing monochrome TV transmission set up. Additionally it provided a means of compressing the
data during transmission for reducing the bandwidth requirements.
All objects that we observe are focused sharply by the lens system of the human eye on the
retina. The retina which is located at the back side of the eye has light sensitive cells which capture the
visual sensations. The retinal is connected to the optic nerve which conducts the light stimuli to the
optical centre of the brain. According to the theory formulated by Helmholtz the light sensitive cells are
of two types – rods and cones. The rods provide brightness sensation and thus, perceive objects in
various shades of grey from black to white. The cones are sensitive to color and can broadly be classified
into three different groups. The combined relative luminosity curve showing relative sensation of
brightness produced by individual spectral colors is shown in fig.8.4.
Thus, One lumen (lm) of white light = 0.3lm of red+0.59lm of green+0.11lm of blue=0.89lm of
yellow+0.11lm of blue = 0.7lm of cyan+0.3lm of red = 0.41lm of magenta +0.59lm of green.
The RGB model is used mainly in color image acquisition and display. The luminance-
chrominance color system is more efficient and hence widely used. This has something to do with color
perception of the HVS (human visual system). It is known that the HVS is more sensitive to green than
red and the least sensitive to blue.
The luminance component, describes the variation of perceived brightness by the HVS in
different portion of the image without regard to any color information.
The chrominance component, describes the variation of color information in different parts of
the image without regard to any brightness information. It is denoted by C and consists of two sub-
components: hue (H) which is the actual name of the color, e.g. red, and saturation (S) which denotes
the purity of the color.
The RGB output signals from a video camera are transformed to YC format using electronic
circuitry before being transmitted. For a color TV, the YC components are again converted back to RGB
signals which are used to drive the electron guns of a CRT.As a first estimation the brightness (Y)
component can be taken as the average of R,G,and B. However from the color perception curve above
we see that the human eye is more sensitive to the green part of the spectrum than to the red and blue.
The relation between Y and RGB which is used unanimously nowadays is shown as:
This states that the brightness of an image is composed of 30% of red information, 59% of green
information and 11% of blue information.
The C sub-components, ie. H and S, are quantitatively defined in terms of color difference signals
referred to as blue chrominance Cb and red chrominance Cr. These are defined as:
Cb = B – Y
Cr = R – Y
Chroma Sub-sampling
Conversion of RGB signals into YC format also has another important advantage of utilizing less
bandwidth through the use of chroma sub sampling. Studies on visual perception of the eye have shown
that the human eye is less sensitive to color information. This limitation is exploited to transmit reduced
color information as compared to brightness information, a process called chroma sub-sampling, and
save on bandwidth requirements. There can be different schemes of chroma sub-sampling described as
follows.
4:2:2 These numbers indicate the amount of luminance and chrominance transmitted from the
video camera to the TV receiver set. It implies that when the signal is converted into an image on
the TV screen, out of 4 pixels containing luminance information (Y), only 2 pixels contain color sub-
component 1(Cb) and 2 pixels contain color sub –component 2(Cr). The reduction in color
information helps on reduce bandwidth of the transmitted signal(fig 8.9a).
4:1:1 This scheme indicates a still further reduction in color information in the transmitted signal.
The image produced by the signal contain only one-forth of the original color information, i.e. out of
4 pixels containing luminance information (Y), only 1 pixel contain color sub-component 1(Cb) and 1
pixel contain color sub-component 2(Cn). Hence this scheme produces a greater loss in color
information than the 4:2:2 scheme(fig 8.9b).
4:4:4 This scheme implies that there is no chroma sub-sampling at all, i.e. out of 4 pixels
containing luminance information (Y), all 4 pixels contain color sub-component 1(Cb) and all 4 pixels
contain color sub-component 2(Cn). There is no loss in color component and hence the picture is of
the best quality, although the signal would have the highest bandwidth(Fig.8.9c)
4:2:0 In all the above cases sub-sampling is only done along a row of pixels, i.e. horizontally, but
not vertically along a column. The 4:2:0 scheme indicates both horizontal and vertical sub-sampling,
it implies that out of 4 pixels containing luminance information (Y), only 2 pixels contain color sub-
component 1(Cb) and 2 pixels contain color sub-component 2(Cr), both along a row as well as along a
column(Fig 8.9d). Hence the amount of information loss is double that of the 4:2:2 scheme and
comparable to the 4:1:1 scheme.
Component Video:
Composite video:
S-Video:
Short for super-video. An analog video signal format where the luminance and
chrominance portions are transmitted separately using multiple wires instead of the same wire as
for composite video. The connector used is a 4-pin mini-DIN connector with 75ohm termination
impedance.
SCART Connector:
DIGITAL VIDEO:
Analog video has been used for years in recording/editing studios and television
broadcasting. For the purpose of incorporating video content in multimedia production, video
needs to be converted into the digital format.
Full screen video only became a reality after the advent of the Pentium-II processor
together with fast disks capable of delivering the required output. Even with these powerful
resources delivering video files was difficult until the reduction in prices of compression
hardware and software. Compression helped to reduce the size of video files to a great extent
which required a lower bit-rate to transfer them over communication buses. Nowadays video is
rarely viewed in the uncompressed form unless ther is specific reason for doing so e.g., to
maintain the high quality, as for medical analysis. The capture card is usually installed at the PC
end. Alternatively the capture card can be inside a digital video camera which is capable of
producing a digital video output and recording it onto a tape. The digital output from a digital
video camera can also be fed to a PC after necessary format conversion.
Let us first have a look at the existing digital video standards for transmission and
playback.
Enhanced Definition Television Systems (EDTV)
These are conventional systems modified to offer improved vertical and horizontal
resolutions. One of the systems emerging in US and Europe is known as the Improved
Definition Television (IDTV). IDTV is an attempt to improve NTSC image by using digital
memory to double the scanning lines from 525 to 1050. The Double Multiplexed Analog
Components (D2-MAC) standard is designed as an intermediate standard for transition from
current European analog standard to HDTV standard
High Definition (HD) video is a new standard for digital video for improving
picture quality compared to the standard NTSC or PAL formats. They require a high definition
monitor or TV screen (HDTV) to be viewed and have been defined as the ITU-R
recommendations formerly known as CCIR (Consultative Committee for International
Radiocommuniations). There are two alternate formats one relating to the standard 4:3 aspect
ratio screens with 1440 X 1152 pixels. Both use either 4:2:2 sub-sampling scheme for studio
applications with 50/60 Hz frame refresh rate, or 4:2:0 scheme for broadcast applications with
25/30 Hz refresh rate.
PC VIDEO
The TV screens display video as 720 columns by 480 rows or 720 columns by 576
rows(PAL) using a sampling rate of 13.5MHz as per the CCIR recommendations. In order to
avoid distortion on a PC screen it was necessary to use a horizontal addressability of 640 for
NTSC and 768 for PAL.
Analog video needs to converted to the digital format before it can be displayed on a PC
screen. The procedure for conversion involves two types of devices – source devices and capture
devices, as detailed below.
..Video INPUT port to accept the video input signals from NTSC/PAL/SECAM
broadcase signals, video camera or VCR. The input port may conform to the
composite-video or S-video standards.
A/D converter to convert the analog input video signals to digital form.
Video OUTPUT port to feed output video signals to camera and VCR.
D/A converter to convert the digital video data to analog signals for feeding to
output analog devices.
A video capture card is also sometimes referred to as a video frame grabber. The
overview of the main components are:
ADC: The Analog to Digital Converter (ADC) reads the input analog
video signal from an analog video camera or VCP, and digitizes it using
standard procedures of sampling and quantization. The parameters for
digitization include the sampling rate for the visual and audio portions,
the color depth and the frame rate. The sampling rate for the audio
portion is usually chosen as CD-quality, i.e.44.1 KHZ, 16-bit, stereo.
Tuning Parameters
AVI capture
AVI to MPEG Converter
MPEG Capture
DAT to MPEG Converter
MPEG Editor
VIDEO EDITING:
Online and Offline Editing
SMPTE Time Code
Timebase
Edit Decision List(EDL)
CONCLUSION:
While editing and exporting digital video, a concept which needs to be understood is
called rendering. A video editor provides us with a visual interface where we can click and
drag to specify editing operations on video operations. This process of physically changing
the data based on some instruction given via an interface is known as rendering. Depending
on the amount of video data and the nature of operations rendering may often span for
several hours and even for days. In most cases AVI and MOV formats are usually supported,
in some cases creating other formats like MPG may also be possible.
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner
Scanned by CamScanner