[JW Lua] CopyMusic ( (FCMusicRegion)

Chris marcel.denio at gmail.com
Wed Nov 23 09:04:36 CET 2016


Hello Jari (and all)

There is a problem with the methods "CopyMusic" and  "PasteMusic" 
(FCMusicRegion)
When the region has at least 2 staves with different clefs
and if the 1st measure of the region begins with a blank measure (no 
rest), for one staff or all,
sometimes, there is another clef added at the beginning of the copy.

To see it :
- open the document (attachment)
- select the first 2 measures (all staves)
  - run the script :
---------------------------------------
local musicregion = finenv.Region()
musicregion:CopyMusic()
musicregion.StartMeasure = 3
musicregion.EndMeasure = 4
musicregion:PasteMusic()
musicregion:ReleaseMusic()
---------------------------------------

But Finale has a behavior that looks like this :
- create a document without libraries
- add one measure
- add a whole note in the second measure
- change the first clef (score manager)

A clef has been added to the second measure

So I do not know if there is a relationship between the two problems

Best

Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20161123/3dfcfa1a/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_bug_copy.zip
Type: application/x-zip-compressed
Size: 13135 bytes
Desc: not available
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20161123/3dfcfa1a/attachment.bin>


More information about the JWLua mailing list