# MusicVoice · API · zvuk

zvuk v1.14.1 · MIT · https://zvuk.schmooky.dev/api/MusicVoice/

One live playback instance of a 
`Music`
 asset. Tracks which part is
currently sounding (
`'intro' | 'loop' | 'outro' | 'ended'`
), exposes

`fade`
/
`pause`
/
`resume`
/
`stop`
, and adds two music-specific operations:

- 
`skipToOutro({ at: 'loop-end' })`
 — wait for the current loop iteration
  to complete, then play the outro at the natural loop boundary.
- 
`skipToOutro({ at: 'now' })`
 — fade the loop out (~50 ms) and start
  the outro immediately. Right call for &#34;user pressed Stop.&#34;


`stop()`
 is the click-free cut — no outro. Use 
`skipToOutro`
 if you want
the music to end musically.

[← API](/api/)

Class

# MusicVoice

One live playback instance of a \`Music\` asset. Tracks which part is currently sounding ( \`'intro' | 'loop' | 'outro' | 'ended'\` ), exposes \`fade\` / \`pause\` / \`resume\` / \`stop\` , and adds two music-specific operations: - \`skipToOutro({ at: 'loop-end' })\` — wait for the current loop iteration to complete, then play the outro at the natural loop boundary. - \`skipToOutro({ at: 'now' })\` — fade the loop out (~50 ms) and start the outro immediately. Right call for "user pressed Stop." \`stop()\` is the click-free cut — no outro. Use \`skipToOutro\` if you want the music to end musically.

## Members

-   constructor
-   ended
-   currentPart
-   fade
-   skipToOutro
-   stop
