Skip to content

Play Music

Group
Audio
In the node menu
Audio › Play Music
Where it can be used
Scheme graphs
Tags
  • Can be folded
Also found as
Stop Music

Play Music starts a clip on the music channel or the ambience channel of this scheme. It plays in a loop until the scheme ends or another Play Music of the same scheme changes or stops it. The flow goes on through Out at once.

A change fades: the new clip comes in while the old one goes out, over the Fade (sec) time.

The tableMusic node of the demo scheme Break Bread (Drafts/schemes/06-break-bread.json): Channel is Music, Audience is Only If Player Is with Conspirator as the player.

Use it to set the mood of a scene: a feast, a road, a siege. Use the Ambience channel for wind, a crowd or a fire under it. Each scheme has one music track and one ambience track at a time.

To stop the music, use the same node with no clip. The search offers it as Stop Music. Use Play Sound instead for a short sound that plays once.

  • A clip that already plays goes on without starting again.
  • An open dialogue with music of its own plays over the scheme’s music.
  • With no clip, the card reads “Stops this scheme’s music”, or “Stops this scheme’s ambience” on the Ambience channel.
  • With Only If Player Is and an actor that is not a player, or not available, nothing changes and the flow goes on.
  • The music is not saved with the game. After a load, the scheme has to start it again.
LabelDraft keyTypeDefaultShown if, tooltip and notes
ChannelChannel
  • Music
  • Ambience
"Music"Music or Ambience. Each scheme has one of each.
ClipClipasset path (AudioClip)null (none)Plays in a loop. When it plays already it goes on without starting again. Empty: this scheme's music (or ambience) stops.
  • Empty stops this scheme's track.
VolumeVolumenumber1
  • As in Play Sound.
  • from 0 to 1
AudienceAudience
  • Everyone (Every Player)
  • OnlyIfPlayerIs (Only If Player Is)
  • TakingPart (Players Taking Part)
"TakingPart"Every Player: the music always plays. Only If Player Is: it plays only when the actor below is a player. Players Taking Part: it plays for the conspirator, the target and the accomplices when a player plays them.
  • As in Play Sound.
Fade (sec)Fadenumber1Seconds the change takes: the new clip fades in while the old one fades out, or the music fades out.
  • min 0
Player IsListenerActorRef"Conspirator"

Shown if Audience = OnlyIfPlayerIs

The music plays only when a player plays this actor. When the actor is not available nothing changes and the flow continues.
  1. Out
"type"
"Play Music"
Other "type" names
"Stop Music"
"set" keys
Channel, Clip, Volume, Audience, Fade, Listener
"then" keys
"Out"
"<alias>": {
"type": "Play Music",
"then": "<alias>"
}