Skip to reading
PCA Script Programming

fade_music()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Music: Fade | Action ID: FadeMusic

Fade the current music to a normalized volume, waiting for the fade routine.

Source table from fade_music(), page 198
Option key / fieldMeaning and accepted inputDefault
Target Volume volumeNormalized target volume: 0 is silent, 1 is full volume. Range: 0.0 to 1.0.0.0
Duration (seconds) durationTime in seconds for this action. Read its timing note before assuming it waits. Range: 0.0 to 60.0.1.0

Timing. Waits for the fade routine.

Code example
fade_music({"volume": 0.0, "duration": 1})

In use. Fade to 0 over 2 seconds for a room ending, or to a quieter nonzero level under narration. A zero target stops playback; volume is 0 to 1.

seek_music()#

Skip Ahead in Soundtrack | Action ID: SeekMusic

Move playing music to minutes plus seconds.

Source table from fade_music(), page 198
Option key / fieldMeaning and accepted inputDefault
Minute minutesWhole minutes; added to Seconds to form a playback position.0
Second secondsNumber; decimals allowed.0

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
seek_music({"minutes": 0, "seconds": 1})

In use. Seek to 1 minute 10 seconds to check a cue. This is media playback positioning, not a timeline scheduler or a music crossfade.

Page 198 of 357Permalink
Go to page