Introduction to Computing and Programming in Python a Multimedia Approach Mark J. Guzdial download
Introduction to Computing and Programming in Python a Multimedia Approach Mark J. Guzdial download
or textbooks at https://ebookultra.com
https://ebookultra.com/download/introduction-to-computing-
and-programming-in-python-a-multimedia-approach-mark-j-
guzdial/
https://ebookultra.com/download/python-programming-an-introduction-to-
computer-science-john-m-zelle/
https://ebookultra.com/download/principles-of-soft-computing-using-
python-programming-1st-edition-gypsy-nandi/
https://ebookultra.com/download/introduction-to-python-for-science-
and-engineering-second-edition-david-j-pine/
https://ebookultra.com/download/an-introduction-to-programming-in-
emacs-lisp-2nd-edition-robert-j-chassell/
Flow based Programming A New Approach To Application
Development 2nd Edition J. Paul Morrison
https://ebookultra.com/download/flow-based-programming-a-new-approach-
to-application-development-2nd-edition-j-paul-morrison/
https://ebookultra.com/download/ubiquitous-multimedia-computing-1st-
edition-qing-li/
https://ebookultra.com/download/functional-programming-in-python-1st-
edition-david-mertz/
https://ebookultra.com/download/data-mining-multimedia-soft-computing-
and-bioinformatics-1st-edition-sushmita-mitra/
Introduction to Computing and Programming in Python a
Multimedia Approach Mark J. Guzdial Digital Instant
Download
Author(s): Mark J. Guzdial
ISBN(s): 9780131176553, 0131176552
Edition: Pap/Cdr
File Details: PDF, 4.61 MB
Year: 2005
Language: english
Introduction to Media Computation:
A Multimedia Cookbook in Python
Mark Guzdial
I Introduction 5
2 Introduction to Programming 19
2.1 Programming is about Naming . . . . . . . . . . . . . . . . . 19
2.1.1 Files and their Names . . . . . . . . . . . . . . . . . . 21
2.2 Programming in Python . . . . . . . . . . . . . . . . . . . . . 22
2.2.1 Programming in JES . . . . . . . . . . . . . . . . . . . 23
2.2.2 Media Computation in JES . . . . . . . . . . . . . . . 23
2.2.3 Making a Recipe . . . . . . . . . . . . . . . . . . . . . 32
II Sounds 43
iii
iv CONTENTS
4 Creating Sounds 97
4.1 Creating an Echo . . . . . . . . . . . . . . . . . . . . . . . . . 98
4.1.1 Creating Multiple Echoes . . . . . . . . . . . . . . . . 99
4.1.2 Additive Synthesis . . . . . . . . . . . . . . . . . . . . 100
V Files 175
VI Text 181
14 Recursion 205
15 Objects 207
16 Java 211
16.1 Java examples . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
vi CONTENTS
List of Figures
vii
viii LIST OF FIGURES
4.1 The top and middle waves are added together to create the
bottom wave . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
4.2 The raw 440 Hz signal on top, then the 440+880+1320 Hz
signal on the bottom . . . . . . . . . . . . . . . . . . . . . . . 110
4.3 FFT of the 440 Hz sound . . . . . . . . . . . . . . . . . . . . 110
4.4 FFT of the combined sound . . . . . . . . . . . . . . . . . . . 110
4.5 The 440 Hz square wave (top) and additive combination of
square waves (bottom) . . . . . . . . . . . . . . . . . . . . . . 111
4.6 FFT’s of the 440 Hz square wave (top) and additive combi-
nation of square waves (bottom) . . . . . . . . . . . . . . . . 111
5.16 Original picture (left) and mirrored along the vertical axis
(right) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
5.17 Flowers in the mediasources folder . . . . . . . . . . . . . . 141
5.18 Collage of flowers . . . . . . . . . . . . . . . . . . . . . . . . . 142
5.19 Increasing reds in the browns . . . . . . . . . . . . . . . . . . 147
5.20 Increasing reds in the browns, within a certain range . . . . . 148
5.21 A picture of a child (Katie), and her background without her 149
5.22 A new background, the moon . . . . . . . . . . . . . . . . . . 149
5.23 Katie on the moon . . . . . . . . . . . . . . . . . . . . . . . . 150
5.24 Mark in front of a blue sheet . . . . . . . . . . . . . . . . . . 150
5.25 Mark on the moon . . . . . . . . . . . . . . . . . . . . . . . . 151
5.26 Mark in the jungle . . . . . . . . . . . . . . . . . . . . . . . . 152
5.27 Color: RGB triplets in a matrix representation . . . . . . . . 159
5.28 Color: The original picture (left) and red-reduced version (right)160
5.29 Color: Overly blue (left) and red increased by 20% (right) . . 160
5.30 Color: Original (left) and blue erased (right) . . . . . . . . . 161
5.31 Color: Lightening and darkening of original picture . . . . . . 161
5.32 Color: Negative of the image . . . . . . . . . . . . . . . . . . 162
5.33 Color: Color picture converted to greyscale . . . . . . . . . . 162
5.34 Color: Increasing reds in the browns . . . . . . . . . . . . . . 163
5.35 Color: Increasing reds in the browns, within a certain range . 164
This book is based on the proposition that very few people actually want to
learn to program. However, most educated people want to use a computer,
and the task that they most want to do with a computer is communicate.
Alan Perlis first made the claim in 1961 that computer science, and program-
ming explicitly, should be part of a liberal education [Greenberger, 1962].
However, what we’ve learned since then is that one doesn’t just “learn to
program.” One learns to program something [Adelson and Soloway, 1985,
Harel and Papert, 1990], and the motivation to do that something can make
the difference between learning to program or not [Bruckman, 2000].
The philosophies which drive the structure of this book include:
• Repetition is good. Variety is good. Marvin Minsky once said, “If you
know something only one way, you don’t know it at all.” The same
ideas come back frequently in this book. The same idea is framed in
multiple ways. I will use metaphor, visualizations, mathematics, and
even computer science to express ideas in enough different ways that
one of the ways will ring true for the individual student.
• The computer is the most amazingly creative device that humans have
ever conceived of. It is literally completely made up of mind-stuff. As
the movie says, “Don’t just dream it, be it.” If you can imagine it,
1
2 LIST OF FIGURES
Typographical notations
Examples of Python code look like this: x = x + 1. Longer examples look
look like this:
def helloWorld():
print "Hello, world!"
When showing something that the user types in with Python’s response,
it will have a similar font and style, but the user’s typing will appear after
a Python prompt (>>>):
>>> print 3 + 4
7
def helloWorld():
print "Hello, world!"
End of Recipe 1
Making it Work Tip: An Example How To
Make It Work
Best practices or techniques that really help are high-
lighted like this.
Acknowledgements
Our sincere thanks go out to · · ·
• Jason Ergle, Claire Bailey, David Raines, and Joshua Sklare who made
JES a reality with amazing quality for such a short amount of time.
Jason and David took JES the next steps, improving installation, de-
bugging, and process support.
• Adam Wilson built the MediaTools that are so useful for exploring
sounds and images and processing video.
• Jeff Pierce for reviewing and advising us on the design of the media
language used in the book.
• Kurt Eiselt who worked hard to make this effort real, convincing others
to take it seriously.
4 LIST OF FIGURES
• Janet Kolodner and Aaron Bobick who were excited and encouraging
about the idea of media computation for students new to computer
science.
• Joan Morton, Chrissy Hendricks, and all the staff of the GVU Center
who made sure that we had what we needed and that the paperwork
was done to make this class come together.
CAPTURED BY HIGHWAYMEN.
MORTON’S SECRET.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookultra.com