<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>In this very large “score explosion” project, I am finally getting into some less elementary conductor scores where, for the first time, divisi staves with multiple instruments use not just a “chordal” structure but also, in some sections, Layer 1/Layer 2. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>So I need to familiarize myself with the treatment of Layers in JW Lua. I have a lot of experience of this sort of thing on the Sibelius/ManuScript side, and know that these issues are knotty, to put it mildly.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Until now, when “exploding” the staves I have used scripts similar to what Nick Mazuk has posted on Github, stripping out either the top or the bottom notes in a chord. But with multiple layers, it is a whole new ball game.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Before I plunge in, I want to make sure I do not reinvent the wheel. There are various solutions available in plugins that either ship with Finale or in JW and TGTools, but I am looking for something I can script in JW Lua. Does anyone know of code posted anywhere that will do this kind of thing, or at least give me a starting point for my own efforts?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>(The trickiest cases in Sibelius are the ones where a single measure in a divisi staff has a mixture of the two notation styles: chordal, and layer.)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Martin<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>