Introduction to the UDML
Topics
- Using the iMacs
- Software in the UDML
- Equipment Checkout
- Using Special Equipment in the Lab
- JES/Python
- Lab Marking
- References
- Homework
1. Using the iMacs
Probably the most
important highlight of this lab!
1.1 Logging in:
- Log into an iMac with your
UofR username and password
1.2 Accessing Network
Storage (small files only please)
There are two ways of accessing your network drive:
- Using the icon on the dock with your username:
- Click on the icon on the dock that looks something like this:
- Click on the "Open in Finder" button
- Using Finder:
- Click on the "Finder"
icon on the dock. It will look like this:
- Click on "compserv3" on the left-hand
side
- Double click on the "I-Drive" folder
- Double click on the folder with the first letter for your username
- Double click on "your" folder
- Any files that you have saved on the Window's machines will be here.
Note: anything that is saved on the network drive
will be available on any computer in the room.
Anything that is saved to the Desktop, will only be on that machine.
1.3 Storage Notes:
- Files left in local storage (like the Desktop)
will be deleted if there is a problem with that workstation.
- Get a good sized USB thumb drive and use it to back up your important projects regularly.
2. Multimedia Software Available in the
UDML
- Adobe CS6 Production Premium
- Photoshop - the industry
standard in pixel based graphic
editors.
- Illustrator - the industry
standard in vector based graphic
editors.
- Flash - common web
interaction platform.
- Premiere Pro - professional
non-linear video editor. Comparable to
Final Cut Pro.
- After Effects - video
effects tool.
- Encore - DVD and Blu-Ray
authoring tool.
- Other tools that are part of CS6 Production Premium:
- Audition
- Speed Grade
- Prelude
- Media Encoder
- Bridge
- Apple iLife Suite
- iPhoto - good for storing, viewing, editing and sharing digital pictures.
- iMovie HD - easy to use
video editor. Great for beginners.
- GarageBand - great all
around sound production tool. Based on Apple's award winning Logic
product.
- Avidemux - a free and open-source video editing program. It makes extracting frames from video very easy.
- Audacity - a free and easy to use audio editor and recorder.
- HandBrake - a free and open-source video transcoder that enables you to convert most video formats to MPEG-4 (and a few other formats)
- JES (Jython Environment for Students) - a special programming environment that makes it easier to program in Jython. Jython is a version of Python. There is a special section about this below.
2.1 Finding and Using Applications:
- Applications Folder
- Click the "Finder" icon
on the dock
- Click the Applications
place on the left of the window that pops up.
- Look through the
applications you see there for the one you want then double click it.
- Spotlight Search
- Not all applications are
in the applications folder. Spotlight lets you search for any file or folder
quickly and easily.
- Click the magnifying
glass in the upper right corner of the screen.
- Type the name of what
you are looking for.
- Possible matches are
listed as you type and sorted by category.
- Dock
- At the bottom of the screen is a dock where you can see
running applications and icons for your favorite applications.
- Running programs have a glowing dot under them. Switch to
them by clicking the icon. You can tell what application is active by
looking at the menu bar at the top of the screen.
- To start an application click the icon once, then wait.
- If you start a program by another method you can add it
to the dock by right clicking it and selecting "Keep in Dock"
To stop a program you should go to the applications main menu and select quit, or use Command-Q. Often Mac programs will keep running even if all their windows are closed. Look for the glowing dot under its icon. Right or control click and choose quit to stop it completely.
3. Equipment Checkout
From time to time you may wish
to checkout
the equipment available in the Media Production Department. We may use
some of this equipment in the labs but you may also wish to use it for
your class project. Equipment includes:
- Digital still cameras
- Audio recorders
- Mini DV still cameras
- Tripods
- Panoramic tripod heads
- Headphones, etc.
The location of the Media
Production department and the contact person therein is as follows:
- Location: Media Production
Department ED 152 (A maze to get there indeed!!)
- Contact person: Equipment
Room Technician Joe Caron 585-4857
The Computer Science department also has five JVS HD Everio video cameras. They will be available to borrow for a week at a time, which gives you time to learn the camera and record your projects.
4. Using Specialized Equipment in the Lab
You will notice that this lab has some specialized equipment that not all of the labs have. There is a scanner, two super-vhs machines, and a Roland midi keyboard.
4.1 Using the UDML Scanner
- Login to the machine to the left of the scanner
(on the north
wall... opposite
the glass wall ;-)
- Lift the lid and put you photo face-down on the scanner.
- Close the lid.
- You now have two ways of scanning:
- Use the button on the scanner
- Press the button on the left-hand side closest to the lid.
- The scanning software will start.
- Scan to your heart's content.
- Use Photoshop
- In the Photoshop menu, select "File" | "Import" | "Images From Devices"
- Away you go!
4.2 Using the Super-VHS
Machines
- Login to the right hand
iMac on the north wall...
opposite
the glass wall ;-)
- Put a Mini-DV or VHS
cassette into tape machine on the shelf.
- You can use Premiere or iMovie to do the capturing. Be sure your project is stored on the Hard Disk and not in a network folder.
- In Premiere:
- select "File | Capture..." to get this window:
If this is your first capture in this project you will see the Capture Settings dialog (1)
If you don't see (1), click the Settings tab (2), then Edit (3)
Click Video... (4) and go edit your source. The video capture deck has a label on the front with its name on it.
You might want to explore other settings. I suggest you capture with the Apple Intermediate Codec to improve editing performance.
- in iMovie set the toggle to the camera icon and click "Import"
4.3 Using the Roland MIDI Keyboard
- The Roland MIDI keyboard in the back of the room is only a controller and sequencer - it has no speakers and no built in sounds.
- You can use it to control software instruments in GarageBand.
- The on off switch is located on the back of the keyboard. Please turn it off when you are done.
5. JES/Python
As we said in an early section, JES stands for Jython Environment for Students. It is a special programming environment developed for a Media Computation curriculum by Mark Guzdial and Barbara Ericson at Georgia Tech. JES includes everything (functions and interfaces) that we need to work with multimedia easily.
You might be wondering what Jython is. Jython is a version of Python. To give you an understanding, Python is normally implement using C. By contrast, Jython is implemented in Java. It is a form of Python so the syntax of the two will be quite similar; although, there are underlying differences. You will find that the labs are labelled as "Python and Something". This is consistent with the book by Guzdial and Ericson; but, to be exact, what we will be working with is a version of Python known as Jython.
5.1 Downloading JES
If you would like to work at home, you can install JES on your own computer. You can get it from:
http://code.google.com/p/mediacomp-jes/downloads/list
From the list, choose the platform that you are working on to download and install the software.
5.2 Running JES
In the lab, to run JES, type JES in the Spotlight search (upper right-hand corner). From the list, you will click to choose the JES application (shown below).
When JES is running, there are three main areas (illustrated below):
- Program Area - This is the area where we can type our programs or functions in Jython. In order for JES to find the functions that we have in the Program Area, we need to first load them by click on the Load Program button. Let us try it out by typing (or copying and pasting) the following into the Program Area (note that the indentation is important):
def showPict():
file=pickAFile()
picture = makePicture(file)
show(picture)
You can now choose File > Save Program As.... In the dialog box, select a directory and type a name with a .py extension.
Click on the Load Program button.
- Command Area - This is where you type commands to make something happen. Either you can call your own "loaded" functions, or you can call functions that are built-in to the language. Try typing the following in the Command Area:
showPict()
print 34 + 56
print 1/2
- Help Area - You do not see this area unless you either: 1) click on some function in the Program Area and then click on the Explain button (at the bottom) or 2) choose an option from the Help menu.
You will also notice that there are two additional buttons: Watcher and Stop. Watcher is a debugger and Stop allows you to stop a running program if you realize that it is taking too long or doing something wrong.
5.3 Overview of Python Syntax
There are some things that are obviously different from C++. These are things worth briefly mentioning so that you realize what is going on if your Python/Jython code is not working.
In general, Python is meant to be a simpler and easier to read than C++:
- Python has no semi-colons at the end of statements
- Python has no curly brackets. Be aware, however, that indentation is important. If you indent statements inside of a control statement, that indicates to Python that those statements belong within the control statement. For instance, a while statement might look like this:
counter=0
while counter < 3:
print 'loop#%d' % (counter)
counter +=1
The above code would not work if counter +=1 was left-aligned (the same as the while) because, to Python, that would mean that the counter+=1 statement was not included in the while loop.
- You might have noticed some other differences in the code above:
- the colon(:) after the control statement
- no parentheses around the condition (counter < 3)
- the print statement
- Function definitions also have a colon (:). Without realizing it, we already defined the following function:
def showPict():
file=pickAFile()
picture = makePicture(file)
show(picture)
Notice the use of the keyword def
- Comments are denoted with the hash or pound sign (#). Anything that comes after the # on a line is taken as a comment.
The above list includes the most major differences. You are sure to encounter others throughout the labs on Python. For now, be aware that some syntax (like semi-colons and brackets) are not a part of the Python language and that indentation shows where a statement belongs.
6. Lab Marking
6.1 Mark Distribution
- Graded labs are worth 2% each.
- Labs 1 to 10 are graded for a total of 20% of the class grade.
- Artistic merit and technical difficulty will be weighted equally on all labs.
- Attendance is taken and is worth 1/3 of your lab grade.
Please note that it is based on Punctual attendance
6.2 Submission
For most labs a final product, source materials and a description of the techniques you used are expected. Please organize them all into one folder.
Lab work is due at the beginning of the next lab. Your lab instructor is experimenting with submission mechanisms. You may be asked to use special software or an online service. You may also be asked to move your files to a USB device that is passed around during the lecture.
6.3 Note on Lab Material
The lab material will be posted
on this website: https://www.cs.uregina.ca/Links/class-info/325/.
Dr. Hepting and I are working together to improve the lab material, so labs may change topic or content shortly before the week's lecture begins.
7. References
- Introduction to JES and Code examples based on: Computing and Programming in Python, a Multimedia Approach, by Mark J. Guzdial and Barbara Ericson (Chapter 2)
8. Homework
For next week's lab orient yourself thoroughly:
- Get and test your lab keycard.
- Get comfortable using the iMacs by doing a little surfing in the UDML.
- Install JES on your home machine.
- Try out the equipment:
- Scan something on the scanner - some art, a photo of yourself, a technical diagram. Whatever.
- Capture video from the built in iSight camera in Premiere or iMovie.
- Play some music on the MIDI keyboard using GarageBand.