<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(68,68,68)">Hi,</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(68,68,68)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(68,68,68)">I am trying to position a note entry in a measure using "e:SetMeasurePos(pos)" in this script:</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(68,68,68)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(68,68,68)">```</div><div class="gmail_default"><div class="gmail_default"><font color="#444444" face="verdana, sans-serif">-- Reset the notes in the note group</font></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif">-- do this by adding the (i*averageDist) amount to the startDist</font></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif">function resetNotes()</font></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif"> local j = 0</font></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif"><br></font></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif"> -- hardcoded values (for this question only)</font></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif"> local averageDist = 243 </font></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif"> local </font><span style="color:rgb(68,68,68);font-family:verdana,sans-serif">startPosInMeasure = -83</span></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif"><br></font></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif"> for e in eachentrysaved(finenv.Region()) do</font></div><div class="gmail_default"><br></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif"> print("original Position of e:", e.MeasurePos)</font></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif"> local pos = startPosInMeasure + (averageDist * j)</font></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif"> --e:SetManualPosition(pos) . -- this works, but does not yield the desired result</font></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif"> e:SetMeasurePos(pos) . -- this does not work...</font></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif"><br></font></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif"> j = j+1</font></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif"><br></font></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif"> end</font></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif"><br></font></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif">end</font></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif">```</font></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif"><br></font></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif">But unfortunately this does not work, while e:SetManualPosition(pos) does work. Can anybody tell me, what I am doing wrong here?</font></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif"><br></font></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif">Thank you!</font></div><div class="gmail_default"><font color="#444444" face="verdana, sans-serif">Robert</font></div></div>
</div>