Introduction to sound using processing. 2 Minim –A sound library which uses javasound library –Provide convenient but flexible way to play,, synthesize.

Slides:



Advertisements
Similar presentations
CREATING AUDIO FILES TO START AUTOMATICALLY WITH EACH SLIDE TEAM MARTHA-DAVID NOVEMBER 16, 2011.
Advertisements

I/O means Input and Output. One way: use standard input and standard output. To read in data, use scanf() (or a few other functions) To write out data,
Using Audacity Audacity is an audio-editing application available from and can be used with most PC operating systems.
OutLine of Tutorial 3 Memory Allocation Const string New string(byte array) Read memory in simulator Function invocation How Import library files Modify.
1 More on Applets Overview l Changing Colors l Changing Fonts & Styles l Applet Life-Cycle l Input using Dialog Window l Input using HTML parameters l.
Libraries David Meredith Aalborg University.
What to do for Project 2?.
2 Information Processing
Module 4- Build a Game I Can’t Hear You! Sound. Sound formats in Scratch  Scratch can read MP3 files and uncompressed WAV, AIF, and AU files.  Just.
David Meredith Minim David Meredith
Free open source audio recording and editing software 1Using Audacity.
Audacity: a step-by-step tutorial Presented by: Terry W. Hoffland.
Garfield Graphics included with kind permission from PAWS Inc. All Rights Reserved. Making a PowerPoint Presentation 02 Adding Sound.
Chapter 14 Sound. Sound  Sound can be used for narration, background soundtracks, rollover noises, and for sound effects to complement animations. 
COMPUTER PROGRAMMING 2 Chapter 7 Sound. Objectives Find out how to prepare sounds for inclusion in Microsoft XNA projects. Incorporate sounds into XNA.
FUNDAMENTALS OF PROGRAMMING SM1204 Semester A 2011.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter Java Multimedia: Images, Animation, Audio.
Dealing with Serious Injuries Power to stop play Err on side of caution – e.g. always stop play quickly for head injuries Allow trainer to assess injury.
Macromedia Flash 5 Intermediate Level Course. Animation Basics Playhead In-Between Frames Keyframe Current Frame Number Framerate Current Time Frames.
Audio Chapter 17 - Student. (c) 2005 by Elizabeth Sugar Boese Audio Files Java can play the following audio types: .au (Sun Audio) .wav (Windows Wave)
Java Audio.
Implementing 3D Digital Sound In “Virtual Table Tennis” By Alexander Stevenson.
Animations & Transitions
UFCEXR-20-1Multimedia Sound Production An Introduction to Using Logic Studio.
Computer Programming For Musical Applications II Tutorial 08 Recording in SuperCollider 21st November, 2008.
KS3 – Grade8, Yew Wah. Main controls at the left top. It’s a standard media player.
RFID Editing and setup. Collect your content and organise it how you want it to be viewed and save it somewhere so you can find it easily. (Media formats.
Chapter 11 Adding Sound and Video. Chapter 11 Lessons 1.Work with sound 2.Specify synchronization options 3.Modify sounds 4.Use ActionScript with sound.
Audio and Video CGS Some Common Audio Formats Format Use Extension MIDI instrumental music.mid MPEG songs.mp3 RealAudio live broadcasts.ra Wave.
(c) 2008 E.S.Boese All Rights Reserved. Threads and Media Chapter 8 - Lecture Slides 1.
Playing Music in Alice By David Yan Under the direction of Professor Susan Rodger July 2015.
AUDIO MEDIA 1 Created } “Borrowed” } Microphone MIDI keyboard CD’s & flash drives Internet Audio Sources 2.
Sound or Audio, whichever you prefer –MIDI Files.midi or.mid (Musical Instrument Digital Interface) use for instrumental music. –This format is supported.
Copyright © 2003 Pearson Education, Inc. Chapter 5 – Slide 1 by Michael Kay The Web Wizard’s Guide to Flash.
Introduction to Processing CS 4390/5390 Fall 2014 Shirley Moore, Instructor September 3,
Getting started with AUDIOMULCH. Background AudioMulch is not really designed for work in primary schools, and so there is a lot that you may wish to.
Sound DirectMusic & DirectSound. DirectShow Video Formats DirectShow is an open architecture, it can support any format as long as there are filters to.
Creating Interactive Polls With Video Clip Current as of
Inserting Music into PowerPoint Diane Newby, Ed.D.
5-1 OBJ Copyright 2003, Paradigm Publishing Inc. Adding Sound, Video, and Basic Interactivity with Buttons Macromedia Flash Design & Application.
Introduction to Objective-C and Xcode (Part 5) FA 175 Intro to Mobile App Development.
Soundscapes James Martin. Overview Problem Statement Proposed Solution Solution Created (Modules, Model, Pics) Testing Looking Back See It in Action Q&A.
Multimedia: Audio and Video Kyle Hawver. BGSOUND element Should be placed in the HEAD section of the HTML document Has 4 key properties: – SRC – URL of.
FUNDAMENTALS OF PROGRAMMING SM1204 SEMESTER A 2012.
Begin a new story or edit a Photo Story project that has already been created. Make your selection and click next. 1.
Game Art & Sound. Sound ● Midi files – Musical Instrument Digital Interface – Advantages ● small ● fast – Disadvantages ● synthesized ● rendered ● Wav.
line.net/ okpop.com/bar elythereflashin dex.html.
Chapter 16 Multimedia F Audio Files F Playing Audio F Running Audio on a Separate Thread F Displaying Images F Displaying a Sequence of Images  Using.
Sound and the Web. Transferring sound Download Progressive Download Stream.
An Introduction to Programming with Alice Playing an Alice World.
1 Sound in Java Summary: r Sound API Basics r MIDI JavaSound - Part of the UIT User Interface Toolkit.
1 PJSUA – A Command Line SIP User Agent Speaker: Li-Wen Chen Advisor: Quincy Wu Date: 2010/01/07.
Audio Streaming © Nanda Ganesan, Ph.D.. Audio File Features Audio file is a record of captured sound that can be played back –The WAV File is an example.
AUDACITY AUDACITY RECORDING/EDITING SOFTWARE. TRANSPORT CONTROLS AUDACITY RECORDING/EDITING SOFTWARE TRANSPORT CONTROLS.
© 2011 Delmar, Cengage Learning Chapter 11 Adding Sound and Video.
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.
Week 10 - Friday.  What did we talk about last time?  References and primitive types  Started review.
Adobe AuditionProject 4 guide © 2012 Adobe Systems IncorporatedHow to record narration1 You can record narration for your video directly into Adobe Audition.
Multimedia Multimedia obuhvata sve što može da se vidi, čuje, pročita Multimedijalni sadržaji mogu biti u različitim formatima Podrška Internet browser-ima.
Chapter 14: Multimedia Audio Files Audio Files Playing Audio Playing Audio Running Audio on a Separate Thread Running Audio on a Separate Thread Displaying.
Lecture 7: Media Player Topics: Media Player, Async prepare Date: Mar 3, 2016.
Exam #3 Review Yahtzee Example Add Audio with a.wav file Add Image with a.jpeg file TTT project time.
How to Insert Background Music into your PowerPoint
Sound Music & Sound Effects.
1 3 2.
Microsoft® Small Basic
Storyboarding MS Powerpoint.
I Can’t Hear You! Sound Get out your notes.
Windows Movie Maker Introduction to TDL.
I Can’t Hear You! Sound Get out your notes.
Presentation transcript:

