Sounds & Audio |
← Rendering & Textures · Contents · Animation & Video →
Surface Explorer 4D features a dedicated audio engine that supports both physical audio tracks and procedural synthesizers, allowing you to combine breathtaking visuals with dynamic soundscapes.
Supported Formats |
The library recognizes two types of audio elements within the Sounds tab:
.mp3, .wav and .ogg files..json files containing mathematical formulas or script code designed to generate sound waves dynamically using the internal synthesizer.
How to Use Audio in Scripts |
Audio tracks and synths are directly integrated into your visual scripts. To apply a sound to your current visual creation:
To pause a sound without removing it, use the Stop Sound button of the Script dock. When you save a record or a scene with a stopped sound, you are asked whether to keep it.
In a scene, each object has its own sound, and all of them play together. The Sounds tab highlights the sound of the selected object, and the Run/Stop Sound button and the Library clicks act on that object only; the master START/STOP controls all of them. A scene file stores the sound of the environment and of every object, and a video of the scene mixes them all.
Script Directives |
Behind the scenes, clicking an item injects one of these special directives into your code:
//MUSIC: path/to/file.mp3 - Tells the media player to stream the background music track.//SYNTH: formula - Feeds the mathematical formula to the internal synthesizer to generate procedural sounds.