<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello Jari (and all)<br>
<br>
There is a problem with the methods "CopyMusic" and "PasteMusic"
(FCMusicRegion)<br>
When the region has at least 2 staves with different clefs<br>
and if the 1st measure of the region begins with a blank measure (no
rest), for one staff or all,<br>
sometimes, there is another clef added at the beginning of the copy.<br>
<br>
<span id="result_box" class="short_text" lang="en"><span class="">To
see it :</span></span><br>
- open the document (attachment)<br>
- select the first 2 measures (all staves)<br>
- run the script :<br>
---------------------------------------<br>
local musicregion = finenv.Region()<br>
musicregion:CopyMusic()<br>
musicregion.StartMeasure = 3<br>
musicregion.EndMeasure = 4<br>
musicregion:PasteMusic()<br>
musicregion:ReleaseMusic()<br>
---------------------------------------<br>
<br>
<span id="result_box" class="short_text" lang="en"><span class="">But
Finale has a behavior that looks like this :<br>
- create a document without libraries<br>
- add one measure<br>
- add a whole note in the second measure<br>
- change the first clef (score manager)<br>
<br>
</span></span><span id="result_box" class="short_text" lang="en"><span
class="">A clef has been added to the second measure<br>
</span></span><br>
<span id="result_box" class="" lang="en"><span class="">So I do not
know if there is a relationship between the two problems<br>
<br>
Best<br>
<br>
Chris<br>
</span></span>
</body>
</html>