[JW Lua] FCCellFrameHold:CalcClefChange problem with hidden layers

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Sat Sep 13 23:44:22 CEST 2014


Jan,

Thanks for the bug file. I can reproduce the missing clef change 
detection in measure 4. I'll fix it.


Best regards,

Jari Williamsson



On 2014-09-13 21:53, Jan Angermüller wrote:
> Jari,
>
> thanks for your responses to the many clef issues.
> They really help !
>
> Attached you find an example excerpt from a score where
> I get weird CalcClefChange results.
>
> Just select all and run the following script:
>
>      local region=finenv.Region()
>      for i,j in eachcell(region) do
>          local cell=finale.FCCell(i,j)
>          local CellFrameHold=finale.FCCellFrameHold()
>          CellFrameHold:ConnectCell(cell)
>          if CellFrameHold:Load() then
>              print("Clef Change",i,CellFrameHold:CalcClefChange())
>          else
>              print("No Clef Change",i)
>          end
>      end
>
> These are the results that I get:
> Clef Change 1 false             (I don't know if the very first measure
> should return true, probably it should. Up to you.)
> No Clef Change 2
> No Clef Change 3
> Clef Change 4 false               (should be true !)
> Clef Change 5 false
> Clef Change 6 true
> No Clef Change 7
> No Clef Change 8
> No Clef Change 9
>
> - it only returns true for CalcClefChange in the measure after the cue
> notes,
>    and false for the cue notes measures that have a clef change
> - the first clef change is only detected through loading the object,
>    CalcClefChange still returns false
>
> Jan
>
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>






More information about the JWLua mailing list