FUNDAMENTALS OF PROGRAMMING SM1204 Semester A 2011.

Slides:



Advertisements
Similar presentations
Creative Computing. \\ aims By the end of the session you will be able to: 1.Move objects around 2.Write simple interactive programs 3.Use the mouse position.
Advertisements

For(int i = 1; i
Image Processing … computing with and about data, … where "data" includes the values and relative locations of the colors that make up an image.
Introduction to Programming
Game with US Beginner Tutorial. Welcome!! Who I am What is Processing? Basic Coding Input Methods Images Classes Arrays.
A Quick Introduction to Processing
Emerging Platform#5: Processing 2 B. Ramamurthy 6/13/2014B. Ramamurthy, CS6511.
What to do for Project 2?.
David Meredith Minim David Meredith
Structure.
Structures Spring 2013Programming and Data Structure1.
Grundaufbau import processing.core.PApplet; public class Proc_Minimal extends PApplet { public void setup(){ size(1024, 768); frameRate(60.0f);
FUNDAMENTALS OF PROGRAMMING SM1204 Semester A 2011.
FUNDAMENTALS OF PROGRAMMING SM1204 Semester A 2010/2011.
FUNDAMENTALS OF PROGRAMMING SM1204 Semester A 2011.
FUNDAMENTALS OF PROGRAMMING SM1204 Semester A 2010/2011.
SM1205 Interactivity Instruction for Assignment 2 Spring 2010SCM-CityU1.
DSA Processing. Links Processing.org My Processing page Ben Fry Ben Fry’s Thesis on Computational Information DesignThesis Casey Reas siteCasey Reas Casey.
PowerPoint Demo. Slides To add new slide –Home/New Slide –Select slide layout Text Content –Table –Chart –SmartArtGraphic »Office.com: Organization chart.
Презентація за розділом “Гумористичні твори”
Галактики і квазари.
Характеристика ІНДІЇ.
Процюк Н.В. вчитель початкових класів Боярської ЗОШ І – ІІІ ст №4
CC LAB PROJECT YOU CAN’T ALWAYS SEE BUT IT’S HERE Efimova KateELIZABETH CLAIRE.
FUNDAMENTALS OF PROGRAMMING SM1204 SEMESTER A 2012.
Variables and Arithmetic. From last class More drawing functions: strokeWeight(n); // higher the n value broader the stroke fill(k) ; // single parameter.
Introduction to Processing CS 4390/5390 Fall 2014 Shirley Moore, Instructor September 3,
C++ Character Set It is set of Characters/digits/symbol which is valid in C++. Example – A-Z, (white space) C++ Character Set It is set of.
11 Adding Tomato Targets Session Session Overview  We now have a game which lets a player bounce a piece of cheese on a bread bat  Now we have.
Arrays. An array is a collection “The Dinner offers an array of choices.” In computer programming, an array is a collection of variables of the same data.
FUNDAMENTALS OF PROGRAMMING SM1204 SEMESTER A 2012.
Objects. The Heart of the Matter - The "Black Box" Object-oriented software is all about objects. An object is a "black box" which receives and sends.
Graphics Qubed SCE Presentation of Epoch: Relic of Time.
XNA Basic Displaying Image & Collision Detect. What’s format image that XNA support? XNA support only.bmp.png and.jpg image..PNG have transparent region.
Animation Pages Function Function Definition Calling a function Parameters Return type and return statement.
Computer Science I Arrays. Parallel structures. Classwork/Homework: Build your own bouncing things.
FUNDAMENTALS OF PROGRAMMING SM1204 SEMESTER A 2012.
Continuous. Flow of Control Programs can broadly be classified as being –Procedural Programs are executed once in the order specified by the code varied.
Review Array – int[] diameters = new int[10]; – diameters[0], diameters[2], diameters[9] – diameters.length Indexing starts at 0 A way to have a collection.
Introduction to sound using processing. 2 Minim –A sound library which uses javasound library –Provide convenient but flexible way to play,, synthesize.
FUNDAMENTALS OF PROGRAMMING SM1204 SEMESTER A 2012.
Programming for Art: Arrays – 2D ART 315 Dr. J. R. Parker Art/Digital Media Lab Lec 16 Fall 2010.
Web Audio API Let your WebGL program dance. Announcement Final project proposal due in one week. Choice of demo date? Plan for the 12/23 class. 2.
Computer Science I Animations. Bouncing ball. The if statement. Classwork/homework: bouncing something. Compress and upload work to Moodle.
Review Objects – data fields – constructors – Methods Classes.
Loops. About the Midterm Exam.. Exam on March 12 Monday (tentatively) Review on March 5.
Processing Lecture.3 Loop and animation
Chapter 14, Translate & Rotate
20 minutes maximum exhibits
Pre-Production Determine the overall purpose of the project.
Chapter 7 Functions.
3D graphics process.
Chapter 6 Loops (iteration).
For Net Art Lecture 2 J Parker
Mouse Inputs in Processing
Сътрудничество между полицията и другите специалисти в България
ДОБРОВОЛЕН РЕЗЕРВ НА ВЪОРЪЖЕНИТЕ СИЛИ НА РЕПУБЛИКА БЪЛГАРИЯ
Съвременни софтуерни решения
Програма за развитие на селските райони
БАЛИСТИКА НА ТЯЛО ПРИ СВОБОДНО ПАДАНЕ В ЗЕМНАТА АТМОСФЕРА
Programming for Art: Images
Just a question for Mac users:
Arrays CSE 120 Winter 2019 Instructor: Teaching Assistants:
Chapter 10 Algorithms.
How About Some PI? Trigonometry Feb 18,2009.
Chapter 1 Map Basics How to read a map: T.O.P.I.C.
Agenda 11/15/17 Text Effect Project: : 2 Text Effect tutorials. See next slide. *Make sure it is a complex and completed artwork with a creative background!
Continuous & Random September 21, 2009.
Chapter 13, Math A few Examples.
Chapter 9 Arrays.
Presentation transcript:

FUNDAMENTALS OF PROGRAMMING SM1204 Semester A 2011

Due date 20 Dec Collection via ACS Assignment 3

Requirements o Create your own music visualization (20%) o Select your audio / music o Design your visualization o Use of Minim audio library (30%) o Program complexity (20%) o Creative graphics (30%)

Example 

Example 

Example 

Sample Program

 Import library  Define player and beat detector objects import ddf.minim.*; import ddf.minim.analysis.*; Minim minim; AudioPlayer player; BeatDetect beat; int n = 5; float[][] a = new float[n][n];

Sample Program  Create objects & Initialize array elements void setup() { size(400, 400); minim = new Minim(this); player = minim.loadFile("test2.mp3"); beat = new BeatDetect( player.bufferSize(), player.sampleRate() ); player.play(); // initialize item size for (int i=0; i<n; i++) { for (int j=0; j<n; j++) { a[i][j] = 40; }

Sample Program  Beat detection and rendering void draw() { beat.detect(player.mix); background(0); strokeWeight(4); for (int i=0; i<n; i++) { for (int j=0; j<n; j++) { if (beat.isOnset(i*5+j)) { a[i][j] = 80; } float s = a[i][j]; float c = map(s, 40, 80, 200, 255); noFill(); stroke(c); ellipse(i*80+40, j*80+40, s, s); fill(c); noStroke(); ellipse(i*80+40, j*80+40, s / 2, s / 2); if (a[i][j] > 40) { a[i][j] *= 0.95; } }

Sample Program  Do not forget to add the stop( ) function void stop() { player.close(); minim.stop(); super.stop(); }