Implementing Sound FX and Music
- sound [identifier]
- music [identifier]
- music off
- sound off
You can play short sound effects, musical clips and ambient or musical loops in your story. There are 4 important commands to know for this.
- To play a sound or music effect once, without looping, use the sound command with the sound’s identifier from the sidebar on your script page.
Sound/Music Once Syntax:
Multiple sounds can play at a time, so long as there is at least one line of dialogue or directing command between them.
- To make a music or sound effect loop, use the music command with the identifier.
Looping Music/Sound Effect Syntax:
Helpful Note: Only one looping sound can be playing at a time. If there are two music commands in a row, the later one will cancel out the previous.
- To stop the looping music, you have to insert a command into the script.
Stop Looping Music Syntax:
- You may also need to cut sound effects short occasionally, though this will be more rare, since sound effects are already generally short on their own.
Stop Sound Effect Short Syntax:
The “music” command is not strictly for music and the “sound” command is not strictly for sound. Short pieces of music coded in as "sound" can be used to transition smoothly between scenes, or introduce a character. These short pieces of music are called stingers.
To set the volume of sound, use the volume sound command followed by the volume level (0-100) and the length of time (in milliseconds) you want the volume setting to take.
Setting the Volume of Sound Syntax:
volume sound X S
X = volume level, 0 to 100
S = length of time, in milliseconds
volume sound 80 2000
The above command will bring sound volume to 80% over the span of 2000 milliseconds (2 seconds).
To set the volume of a music effect, use the exact same code above but replace “sound” with “music.”
Setting the Volume of Music Syntax:
volume music X S
volume music 0 4000
The above command will bring sound volume to 0 over the span of 4000 milliseconds (4 seconds), making the music appear to slowly fade out.
If you want the music or sound volume to change immediately rather than a gradual transition, put 0 where you put the number of milliseconds.
volume music 70 0
The above command will bring music volume to 70 immediately.