← API
Class

Music

Stinger → loop → outro music asset. The pattern every casino slot, action game, and rhythm game uses for combat/win/menu music: an intro that plays once, a body that loops cleanly until you ask it to stop, and an outro tail that plays once at the natural loop boundary so the music ends musically instead of cutting off mid-bar. Construct via `engine.loadMusic(name, parts)` ; spawn live instances via `music.play()` . Each instance is a `MusicVoice` you can fade, pause, resume, stop, or `skipToOutro()` independently.

Members

  • constructor
  • name
  • hasIntro
  • hasOutro
  • loopDuration
  • play