Audio Visualizing

The environment reacts based on the audio volume and pitch.

Volume

Anouk added a script that could recognize different pitches in the audio input. I was able to determine the volume of the audio using that script and implemented several interactions that depended on the volume.

Changing object colors

I thought it could be interesting to change a material color between two colors depending on the amount of audio volume. So I made a script that could change a specific material color. After getting it to work I noticed that it would flicker pretty quickly, because the audio volume could change rather quickly depending on the audio input. To fix this issue I made a tiny delay in getting the volume from the GetVolume() function and interpolated between the previous and current volume colors to get a smooth transition. After I implemented that I showed it to my team.

I got the feedback that I didn't have to change the actual material color, but could just change the color of the specific instance of the material on a mesh. My code didn't work with that in mind, however I agreed that that would be more useful so I decided to refactor my code.

After refactoring the code worked perfectly.

Last updated

Was this helpful?