Setting the playback position of an Audio Loop Player
-
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
SampleStartModattribute, 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!