Hi corona community, I have a question regarding to music part. I wanna know how to make an effect of sound equalizer. I’m using display.newRect to create the small rectangle and it will create multiple rectangle when the music go loud, if the music go quite it will clear the rect and that based on the music tones. [import]uid: 74725 topic_id: 12587 reply_id: 312587[/import]
have you tried to scale the rectangle with the amplitude to provide an illusion of an equilizer?
cheers,
?
[import]uid: 3826 topic_id: 12587 reply_id: 46032[/import]
hi jayantv thanks for the reply,i don’t understand how to scale the rectangle with the amplitude to provide an illusion of an equalizer, and this is the example for the sound equalizer that i want to create:
http://www.everyday3d.com/blog/index.php/2008/03/26/classic-sound-equalizer-in-flashas3/ [import]uid: 74725 topic_id: 12587 reply_id: 46038[/import]
Since via CoronaSDK you cannot get the amplitude using OpenAL, you will be unable to re-create the same. However you can create a fake equilizer by passing random values.
Now, when you say you do not understand… which part is the bit where you are stuck? Can you scale a rectangle randomly? You cannot get the amplitude as of now.
cheers
?
[import]uid: 3826 topic_id: 12587 reply_id: 46042[/import]
ohh yes I understand, you mean i just create 1 rectangle and scale the height and yes i can scale it randomly, but how if I want to change the the way to approach it such as I want inside my big rectangle have the rows and it’s created by joining the small rectangle to make the height and turn it into 1 big rectangle???
My way to approach that equalizer is creating 1 small rectangle then use looping function to create the height effects and it will create the rectangle rows, but i can’t make my looping do the random up and down effects… [import]uid: 74725 topic_id: 12587 reply_id: 46045[/import]
Is there any way to do this using the amplitude of an audio file now that they’ve recently revealed the undocumented audio api features? [import]uid: 24449 topic_id: 12587 reply_id: 48116[/import]