Skip to content

Missing type: soundsource #7

@JohnTM

Description

@JohnTM

soundsource

Created when calling the sound() command, represents a live sound currently playing. Can be controlled to alter the playing sound:

Properties:

  • volume number, the current volume of the sound source
  • pitch number, the current pitch of the sound source
  • pan number, the 2D spatial location of the sound (-1 left, +1 right, 0 centre)
  • looping boolean, whether to loop the sound when it reaches the end of playback
  • paused boolean, whether the sound source is currently paused
  • muted boolean, whether the sound source is currently muted

Methods:

  • stop()
  • rewind()
  • fadeTo(volume, duration) animates the volume of the sound source over a time
  • stopFade() cancels the current fading action
  • pitchTo(pitch, duration) animates the pitch of the sound source over time
  • stopPitch() cancels the current pitch action
  • panTo(pan, duration) animates the pan of the sound source over time
  • stopPan() cancels the panning action
  • stopActions() cancels all actions on the sound source

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions