SlideServe
Menu
Préférences
© SlideServe · v2026

Fundamentals of Programming

ocean avatar
11 diapositives · 295 Views · Jul 07, 2014

This assignment tasks students with developing a unique music visualization using selected audio tracks. The project includes designing creative graphics and implementing complex programming concepts. Utilize the Minim audio library for sound processing and beat detection, ensuring to meet set criteria for design, complexity, and creativity. Key components include audio playback, beat detection algorithms, and dynamic visual elements. Examples provided can inspire your work. Submit by December 20, 2011.

Fundamentals of Programming - slide 1
01 / 11Fundamentals of Programming
1 / 17

Télécharger la présentation

Fundamentals of Programming
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Fundamentals of Programming SM1204 Semester A 2011

  2. Assignment 3 Due date 20 Dec Collection via ACS

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

  4. Example • http://www.youtube.com/watch?v=KW5D9IVfb1k&feature=related

  5. Example • http://www.youtube.com/watch?v=1JkN3Uwgqi4&feature=related

  6. Example • http://www.youtube.com/watch?v=0AVyhytUy7k&feature=related

  7. Sample Program

  8. 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];

  9. 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 (inti=0; i<n; i++) { for (int j=0; j<n; j++) { a[i][j] = 40; } } }

  10. Sample Program • Beat detection and rendering void draw() { beat.detect(player.mix); background(0); strokeWeight(4); for (inti=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; } } } }

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