This tutorial shows how to use the Audio Analysis tool to automate lightning flashes from a thunder-infested sound file.
You will need:
.wav File -
PartnersInRhyme,
FindSounds,
AltaVista,
Samples and Loops.
When you save the storm's audio file, put it in a known location. For the purposes of this example, the location of the audio file will be:
/home/blender/audio/storm.wav
Use the Audio Analysis tool as follows:
Revealing the Scripts Window
Audio Analysis Menu Item
Audio Analysis Tool Buttons
Example Power Levels
The progress meter at the top of the main window will update during analysis.
Only audio data between the two lines will become part of the Ipo curve.
Adjusted Power Threshold Values
Volumes will differ from file to file. You will have to play with these numbers to find the correct volume range for your purposes. For loud sounds, increase Power Min. For quiet sounds, decrease Power Max. You can see their effect on the canvas: the top line (red) represents the maximum threshold value; the bottom line (green) represents the minimum threshold value.
The progress meter at the top of the main window will update during analysis.
By default, the Audio Analysis tool creates an Ipo curve for light source (Lamp) energy (Energ). Assign it to a Lamp in the scene as follows:
Audio-based Ipo Curve - Visually Chaotic
Audio-based Ipo Curve - Visually Appealing
Reduce the amount of time it takes to render the animation.
Render Settings
mencoder mf:///tmp/*.jpg -mf type=jpg:fps=25 -ovc lavc -oac copy \ -audiofile /home/blender/audio/storm.wav -o storm.avi