<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">So I had time today to look into it a little bit more.<div class="">The solution you proposed Robert, worked perfectly with the 2 quarter notes becoming a tremolo of half notes.</div><div class=""><br class=""></div><div class="">Where I encounter a problem is if I want to modify the horizontal beginning and end (offsets) of the beam. Like in the case of 2 half notes becoming a tremolo of whole notes. Obviously, I don’t want the beams to extend close to the notes.</div><div class=""><br class=""></div><div class="">To me, the 2 methods Left and Right HorizontalOffset have no effect what so ever. The vertical ones work as anticipated, though.</div><div class=""><br class=""></div><div class="">As in this exemple, with or without the 2 “horizontal" lines, the result is the same:</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""> for entry in eachentrysaved(finenv.Region()) do</div><div class=""> if entry.BeamBeat and not entry:CalcUnbeamedNote() then</div><div class=""> local beam_mod = finale.FCBeamMod(true)</div><div class=""> beam_mod:SetNoteEntry(entry)</div><div class=""> beam_mod:SetBeamNumber(3)</div><div class=""> beam_mod.LeftVerticalOffset = beam_mod.LeftVerticalOffset + 24 --- the whole chosen beam is moved up</div><div class=""> beam_mod.RightVerticalOffset = beam_mod.RightVerticalOffset + 24 --- the right side of the chosen beam is moved up</div><div class=""> beam_mod.LeftHorizontalOffset = beam_mod.LeftHorizontalOffset + 24 --- does nothing</div><div class=""> beam_mod.RightHorizontalOffset = beam_mod.RightHorizontalOffset + 24 --- does nothing</div><div class=""> beam_mod:SaveNew()</div><div class=""> end</div><div class=""> end</div></div><div class=""><br class=""></div><div class="">Has anyone got success modifying the actual horizontal beginning and ending of a beam? As when one does it manually with the beam extension tool?</div><div class=""><br class=""></div><div class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><span class="Apple-style-span" style="font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; border-collapse: separate; border-spacing: 0px; -webkit-text-decorations-in-effect: none;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><div class=""><span style="font-style: normal;" class=""><br class="Apple-interchange-newline"><br class=""></span></div><div class=""><span style="font-style: normal;" class=""><br class=""></span></div><div class=""><span style="font-style: normal;" class=""><br class=""></span></div><div class=""><span style="font-style: normal;" class=""><br class=""></span></div><div style="font-family: Helvetica; font-style: normal; font-weight: normal; font-size: 12px;" class=""><span style="text-align: -webkit-auto; -webkit-text-decorations-in-effect: none; font-family: "Times New Roman", serif; font-size: 16px;" class="">¯\_(</span><span style="text-align: -webkit-auto; -webkit-text-decorations-in-effect: none; font-family: "MS Gothic"; font-size: 16px;" class="">ツ</span><span style="text-align: -webkit-auto; -webkit-text-decorations-in-effect: none; font-family: "Times New Roman", serif; font-size: 16px;" class="">)_/¯</span></div><div style="font-family: Helvetica; font-style: normal; font-weight: normal; font-size: 12px;" class=""><span class="Apple-style-span" style="font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; border-collapse: separate; border-spacing: 0px; -webkit-text-decorations-in-effect: none;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">Simon Leclerc</div><div class="">60, Mirabelle</div><div class="">Ste-Agathe-des-Monts, Québec</div><div class="">J8C 0W9</div><div class=""><a href="mailto:simon@prodsl.ca" class="">simon@prodsl.ca</a></div></div></span></div></div><div style="font-family: Helvetica; font-style: normal; font-weight: normal; font-size: 12px;" class=""><br class=""></div></div></span><br class="Apple-interchange-newline" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; orphans: 2; widows: 2;"><br class="Apple-interchange-newline" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"></div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On Jun 21, 2022, at 21:20, Simon Leclerc <<a href="mailto:simon@prodsl.ca" class="">simon@prodsl.ca</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="content-type" content="text/html; charset=utf-8" class=""><div dir="auto" class="">Thank you so much Robert for this very insightful answer. I’ll look into it having all that in mind.<br class=""><br class=""><div dir="ltr" class="">Simon Leclerc<div class="">Composer, conductor, arranger</div></div><div dir="ltr" class=""><br class=""><blockquote type="cite" class="">Le 21 juin 2022 à 20:35, Robert Patterson <<a href="mailto:robert@robertgpatterson.com" class="">robert@robertgpatterson.com</a>> a écrit :<br class=""><br class=""></blockquote></div><blockquote type="cite" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class="">I'm fairly certain that these are calculated values provided by Finale so you don't have to constantly recalc them for yourself. (Same with the clef value on FCNoteEntry.) I don't really know why they are writable. That was done long before I got to the code base. Any new values you write will be retained for the life of the FCNoteEntry instance, but they will not be saved.<br class=""></div><div class=""><br class=""></div><div class="">To copy TGTools Easy Tremolos you need to modify the Duration property and add an invisible tuplet. So, for example, to turn 2 consecutive quarters into a half-note tremolo with three beams, you would change the Duration of each note from QUARTER_NOTE to NOTE_32ND. Then you would add a new invisible tuplet to the first one that is 2 32nds in the time of 2 quarters. After the FCNoteEntry is saved, the next time you retrieve it the MeasurePos and ActualDuration properties will have been updated.</div><div class=""><br class=""></div><div class="">I don't at this moment recall how much Jari's documentation says about TGFs. The PDK Framework mostly hides them from Lua scripters, but it's a pretty important concept for working with note entries. Entries always come out of a TGF, which is an array of entries for a single layer in a single measure. To save an entry, you have to save the entire TGF. This can lead to possibly unexpected behavior, for example:</div><div class=""><br class=""></div><div class="">for e in eachentrysaved(region) do</div><div class=""> e.Duration = e.Duration / 2</div><div class=""> break</div><div class="">end</div><div class=""><br class=""></div><div class="">This would appear to halve the first entry in a region, but in fact the entry won't be saved because you broke out of the loop. To save the entry, the loop *must complete*. (You can see for yourself how eachentrysaved works, because I've posted all the built-in iterator functions to the <a href="https://github.com/finale-lua/lua-source" class="">lua-source</a> repository. Or you can fish it out of the jwlua binary for yourself, like I did originally.)<br class=""></div><br class=""></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 21, 2022 at 6:53 PM Simon Leclerc <<a href="mailto:simon@prodsl.ca" target="_blank" class="">simon@prodsl.ca</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="">Hi to all,<div class=""><br class=""></div><div class="">Am I right to understand that the 2 FCNoteentry methods “SetMeasurePos” and “SetActualDuration” have no effect?</div><div class=""><br class=""></div><div class="">I’m working on a plugin that deals with tremolos between whole notes and it does not seem possible to modify those 2 parameters.</div><div class=""><br class=""></div><div class="">I analyzed the result of the TGTool plugin “Easy tremolos” and I can see that the 2 parameters have been changed and saved.</div><div class=""><br class=""></div><div class="">Is there another class that needs to be addressed to make it work?<br class=""><div class="">
<div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class=""><span style="font-variant-caps: normal; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; border-collapse: separate; border-spacing: 0px;" class=""><div class=""><div class=""><div class=""><span style="font-style:normal" class=""><br class=""><br class=""></span></div><div class=""><span style="font-style:normal" class=""><br class=""></span></div><div class=""><span style="font-style:normal" class=""><br class=""></span></div><div class=""><span style="font-style:normal" class=""><br class=""></span></div><div style="font-family:Helvetica;font-style:normal;font-weight:normal;font-size:12px" class=""><span style="font-family:"Times New Roman",serif;font-size:16px" class="">¯\_(</span><span style="font-family:"MS Gothic";font-size:16px" class="">ツ</span><span style="font-family:"Times New Roman",serif;font-size:16px" class="">)_/¯</span></div><div style="font-family:Helvetica;font-style:normal;font-weight:normal;font-size:12px" class=""><span style="font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;line-height:normal;border-collapse:separate;border-spacing:0px" class=""><div class=""><div class=""><br class=""></div><div class="">Simon Leclerc</div><div class=""><br class=""></div></div></span></div></div><div style="font-family:Helvetica;font-style:normal;font-weight:normal;font-size:12px" class=""><br class=""></div></div></span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class=""></div>
</div>
<br class=""></div></div>_______________________________________________<br class="">
JWLua mailing list<br class="">
<a href="mailto:JWLua@jwmusic.nu" target="_blank" class="">JWLua@jwmusic.nu</a><br class="">
<a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" rel="noreferrer" target="_blank" class="">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a><br class="">
</blockquote></div>
<span class="">_______________________________________________</span><br class=""><span class="">JWLua mailing list</span><br class=""><span class=""><a href="mailto:JWLua@jwmusic.nu" class="">JWLua@jwmusic.nu</a></span><br class=""><span class=""><a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" class="">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a></span><br class=""></div></blockquote></div>_______________________________________________<br class="">JWLua mailing list<br class=""><a href="mailto:JWLua@jwmusic.nu" class="">JWLua@jwmusic.nu</a><br class="">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu<br class=""></div></blockquote></div><br class=""></div></body></html>