Forum
    • Categories
    • Register
    • Login

    Setting the playback position of an Audio Loop Player

    Scheduled Pinned Locked Moved Scripting
    1 Posts 1 Posters 3 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • YinxiY
      Yinxi
      last edited by

      Hi!

      I would like to seek to a specific position in an Audio Loop Player by clicking on a panel.

      I can detect the mouse position and move the visual playhead using:

      waveSample.setPlaybackPosition(position);
      

      However, when I use my Play button with:

      Synth.playNoteFromUI(...)
      

      the audio always starts playing from the beginning.

      I was also wondering if it's possible to change the playback position while the sample is already playing.

      I tried:

      SamplePreview.setAttribute(8, 0.5);
      

      (8 is the SampleStartMod attribute, which modulates the sample start), but it doesn't seem to work. Maybe I'm misunderstanding how the attribute ID works.

      Is there a way to set the Audio Loop Player's actual playback position through scripting?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      9

      Online

      3.1k

      Users

      14.0k

      Topics

      122.1k

      Posts