Hi Richard this happened in a rather bigger score but the attached shows the principle(I am not totally familiar with Ossia staves but I assumed that having picked up the key from the main staff they would behave in the same way)
As you can see a scale of G with a (hamfisted) Ossia a third above shows F# normally in the main staff but as accidentals in the Ossia. And I cannot force a key signature change in the Ossia (only) to try to rectify it.
I can add a normal staff of course! Best wishes Joe
Ossiatest-Default Score Layout.pdf
Description: Adobe PDF document
<?xml version="1.0" encoding="UTF-8"?> <score xmlns="http://denemo.org/xmlns/Denemo" version="8"> <thumbnail> <first-staff>1</first-staff> <last-staff>3</last-staff> <first-measure>1</first-measure> <last-measure>3</last-measure> <first-obj>0</first-obj> <last-obj>2147483647</last-obj> </thumbnail> <lilycontrol> <papersize>a4</papersize> <lilyversion>2.20</lilyversion> <fontsize>18</fontsize> <orientation>1</orientation> <total-edit-time>0</total-edit-time> <score-directives> <directive> <tag>HideEmptyStaffs</tag> <prefix>\layout { \context { \RemoveEmptyStaffContext } }</prefix> </directive> </score-directives> </lilycontrol> <movement-number>1</movement-number> <movement> <edit-info> <staffno>1</staffno> <measureno>4</measureno> <cursorposition>4</cursorposition> <tonalcenter>1</tonalcenter> <zoom>100</zoom> <system-height>100</system-height> <page-zoom>0</page-zoom> <page-system-height>0</page-system-height> </edit-info> <score-info> <tempo> <bpm>120</bpm> </tempo> </score-info> <staves> <staff id="id0"></staff> <staff id="id1"></staff> </staves> <voices> <voice id="id2"> <voice-info> <voice-name>Part 1</voice-name> <subpart>ossia</subpart> <first-measure-number>1</first-measure-number> </voice-info> <initial-voice-params> <staff-ref staff="id0"></staff-ref> <clef name="treble"></clef> <key-signature> <modal-key-signature note-name="G" mode="major"></modal-key-signature> </key-signature> <time-signature> <simple-time-signature> <numerator>4</numerator> <denominator>4</denominator> </simple-time-signature> </time-signature> </initial-voice-params> <voice-props> <number-of-lines>5</number-of-lines> <voice-control>1</voice-control> <transpose>0</transpose> <instrument></instrument> <device-port>NONE</device-port> <volume>127</volume> <override_volume>0</override_volume> <mute>0</mute> <midi_prognum>0</midi_prognum> <midi_channel>1</midi_channel> <hasfigures>0</hasfigures> <hasfakechords>0</hasfakechords> <staff-directives> <directive> <tag>ossia</tag> <prefix> \remove "Time_signature_engraver" \remove "Key_engraver" \remove "Clef_engraver" fontSize = #-2 \override StaffSymbol #'staff-space = #(magstep -2) firstClef = ##f </prefix> <display>Ossia</display> <override>22</override> </directive> </staff-directives> <voice-directives> <directive> <tag>ossia</tag> <postfix>\stopStaff \hideNotes </postfix> <display>Ossia</display> <override>4</override> </directive> </voice-directives> </voice-props> <measures> <measure> <lily-directive> <tag>ShowOssia</tag> <postfix>\startStaff \unHideNotes</postfix> <display>Show</display> <minpixels>30</minpixels> <ty>40</ty> </lily-directive> <chord show="true" id="id3"> <duration base="quarter"></duration> <notes> <note id="id4"> <middle-c-offset>6</middle-c-offset> </note> </notes> </chord> <chord show="true" id="id5"> <duration base="quarter"></duration> <notes> <note id="id6"> <middle-c-offset>7</middle-c-offset> </note> </notes> </chord> <chord show="true" id="id7"> <duration base="quarter"></duration> <notes> <note id="id8"> <middle-c-offset>8</middle-c-offset> </note> </notes> </chord> <chord show="true" id="id9"> <duration base="quarter"></duration> <notes> <note id="id10"> <middle-c-offset>9</middle-c-offset> </note> </notes> </chord> </measure> <measure> <chord show="true" id="id11"> <duration base="quarter"></duration> <notes> <note id="id12"> <middle-c-offset>10</middle-c-offset> <accidental name="sharp" show="false"></accidental> </note> </notes> </chord> <chord show="true" id="id13"> <duration base="quarter"></duration> <notes> <note id="id14"> <middle-c-offset>11</middle-c-offset> </note> </notes> </chord> <chord show="true" id="id15"> <duration base="quarter"></duration> <notes> <note id="id16"> <middle-c-offset>12</middle-c-offset> </note> </notes> </chord> <chord show="true" id="id17"> <duration base="quarter"></duration> <notes> <note id="id18"> <middle-c-offset>13</middle-c-offset> </note> </notes> </chord> </measure> <measure> <chord show="true" id="id19"> <duration base="quarter"></duration> <notes> <note id="id20"> <middle-c-offset>13</middle-c-offset> </note> </notes> </chord> <chord show="true" id="id21"> <duration base="quarter"></duration> <notes> <note id="id22"> <middle-c-offset>12</middle-c-offset> </note> </notes> </chord> <chord show="true" id="id23"> <duration base="quarter"></duration> <notes> <note id="id24"> <middle-c-offset>11</middle-c-offset> </note> </notes> </chord> <chord show="true" id="id25"> <duration base="quarter"></duration> <notes> <note id="id26"> <middle-c-offset>10</middle-c-offset> <accidental name="sharp" show="false"></accidental> </note> </notes> </chord> </measure> <measure> <chord show="true" id="id27"> <duration base="quarter"></duration> <notes> <note id="id28"> <middle-c-offset>9</middle-c-offset> </note> </notes> </chord> <chord show="true" id="id29"> <duration base="quarter"></duration> <notes> <note id="id30"> <middle-c-offset>8</middle-c-offset> </note> </notes> </chord> <chord show="true" id="id31"> <duration base="quarter"></duration> <notes> <note id="id32"> <middle-c-offset>7</middle-c-offset> </note> </notes> </chord> <chord show="true" id="id33"> <duration base="quarter"></duration> <notes> <note id="id34"> <middle-c-offset>6</middle-c-offset> </note> </notes> </chord> </measure> </measures> </voice> <voice id="id35"> <voice-info> <voice-name>Part 1</voice-name> <first-measure-number>1</first-measure-number> </voice-info> <initial-voice-params> <staff-ref staff="id1"></staff-ref> <clef name="treble"></clef> <key-signature> <modal-key-signature note-name="G" mode="major"></modal-key-signature> </key-signature> <time-signature> <simple-time-signature> <numerator>4</numerator> <denominator>4</denominator> </simple-time-signature> </time-signature> </initial-voice-params> <voice-props> <number-of-lines>5</number-of-lines> <voice-control>1</voice-control> <transpose>0</transpose> <instrument></instrument> <device-port>NONE</device-port> <volume>127</volume> <override_volume>0</override_volume> <mute>0</mute> <midi_prognum>0</midi_prognum> <midi_channel>0</midi_channel> <hasfigures>0</hasfigures> <hasfakechords>0</hasfakechords> </voice-props> <measures> <measure> <chord show="true" id="id36"> <duration base="quarter"></duration> <notes> <note id="id37"> <middle-c-offset>4</middle-c-offset> </note> </notes> </chord> <chord show="true" id="id38"> <duration base="quarter"></duration> <notes> <note id="id39"> <middle-c-offset>5</middle-c-offset> </note> </notes> </chord> <chord show="true" id="id40"> <duration base="quarter"></duration> <notes> <note id="id41"> <middle-c-offset>6</middle-c-offset> </note> </notes> </chord> <chord show="true" id="id42"> <duration base="quarter"></duration> <notes> <note id="id43"> <middle-c-offset>7</middle-c-offset> </note> </notes> </chord> </measure> <measure> <chord show="true" id="id44"> <duration base="quarter"></duration> <notes> <note id="id45"> <middle-c-offset>8</middle-c-offset> </note> </notes> </chord> <chord show="true" id="id46"> <duration base="quarter"></duration> <notes> <note id="id47"> <middle-c-offset>9</middle-c-offset> </note> </notes> </chord> <chord show="true" id="id48"> <duration base="quarter"></duration> <notes> <note id="id49"> <middle-c-offset>10</middle-c-offset> <accidental name="sharp" show="false"></accidental> </note> </notes> </chord> <chord show="true" id="id50"> <duration base="quarter"></duration> <notes> <note id="id51"> <middle-c-offset>11</middle-c-offset> </note> </notes> </chord> </measure> <measure> <chord show="true" id="id52"> <duration base="quarter"></duration> <notes> <note id="id53"> <middle-c-offset>11</middle-c-offset> </note> </notes> </chord> <chord show="true" id="id54"> <duration base="quarter"></duration> <notes> <note id="id55"> <middle-c-offset>10</middle-c-offset> <accidental name="sharp" show="false"></accidental> </note> </notes> </chord> <chord show="true" id="id56"> <duration base="quarter"></duration> <notes> <note id="id57"> <middle-c-offset>9</middle-c-offset> </note> </notes> </chord> <chord show="true" id="id58"> <duration base="quarter"></duration> <notes> <note id="id59"> <middle-c-offset>8</middle-c-offset> </note> </notes> </chord> </measure> <measure> <chord show="true" id="id60"> <duration base="quarter"></duration> <notes> <note id="id61"> <middle-c-offset>7</middle-c-offset> </note> </notes> </chord> <chord show="true" id="id62"> <duration base="quarter"></duration> <notes> <note id="id63"> <middle-c-offset>6</middle-c-offset> </note> </notes> </chord> <chord show="true" id="id64"> <duration base="quarter"></duration> <notes> <note id="id65"> <middle-c-offset>5</middle-c-offset> </note> </notes> </chord> <chord show="true" id="id66"> <duration base="quarter"></duration> <notes> <note id="id67"> <middle-c-offset>4</middle-c-offset> </note> </notes> </chord> </measure> </measures> </voice> </voices> </movement> </score>
