We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSound,  Music Libraries › Where is a Good Place to Start
Page Index Toggle Pages: 1
Where is a Good Place to Start? (Read 886 times)
Where is a Good Place to Start?
Jan 19th, 2008, 4:28am
 
I downloaded ESS and it seems like a huge undertaking.

I want to make some really basic 2D shapes react to the rhythm of music.

I'm just not sure where to start. I tried to get the "Audio Analysis" example to load a full length mp3, but it didn't work. Any ideas?
Re: Where is a Good Place to Start?
Reply #1 - Jan 25th, 2008, 3:39am
 
Any ideas? I thought this was a simple question. Is there something not clear?
Re: Where is a Good Place to Start?
Reply #2 - Jan 25th, 2008, 3:25pm
 
ESS is great (and Krisster is a lovely guy), but it's also pretty heavy duty (I've found). If you're just starting and want some basic, I'd maybe try Minim first: http://code.compartmental.net/2007/06/03/minim-11-released/


Re: Where is a Good Place to Start?
Reply #3 - Jan 25th, 2008, 11:52pm
 
Andy Polaine wrote on Jan 25th, 2008, 3:25pm:
ESS is great (and Krisster is a lovely guy), but it's also pretty heavy duty (I've found). If you're just starting and want some basic, I'd maybe try Minim first: http://code.compartmental.net/2007/06/03/minim-11-released/




Thanks for the reply!

It looks like beat detect might be what I'm looking for.

http://code.compartmental.net/minim/javadoc/ddf/minim/analysis/BeatDetect.html

I have a couple of questions, if anyone is so kind.

1. Does anyone have any examples that use BeatDetect

2. Is there anyway to extract note values from an audio file Maybe that's asking too much.
Re: Where is a Good Place to Start?
Reply #4 - Jan 26th, 2008, 8:51am
 
There's lots of examples on the Minim site - here's the Beat Detect stuff which works pretty well for most contemporary/rock/electronic music: http://code.compartmental.net/tools/minim/manual-beatdetect/

Copy and paste one of the examples and/or download the PDE file they link to and try some things out. Don't forget you'll need your own sound file in a folder called "data" inside your Processing project's folder (i.e., if the project is called 'soundplayer.pde' it will be in a folder called 'soundplayer'. Alongside the PDE file create a folder called 'data' and put your audio file in there).

When you say 'extract note values from a file', what do you mean? What kind of file? Fast Fourier Transform gives you complete spectrum analysis: http://code.compartmental.net/tools/minim/manual-fft/

(Example here: http://code.compartmental.net/minim/examples/FFT/LinLogAverages/)

But remember if it's an audio file you're talking about you'll get combinations. If a saxophone happens to be playing the same frequencies as the singer, you can't extract just the sax.

Or, if you have access to a MIDI file, you could look into ProMIDI - http://www.texone.org/promidi/ - because MIDI contains all the note information.

It's also worth doing a search of this board for other examples.
Page Index Toggle Pages: 1