<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Setting the playback position of an Audio Loop Player]]></title><description><![CDATA[<p dir="auto"><strong>Hi!</strong></p>
<p dir="auto">I would like to seek to a specific position in an Audio Loop Player by clicking on a panel.</p>
<p dir="auto">I can detect the mouse position and move the visual playhead using:</p>
<pre><code class="language-javascript">waveSample.setPlaybackPosition(position);
</code></pre>
<p dir="auto">However, when I use my Play button with:</p>
<pre><code class="language-javascript">Synth.playNoteFromUI(...)
</code></pre>
<p dir="auto">the audio always starts playing from the beginning.</p>
<p dir="auto">I was also wondering if it's possible to change the playback position while the sample is already playing.</p>
<p dir="auto">I tried:</p>
<pre><code class="language-javascript">SamplePreview.setAttribute(8, 0.5);
</code></pre>
<p dir="auto">(8 is the <code>SampleStartMod</code> attribute, which modulates the sample start), but it doesn't seem to work. Maybe I'm misunderstanding how the attribute ID works.</p>
<p dir="auto"><strong>Is there a way to set the Audio Loop Player's actual playback position through scripting?</strong></p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.hise.audio/topic/15152/setting-the-playback-position-of-an-audio-loop-player</link><generator>RSS for Node</generator><lastBuildDate>Sat, 21 Nov 2026 20:51:57 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/15152.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 21 Nov 2026 20:22:31 GMT</pubDate><ttl>60</ttl></channel></rss>