Tonal transforms audio into captivating visualizations by converting audio intensity into dynamic video frames. Using a logarithmic scale, it translates sound intensity into grayscale values (ranging from 0 to 255), which drive animations in Blackmagic Fusion. This process leverages the Probe modifier to enable seamless integration of audio-driven animations into your creative projects. The tool processes audio files frame by frame, creating engaging visuals that dynamically respond to the sound's energy.
- Converts audio intensity into video frame values (0 to 255).
- Bakes a Real-time audio visualization using a logarithmic scale.
- Ideal for long-format projects: export the video and use the Probe Modifier in Resolve/Fusion to drive animations.
- Python 3.x
pydub(for audio processing)numpy(for numerical operations)opencv-python(for video creation)moviepy(for video/audio synchronization)ffmpeg(for video processing)
Clone the repository to your local machine:
git clone https://github.com/yourusername/tonal.gitNavigate to the project directory and install required dependencies:
cd tonal
pip install -r requirements.txtOr install dependencies manually:
pip install pydub numpy opencv-python moviepyInstall FFmpeg from FFmpeg.org and add it to your system’s PATH.
Run the script with:
python tonal.pySelect an audio file (.mp3, .mp4, .mov, .avi) for processing. The script generates a video based on the audio intensity.
Modify the segment length in the split_video function (default: 60 seconds), useful for DaVinci Resolve processing.
The script will output a video (audio_filename_final.mp4) with audio visualization and optionally split it into smaller segments.
python tonal.py- Select an audio file.
- The script generates a video and saves it as
audio_filename_final.mp4. - Split segments are saved in the same directory.
MIT License - see the LICENSE file for details.
- PyDub for audio processing.
- OpenCV for video creation.
- MoviePy for video/audio synchronization.
- FFmpeg for video format conversion.
- NumPy for numerical computations.