We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I need to create a music visualizer using Processing, where should I start if I want to learn how to code for creating a music visualizer? Is there any tutorial that teaches step by step on how to start?
Comments
@Sheldon96 -- If you are new, start with the introduction and the basic tutorials, then once you have gotten the hang of creating a basic sketch, drawing a shape, using a color, moving or animating something (all things you will need for your visualizer), try the Sound tutorial, which teaches you a lot about music visualization and has a bunch of great examples. You definitely, definitely want to play around with introductory sketches first, though.
Here is a relevant post:
https://forum.processing.org/two/discussion/18683/which-book-should-i-start-with-for-learning-processing/p1
Kf
Thanks Jeremy,
What about the ddf and minim? What does that mean? I tried to copy other peoples example and apparently there is many errors. Please help me
Thanks kf for your reply too.
And also Jeremy, do i need to look on the text tutorials? If yes can you suggest me which one do I need for my music visualization?
@Sheldon -- I see that your minim question was already answered.
Re: text tutorials -- what kind of music visualization do you want to make -- will it have text in it? There are so many kinds.
All tutorials help, but just start with the most basic basics, then try those Sound tutorial examples. If they don't make sense, go back to a few more Examples or look up terms you don't get in the Reference.
Hi Jeremy,
I'm trying to make a music visualizer that shows emotion depending on the beat/fft of the song. Are you able to help me with that?
What does that mean? It draws a smiley-face / frowny-face? It draws a redder or bluer background? It draws (lines / shapes) that move faster or slower?
Don't just describe your overall aesthetic goal -- describe concretely what you are trying to draw. Then people will be able to help, pointing you to things in the reference that help you do the kind of drawing you describe.
What I mean is when a song that has high frequency it means happy(Dont really know how frequency and beat works) and the round face that i plan to create will smile. And when the song is slow or sentimental, the emotion shows a sad/crying face. I'm just planning to make a simple round smiley face that will show emotions. Thanks for the reply Jeremy.
So far I have only done all these.
Thank you for sharing your work!
Because your drawing will change over time, you need a setup() and draw(), and you need to put your background and drawing commands inside draw(). See the intro Tutorials on Processing.org if you need examples.
Then add an if() and else statement, and draw two different arcs -- a sad arc and a happy arc. To start out with, don't make the if() dependent on frequency. Just use "if(keyPressed)" and test with your spacebar.
Once you have that working, THEN add frequency analysis into a variable each draw, and check it with if.
Thanks Jeremy for the reply! Did some editing and found some tutorials so I decided to edit some in it. How do I make the white line to become the mouth of the smiley face?(No idea whats the name of the white line)
Please edit your previous posts (gear icon) and format your code with highlight, CTRL+o.
This will help others read and test the code so that they can offer feedback.
Haha Sorry !
For your mouths, read the reference page for arc(). Use stroke() and fill() before arc to change the colors used for the outside stroke line and inside full color. ... Wait, you are doing that. What is your question?
What I mean is how do I make my mouth move like the white line that is moving on the forehead of the smiley face??
See how the
groove
is the name of your audio source, and how the white lines (line 31 of your code) is using information fromgroove.left.get()
to draw?Try using that same sound data while positioning your arc. There are many things you could try:
If none of them work, maybe you should try something other than a line! If the changes are too "jittery", you also might want to consider using some other source of information -- for example, the volume -- or smoothing / averaging the values over time so that your drawing changes slowly, even when the sound changes quickly.
I dont get what you mean by this "the volume -- or smoothing / averaging the values over time" Jeremy. Sorry my English is not that good. And how do I make my drawings change slowly when the sound changes quickly?
Try this:
float slowChange
lerp()
to mix a little bit of the newgroove.left.get(0)
value intoslowChange
. Set the amount (amt) how sensitive you want.slowChange
in your drawing instead of groove.leftUpdate every draw:
And use to draw:
So if
groove.left
jumps up and down from highest to lowest,slowChange
will move, but more slowly:Dont get what you mean.. Can you edit it inside my code and show me please?
Hey Jeremy, is it possible for me to make the eyes move too?
Why don't you post your latest code -- show what you have working so far.
How do you want the eyes to move? What makes them move, how?
I have only done all these so far.. Is it possible for the eyes to move with the beat too? and maybe change to a sad face when the beat is slow or something