Forum
    • Categories
    • Register
    • Login

    Setting the playback position of an Audio Loop Player

    Scheduled Pinned Locked Moved Unsolved Scripting
    2 Posts 2 Posters 15 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!

      ChazroxC 1 Reply Last reply Reply Quote 0
      • YinxiY Yinxi marked this topic as a question
      • ChazroxC
        Chazrox @Yinxi
        last edited by

        @Yinxi if you search the forum I know there were a few threads where we went over this exact thing.

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

        6

        Online

        3.1k

        Users

        14.0k

        Topics

        122.1k

        Posts