Introduction to sound using processing

2 Minim –A sound library which uses javasound library –Provide convenient but flexible way to play,, synthesize and recode sound

3 Loadfile The loadFile method of Minim class allows you to specify the file you want to load with a String and optionally specify what you want the buffer size of the returned AudioPlayer to be. Minim is able to play wav files, au files, aif files, snd files, and mp3 files. Parameter –Filename When you call loadFile, if you just specify the filename it will try to load the file from the data folder of your sketch. However, you can also specify an absolute path (such as "C:\foo\bar\thing.wav") You can also specify a URL (such as " –Buffer size Size of a buffer which will be used by minim Default: 1024

4 AudioPlayer –A class which can control audio play –Returened by loadFile play() –Play the sound stop() –Stop playing the sound left, right –Represent sound buffer of left and right speaker –get(int position) Reurn the sound value at position Returned value is between -1, 1

5 import ddf.minim.*; AudioPlayer player; Minim minim; void setup() { size(1024, 200, P2D); minim = new Minim(this); // load a file, give the AudioPlayer buffers that are 1024 samples long // player = minim.loadFile("groove.mp3"); // load a file, give the AudioPlayer buffers that are 2048 samples long player = minim.loadFile("groove.mp3", 1024); // play the file player.play(); } void draw() { background(0); stroke(255); // draw the waveforms // the values returned by left.get() and right.get() will be between -1 and 1, // so we need to scale them up to see the waveform // note that if the file is MONO, left.get() and right.get() will return the same value for(int i = 0; i < player.left.size()-1; i++) { line(i, 50 + player.left.get(i)*50, i+1, 50 + player.left.get(i+1)*50); line(i, player.right.get(i)*50, i+1, player.right.get(i+1)*50); } void stop() { // always close Minim audio classes when you are done with them player.close(); minim.stop(); super.stop(); }