How do I make a sound graph

Get help using Construct 2

Post » Mon Feb 23, 2015 9:21 am

hello there :) is there any way to make a sound graph out of the music, playing in game?
something like that http_:_//hsto.org/storage/3811ce38/b2b2c125/5da0b7fe/3ff9bb98.png
B
6
S
1
Posts: 53
Reputation: 506

Post » Mon Feb 23, 2015 1:34 pm

Hmmm. I don't have C2 with me right now, but if there's a way to check the sound's loudness, you could constantly spawn sprites and set their height depending on the volume. Make them single-colored and spawn them tight enough to make them look like the graph in your picture. The list of expressions here might help you: https://www.scirra.com/manual/109/audio
B
18
S
6
G
4
Posts: 221
Reputation: 3,275

Post » Mon Feb 23, 2015 3:41 pm

thanks :) it works
B
6
S
1
Posts: 53
Reputation: 506

Post » Mon Feb 23, 2015 8:09 pm

Nice, is it possible to post a capx or see it in an online demo? :)
B
51
S
15
G
5
Posts: 681
Reputation: 8,399

Post » Tue Feb 24, 2015 9:14 am

ok. i'll post it a bit later
B
6
S
1
Posts: 53
Reputation: 506

Post » Tue Feb 24, 2015 10:17 am

here you go. but the only thing is, when the sound is loud, the graph is in lowest scale. that is because loudest point is 0 and quietest is negative. and i can't figure out what formula converts it))))
https_:_//drive.google.com/file/d/0B6fErsj1PRuONGhXeDV0T1pSazA/view?usp=sharing
B
6
S
1
Posts: 53
Reputation: 506


Return to How do I....?

Who is online

Users browsing this forum: 20170217, alitest, halexand, MaeTrees, MSNbot Media, R0J0hound, Underdog, Zathan and 1 guest