0% found this document useful (0 votes)
196 views11 pages

What To Do For Project 2?

The document discusses options for a project using the Minim audio library in Processing, including visualizing music, detecting beats, and examples of using the BeatDetect class. It provides objectives for the project, an overview of audio features in Minim like playback and analysis, and resources for learning more about audio processing and beat detection.

Uploaded by

peter26194
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
196 views11 pages

What To Do For Project 2?

The document discusses options for a project using the Minim audio library in Processing, including visualizing music, detecting beats, and examples of using the BeatDetect class. It provides objectives for the project, an overview of audio features in Minim like playback and analysis, and resources for learning more about audio processing and beat detection.

Uploaded by

peter26194
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

What to do for Project 2?

Objectives
Tie back to Processing Work with classes Present a creative challenge Work with a different programming language

Well three out of four objectives aint bad

Many Processing Libraries


Video Serial PDF Export OpenGL Arduino Minim Audio Many more

Minim
A Processing library that uses JavaSound API, Tritonus, and MP3SPI to provide an easy to use audio library. Features:
AudioPlayer: for playback of WAV, AIFF, AU, SND, & MP3 files. AudioMetaData: for metadata about a file, such as ID3 tags. AudioSignal: for writing your own sound synthesis AudioRecorder: for audio recording AudioEffect: for writing your own audio effects. FFT: for doing spectrum analysis. BeatDetect: for doing beat detection.

A Sound Theory
Mike Ruizs Sound Applets Minim FFT

Amplitude

Frequency

Music Visualization using Minim


Options:
Use the wave form Use the FFT (on previous slide) Use BeatDectect Explained Here

The BeatDetect Class (by Example) (SOUND_ENERGY mode)


import ddf.minim.*; import ddf.minim.analysis.*; Minim minim; AudioPlayer song; BeatDetect beat; void setup() { minim = new Minim(this); song = minim.loadFile("TicketToRide.mp3"); song.play(); beat = new BeatDetect(); beat.setSensitivity(100); }

void draw() { beat.detect(song.mix); if( beat.isOnset() ) { } } void stop() { song.close(); minim.stop(); super.stop(); }

Example Program

The BeatDetect Class (by Example) (FREQ_ENERGY mode)


import ddf.minim.*; import ddf.minim.analysis.*; Minim minim; AudioPlayer song; BeatDetect beat; BeatListener bl; void setup() { minim = new Minim(this); song = minim.loadFile("TicketToRide.mp3", 32768); song.play(); beat = new BeatDetect(song.bufferSize(), song.sampleRate()); beat.setSensitivity(200); bl = new BeatListener(beat, song); }

class BeatListener implements AudioListener { private BeatDetect beat; private AudioPlayer source;

Buffer size must be a power of 2

Example Program

A Little Insight into Beat Detection


Use the drawGraph() method to see the energy levels. Example program

Project 2
Presented at the time of our final: Tuesday, May 3 @11:30 Project 2 Seniors, please talk to me about the due date.

Resources
Main documentation Processing Page Examples Minim Code Log Examples Doorbell example by Daniel Shiffman Audio Processing Examples by Dan Ellis Vimeo video tutorial 4 and video tutorial 5 OpenProcessing Examples Beatles Ukulele Project (a source of .mp3 files)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy