[JW Lua] RGP Lua 0.59 Released

Carl Vine carlvine at iinet.net.au
Tue Jan 18 02:44:29 CET 2022


Sorry for my lack of clarity. I have created a better version of that script that steps through all the parameters of simple and complex time signatures in the selection. It still fails on GetGroupElementBeatDuration in verified CompositeBottom measures, even if they are registered as having more than one group with at least one element. Sample musx and lua files attached.

Carl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: blank.musx
Type: application/octet-stream
Size: 120506 bytes
Desc: not available
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20220118/b6d9dc78/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test2h.lua
Type: application/octet-stream
Size: 1939 bytes
Desc: not available
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20220118/b6d9dc78/attachment-0001.obj>
-------------- next part --------------



> On 17 Jan 2022, at 10:00 pm, jwlua-request at jwmusic.nu wrote:
> 
> Send JWLua mailing list submissions to
> 	jwlua at jwmusic.nu
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
> or, via email, send a message with subject or body 'help' to
> 	jwlua-request at jwmusic.nu
> 
> You can reach the person managing the list at
> 	jwlua-owner at jwmusic.nu
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of JWLua digest..."
> 
> 
> Today's Topics:
> 
>   1. AddGuide function doesn't work properly (Artem Roschenko)
>   2. Re: AddGuide function doesn't work properly (Robert Patterson)
>   3. Re: RGP Lua 0.59 Released (Robert Patterson) (Robert Patterson)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Sun, 16 Jan 2022 15:33:36 +0200
> From: Artem Roschenko <roschenkoartem at gmail.com>
> To: jwlua at jwmusic.nu
> Subject: [JW Lua] AddGuide function doesn't work properly
> Message-ID:
> 	<CADaj7WMB6khJX48KJE1K5Sw3o8qf0owDxoQCq3G3Y_m28r0XsQ at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> When I try to add a new FCGuide to an empty FCGuides collection,
> it works fine, but if there are some guides (of the same type -
> horizontal or vertical), it cannot add a new one.
> I think this problem started in Final 26 and
> relevant so far for both JWLua 0.54 and RGP 0.59
> 
> Example:
> local ggp = finale.FCGridsGuidesPrefs()
> ggp:Load(1)
> local hg = ggp:GetHorizontalGuides()
> hg:AddGuide(640)
> ggp:Save()
> 
> Artem.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20220116/025ae74b/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 2
> Date: Sun, 16 Jan 2022 12:16:37 -0600
> From: Robert Patterson <robert at robertgpatterson.com>
> To: "The JW Lua script plug-in." <jwlua at jwmusic.nu>
> Subject: Re: [JW Lua] AddGuide function doesn't work properly
> Message-ID:
> 	<CAACnces+MJAyFd9i+Lma7O+qPS-SobvsaSuaamvhSR_vpYDK_Q at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> I am seeing this also in versions of Finale 26.2 and higher. If you have an
> earlier Finale version you can test, please confirm that it works there.
> 
> I'm still researching why this is happening in F26.2+.
> 
> On Sun, Jan 16, 2022 at 7:35 AM Artem Roschenko <roschenkoartem at gmail.com>
> wrote:
> 
>> When I try to add a new FCGuide to an empty FCGuides collection,
>> it works fine, but if there are some guides (of the same type -
>> horizontal or vertical), it cannot add a new one.
>> I think this problem started in Final 26 and
>> relevant so far for both JWLua 0.54 and RGP 0.59
>> 
>> Example:
>> local ggp = finale.FCGridsGuidesPrefs()
>> ggp:Load(1)
>> local hg = ggp:GetHorizontalGuides()
>> hg:AddGuide(640)
>> ggp:Save()
>> 
>> Artem.
>> _______________________________________________
>> JWLua mailing list
>> JWLua at jwmusic.nu
>> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20220116/ec590881/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 3
> Date: Sun, 16 Jan 2022 16:15:39 -0600
> From: Robert Patterson <robert at robertgpatterson.com>
> To: "The JW Lua script plug-in." <jwlua at jwmusic.nu>
> Subject: Re: [JW Lua] RGP Lua 0.59 Released (Robert Patterson)
> Message-ID:
> 	<CAACncesePrrfP50RUFS_Bz2hCbwzeTWmEs3FRHmWkTsQ9+FWsw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Could you send a sample musx file to go with that script? I'm not sure
> what's going on. FWIW: the bottom composite is almost always 1-element per
> group. And it's usually only used where you are combining multiple full
> meters like (2/4) + (3/8).
> 
> On Sun, Jan 16, 2022 at 4:54 AM Carl Vine <carlvine at iinet.net.au> wrote:
> 
>> This is amazing Robert - mind-boggling complexity.
>> 
>> Trying to wrap my head around Time Signatures. I don?t suppose you have a
>> sample script running through the nested elements in Composite TimeSigs?
>> 
>> I think I?ve fathomed most of it but can?t get
>> time_sig_bot:GetGroupElementBeatDuration(0,0) to work, even though the
>> group and element numbers are shown to exist. Keeps throwing a ?nil value?
>> exception. Oddly, ?SetGroupElementBeatDuration()? does work.
>> 
>> ?=======
>> if time_sig.CompositeBottom then
>>    local ccb = time_sig:CreateCompositeBottom()
>>    local num_bot_groups = ccb:GetGroupCount()
>>    res=res.."Comp bot = ".. num_bot_groups .. " groups - "
>> 
>>    for i = 0,num_bot_groups-1 do
>>        local x = ccb:GetGroupElementCount(i)
>>        res=res.."bot"..i.."= "..x.." els/ \n"
>>        for j = 0, x-1 do
>>            res=res..ccb:GetGroupElementBeatDuration(i,j).."/ "
>>        end
>>    end
>> end
>> finenv.UI():AlertNeutral(plugindef(), res)
>> ?=======
>> 
>> Carl
>> 
>> On 15 Jan 2022, at 10:00 pm, jwlua-request at jwmusic.nu wrote:
>> 
>> Send JWLua mailing list submissions to
>> jwlua at jwmusic.nu
>> 
>> To subscribe or unsubscribe via the World Wide Web, visit
>> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>> or, via email, send a message with subject or body 'help' to
>> jwlua-request at jwmusic.nu
>> 
>> You can reach the person managing the list at
>> jwlua-owner at jwmusic.nu
>> 
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of JWLua digest..."
>> 
>> 
>> Today's Topics:
>> 
>>  1. RGP Lua 0.59 Released (Robert Patterson)
>> 
>> 
>> ----------------------------------------------------------------------
>> 
>> Message: 1
>> Date: Fri, 14 Jan 2022 10:31:16 -0600
>> From: Robert Patterson <robert at robertgpatterson.com>
>> To: "The JW Lua script plug-in." <jwlua at jwmusic.nu>
>> Subject: [JW Lua] RGP Lua 0.59 Released
>> Message-ID:
>> <CAACncetAD9LXkWUhXeAvUFxmZikFAijMAv5TM9GAaafta3tgaA at mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>> 
>> RGP Lua version 0.59 is now available for download on the download page
>> <https://robertgpatterson.com/-fininfo/-rgplua/rgplua.html>.
>> 
>> Enhancements include:
>> 
>>  - Full support for adding, changing, and deleting mid-measure clefs.
>>  (See FCCell.)
>>  - Full support for adding, changing, and deleting composite time
>>  signatures, both measure-level and for independent time signatures.
>>  - Various new methods and properties on FCCellMetrics, FCArticulation,
>>  FCDistancePrefs, FCStrings, and FCFontInfo. (See version history for
>>  details.)
>>  - Added system- and folder-level prefix script options (perhaps useful
>>  for adding to PATH and/or CPATH require paths).
>>  - Bug fixes.
>> 
>> Happy scripting,
>> Robert
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <
>> http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20220114/d4cb78e7/attachment-0001.html
>>> 
>> 
>> ------------------------------
>> 
>> Subject: Digest Footer
>> 
>> _______________________________________________
>> JWLua mailing list
>> JWLua at jwmusic.nu
>> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>> 
>> 
>> ------------------------------
>> 
>> End of JWLua Digest, Vol 87, Issue 6
>> ************************************
>> 
>> 
>> 
>> 
>> 
>> Carl
>> 
>> _______________________________________________
>> JWLua mailing list
>> JWLua at jwmusic.nu
>> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20220116/d975af95/attachment-0001.html>
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
> 
> 
> ------------------------------
> 
> End of JWLua Digest, Vol 87, Issue 8
> ************************************



More information about the JWLua mailing list