TouchDevelop Chapter 5-7 Chapter 5 Audio Chapter 6 Camera, Graphics and Video Chapter 7 Sensors Mengfei Ren.

Slides:



Advertisements
Similar presentations
Creating Online Presentations. Creating a Presentation To create a presentation 1.Open PowerPoint. In the task pane under New select From Design Template,
Advertisements

AV Operating Instructions
CANYON MP3 Player Presentation Compiled and created by Uviwe Nzotho.
Global MP3 Geoffrey Beers Deborah Ford Mike Quinn Mark Ridao.
                      Digital Audio 1.
Audio and Visual Technologies
Investigating the sound quality of different audio file formats In this activity, we are going to record a short voice sample with a sound recording tool,
Lesson 01: The Digital Experience  Transition from traditional devices to multipurpose digital devices. Wired phones move to cell phones and now smart.
Inserting Pictures & Sounds into a PowerPoint Presentation Mary Trewatha Yankton TTL June 2002.
Int 2 Multimedia Revision. Digitised Sound Analogue sound recorded from person, or real instruments.
User Guide and Trouble-shooting Information. A classroom set of 20 cameras are available for teacher and student use. Capable of taking video, but recommend.
Creating Mobile Apps with App Inventor! Day 4 Google search Kris Gordon Ludlow for links.
Discovering Computers: Chapter 1
Una DooneyMultimediaSlide 1 What is Multimedia? A combination of different media types such as text, graphics, audio, video and animation etc in a single.
Microsoft Office Illustrated Inserting Illustrations, Objects, and Media Clips.
Input Devices Image Capture Devices, Sound Capture Devices, Remote Controls PREPARED & PRESENTED BY: FAHAD AHMAD KHAN.
CHAPTER 3&4 ZHONGWEI LI TouchDevelop Book. What are we covering Review of Chapter 1-2 TouchDevelop as a scripting language: actions, events, table and.
Adapted from CTAE Resources Network PROFITT Curriculum Basic Computer Skills Module 1 Hardware.
CS371m - Mobile Computing Audio.
Text. Graphics Images – photos Animation Video Audio Text Copyright issues.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 41 How Animation on the Web Works.
Creating a MagicInfo Pro Screen Template
Touchdevelop api api sound & microphone record sound Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including.
Chapter 11 Adding Media and Interactivity. Flash is a software program that allows you to create low-bandwidth, high-quality animations and interactive.
1 TouchDevelop Chapter 8-10 Presenter: Jing Xu. 2 Outline Interactions Game Board Tiles and Printing.
1 Skip Cave Chief Scientist, Intervoice Inc. Multimodal Framework Proposal.
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 4. Peripherals Input Devices Keyboard Mouse Scanners Microphone Digital.
What’s new for Windows 8 Devs Part 3 Lewis Benge Devices & Integration Team TBWA\Digital Arts Network DEV216.
NV V5.7 Product Presentation. Brand New Professional GUI  Multiple User Interface for different look and feel  Audio indicator on camera (play audio.
Discovering Computers 2010 Chapter 2 The Internet and World Wide Web.
Technology in Action Alan Evans Kendall Martin Mary Anne Poatsy Twelfth Edition.
 Using Screenr, Jing, and QuickTime Plus some alternatives!
To download PhotoStory: Go to On the left side under Product Resources, click on Downloads.
Multimedia and The Web.
2.02 Develop Computer Animations Review By: Adam Garcia,Christian Brown, Richard Williams, Tyler Borden.
Multimedia Chapter 1 Introduction to Multimedia Dhekra BEN SASSI.
Fill in the blanks: The _____________ utility in Windows’ Accessories is used for running audio CD. For recording sound, there must be _________ in the.
Chapter 7 Multimedia on the Internet. Audio on the Internet Music, sound clips, radio, voices Downloading Audio (File Size) Sound Software + Sound Card.
Multimedia Web Design Professor Frank. Multimedia Combine text, graphics, sounds, and moving images in meaningful ways Use stable technology.
Sound or Audio, whichever you prefer –MIDI Files.midi or.mid (Musical Instrument Digital Interface) use for instrumental music. –This format is supported.
MULTIMEDIA DEFINITION OF MULTIMEDIA
DImpack By Chau Ngo EEL 6788 Spring Outline Problem Statement/Motivation Software Overview Demo Technical Difficulties Lessons Learned Improvements.
Input By Hollee Smalley. What is Input? Input is any data or instructions entered into the memory of a computer.
Discovering Computers Fundamentals, Third Edition CGS 1000 Introduction to Computers and Technology Spring 2007.
Moviemaker Tutorial: Titles Adding Video & Pics Transitions MenuNextPrevious Video Effects Sounds Labels & Captions.
M404 Multimedia Elements Form 4.
XP Practical PC, 3e Chapter 15 1 Creating Desktop Video and Animation.
Chapter 5: Input CSC 151 Beth Myers Kristy Heller Julia Zachok.
Specialized Input and Output. Inputting Sound ● The microphone is the most basic device for inputting sounds into a computer ● Microphones capture sounds.
 Persistence of Vision-The way our eyes retain images for a split second longer than they actually appear, making a series of quick flashes appear as.
Introduction to Flash Animation CS 318. Topics Introduction to Flash and animation The Flash development environment Creating Flash animations  Layers.
Touchdevelop api api gyroscope measure device rotation rate Disclaimer: This document is provided “as-is”. Information and views expressed in this document,
Media Types Information Systems can contain the following types of media: Sound, graphics, video & text.
IMovie 10 Overview. Importing Files from a Video Camera into iMovie 1.Plug the camera into a wall outlet using the power supply. (Some cameras will not.
CSCI-100 Introduction to Computing Hardware Part II.
Photo Story. How to use Photo Story Photo Story 3 can be located in the Accessories folder on school computers. You will need to have your pictures already.
Chapter 11 Adding Media and Interactivity. Chapter 11 Lessons Introduction 1.Add and modify Flash objects 2.Add rollover images 3.Add behaviors 4.Add.
The ambient light sensor in a smart phone is what measures how bright the light is. It’s the phones software that adjusts the brightness in the display.
Sensors For Mobile Phones  Ambient Light Sensor  Proximity Sensor  GPS Receiver Sensor  Gyroscope Sensor  Barometer Sensor  Accelerometer Sensor.
Addison Wesley is an imprint of © 2010 Pearson Addison-Wesley. All rights reserved. Starting Out with Games & Graphics in C++ Tony Gaddis Chapter 8 The.
California State University, LA Presented by Amanda Steven StevenAamirObaid.
How to Get around on a ipod Table of Contents Which ipod are you ? There are 6 different ipods they have some different features but all do the same.
1 AQA ICT AS Level © Nelson Thornes 2008 Operating Systems What are they and why do we need them?
Camera Basics. Film (Analog) Cameras Digital Cameras Types of Cameras.
CHAPTER 8 Sensors and Camera. Chapter objectives: Understand Motion Sensors, Environmental Sensors and Positional Sensors Learn how to acquire measurement.
Animations & Multimedia LESSON 9 #2.09 USING ANIMATION AND MULTIMEDIA.
TECHNOLOGY IN ACTION. Chapter 8 Digital Devices and Media: Managing a Digital Lifestyle.
Chapter 8 Digital Media.
Mobile Handset Sensors
                      Digital Audio 1.
Presentation transcript:

TouchDevelop Chapter 5-7 Chapter 5 Audio Chapter 6 Camera, Graphics and Video Chapter 7 Sensors Mengfei Ren

5 Audio 5-1 Music 5-2 Radio 5-3 Sounds 5-4 Microphone 5-5 Media Player on a Home Network

5 Audio A smartphone could play music such as MP3 files, audio streamed over the internet or media center All the media files could be synchronized to the phone using Zune, or purchased and downloaded via the Marketplace and the Internet

5-1 Music The smartphone supports three music formats, AAC, MP3, and WMA. The TouchDevelop API provides the media resource for retrieving collections of all the songs, albums, and playlists. However, these collections couldn’t changed by TouchDevelop. [1]

5-1 Methods for Songs, Albums and Playlists [1]

5-1 Methods for Songs, Albums and Playlists(cont.) [1]

5-1 Play the Songs When there is new album or playlist sent to the player, it creates a queue of songs to be played. The songs will be played in order that they appear in the album or playlist. Requesting to play a new song when there is a song playing, the current one will be terminated and the queue be cleared before the new one starts. Playing songs is a background event.[1] Demo 5-1

5-1 Methods for Playing Songs

The song’s volume ranges from 0.0 to 1.0. The value of 0.0 means mute, however the value of 1.0 does not mean the maximum which the phone is capable. The value of 1.0 is related to the current volume of the cell phone. If the phone is under mute mode, the speaker is set to off and there is no any audible sounds.

5-2 Radio The radio plays as a background activity. The radio will only stop if the method radio  stop is called or if the user shuts off the radio externally to the script. [1] Demo 5-2

5-3 Sounds The Sound datatype is used for audio recordings in the WAV format. The files in WAV format is commonly used used for short sound clips (30 seconds or less).[1] – This format is commonly used for uncompressed audio and therefore the files tend to be large. – No method is provided for stopping playback of the clip before it is finished.

5-3 Methods for Sound Datatype

5-4 Microphone API for making a recoding var snd := senses  record microphone The word “Recording…” and a stop button will be displayed on the screen.

5-5 Media Player on a Home Network A media center can transmit videos and music onto the phone over a Wi-Fi network. The phone could be a remote control for the media player. TouchDevelop provides the Media Server datatype for a media center. The script could search and retrieve the songs and videos. To play a song from media server: player  play home media (mlink) Demo 5-3

5-5 Methods for Media Server[1]

6 Camera, Graphics, Video 6-1 Camera 6-2 Static Graphics Drawing and Display 6-3 Playing Videos from the Internet 6-4 Media Player

6-1 Camera To create the picture, the cell phone should at least have a camera on the back, which is the primary camera. To access the camera, TouchDevelop provides the senses service. Also the Camera datatype to retrieve information about the camera and take a quick low- quality picture. To show the picture on the wall, there are two methods.

6-1 Ways to Take Pictures High-quality picture: senses  take camera picture Not immediately take the picture. It calls the phone’s built-in software for using the camera and displays a preview image on the screen. Take the picture until the button pressed. Low-quality picture: senses  front camera  preview Demo 6-1

[2] Demo 6-2

6-1 The at, pixel and set pixel Methods The methods could be used only on pictures containing a modest number of pixels. The picture taken by the camera contain as many pixels as the camera’s resolution. When showed on the screen, the picture is scaled to fit the screen’s size, however, its original number of pixels is stored in the memory. The at and pixel methods both retrieve the color of a particular pixel.

6-1 The at, pixel and set pixel Methods (cont.) However, the at method does not care where the pixel is located within the picture. It provides more efficient access all the pixel than the pixel method. The equivalence between the two ways to access a particular pixel:

6-1 Picture Effects [2]

Example: Picture Overlaying Demo 6-6

6-2 Static Graphics Drawing TouchDevelop provides many methods for drawing lines and shapes. The create picture method is to create a new board to draw lines and shapes. var pic := media  create picture(400,200) Demo 6-3

6-2 Drawing Methods Picture [2]

6-3 Playing Videos from the Internet TouchDevelop doesn’t provide access to video files held on the phone. Nor can a script download a video to the phone. A script can access and play videos which are streamed from the internet or a media server.[2] Demo 6-4

6-4 Media Player A media center could send pictures to the phone and stream videos to the phone. [2]

6-4 Media Player (cont.) Demo 6-5 TouchDevelop does not provide methods to stop the video playing from within the script. To stop the playing video, – Tap the screen and see the pause/continue button – Pause the video and tap the back button to stop the execution in the script.

7 Sensors 7-1 The Sensors 7-2 Sensor-Driven Events 7-3 Accelerometer 7-4 Compass 7-5 Gyroscope 7-6 Motion

7-1 Sensors GPS(Global Positioning System): obtains the phone’s current location on the map Accelerometer: measures gravitational and acceleration Compass: returns the direction of magnetic north Gyroscope: measures the phone’s orientation in 3D space [3]

7-1 Sensing Methods [3]

7-2 Sensor-Driven Events A script can use the event of effect an action, such as pausing the playback of an audio recoding. Demo 7-1 [3]

7-3 Accelerometer The phone measures the force by the accelerometer when it is shaken or moved, which combines acceleration with gravity. The acceleration is in any direction in three dimensional space. The TouchDevelop API use the Vector3 datatype to present the current force in three dimensions. Demo 7-2, 7-3

7-3 Accelerometer (cont.) (0,0,-1) – the phone is lying flat on the table (0,-1,0) – the phone is held vertically with its bottom edge on the table The TouchDevelop reports the force in g (gravitational) units. Any stationary object is subjected to a force of 1g in the downwards direction [3]

7-4 Compass Report the phone’s orientation with respect to magnetic north. Demo 7-4

7-5 Gyroscope

7-6 Motion The TouchDevelop provides the Motion datatype to present the current location which is measured by the combination of the various sensor components. [3]

7-6 Motion (cont.) The force caused by gravity and the additional force caused by acceleration is separated. The method just returns a true acceleration without the gravitational force. The accurate value of the orientation can be obtained for the time when it was captured. The true orientation is known as its attitude that measured via three methods, pitch, roll and yaw.

7-6 Motion (cont.) These methods is measured in degrees, respectively relative to three orthogonal axes. The axes are diagrammed in the plane.

References [1] bookchapter5.pdfhttps://az31353.vo.msecnd.net/cpd/kyei- bookchapter5.pdf [2] bookchapter6.pdfhttps://az31353.vo.msecnd.net/cpd/axwq- bookchapter6.pdf [3] bookchapter7.pdfhttps://az31353.vo.msecnd.net/cpd/mxnl- bookchapter7.pdf