I'm not sure if this is an issue exactly but maybe something that could be tweaked for better UX. When using a chord staff to insert chord names above a staff with an initial pickup bar, if I write a chord in the second bar, it will display over the first pickup bar, instead of the second bar as it should.

One way around this is to write a rest in the pickup bar, then a N.C. (no chord) will display over the pickup bar, and the second bar chord displays in the correct position.

Typically though you don't want that N.C. printed, but you can hide it by inserting lilypond in the pickup bar before the rest (\set noChordSymbol = "").

It seems like if you write a chord in the second bar, it should display over the second bar. I think I understand that Lilypond is formatting it as it does because of the duration values in the bars, but maybe with a pickup bar this is a special case? Or maybe there's an easier way to make this work?


thanks, George
<?xml version="1.0" encoding="UTF-8"?>
<score xmlns="http://denemo.org/xmlns/Denemo"; version="8">
  <lilycontrol>
    <papersize>a4</papersize>
    <lilyversion>2.24</lilyversion>
    <fontsize>18</fontsize>
    <orientation>1</orientation>
    <total-edit-time>0</total-edit-time>
    <score-directives>
      <directive>
        <tag>ScoreIndent</tag>
        <prefix>\layout {indent = 10.8}
</prefix>
        <display>indent=10.8</display>
        <data>10.8</data>
        <override>4</override>
      </directive>
    </score-directives>
  </lilycontrol>
  <movement-number>1</movement-number>
  <movement>
    <edit-info>
      <staffno>2</staffno>
      <measureno>1</measureno>
      <cursorposition>0</cursorposition>
      <tonalcenter>0</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>chords</voice-name>
          <first-measure-number>1</first-measure-number>
        </voice-info>
        <initial-voice-params>
          <staff-ref staff="id0"></staff-ref>
          <clef name="treble">
            <directives>
              <directive>
                <tag>ChordStaff</tag>
                <postfix>
</postfix>
                <override>1</override>
              </directive>
            </directives>
          </clef>
          <key-signature>
            <modal-key-signature note-name="C" 
mode="major"></modal-key-signature>
            <directives>
              <directive>
                <tag>ChordStaff</tag>
                <postfix>
</postfix>
                <override>17</override>
              </directive>
            </directives>
          </key-signature>
          <time-signature>
            <simple-time-signature>
              <numerator>4</numerator>
              <denominator>4</denominator>
            </simple-time-signature>
            <directives>
              <directive>
                <tag>ChordStaff</tag>
                <postfix>
</postfix>
                <display>ChordStaff</display>
                <override>1</override>
              </directive>
            </directives>
          </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>ChordStaff</tag>
              <display>ChordStaff</display>
              <override>21</override>
            </directive>
          </staff-directives>
          <voice-directives>
            <directive>
              <tag>ChordStaff</tag>
              <prefix>\new ChordNames 
</prefix>
              <display>ChordStaff</display>
              <override>5</override>
            </directive>
          </voice-directives>
          <clef-directives>
            <directive>
              <tag>ChordStaff</tag>
              <postfix>
</postfix>
              <override>1</override>
            </directive>
          </clef-directives>
        </voice-props>
        <measures>
          <measure offset="-1">
            <lily-directive locked="true" ticks="1344">
              <tag>Upbeat</tag>
              <postfix>\partial 256*32 </postfix>
              <display>Upbeat</display>
              <graphic_name>

emmentaler
62</graphic_name>
              <minpixels>30</minpixels>
              <gx>20</gx>
              <gy>15</gy>
              <override>268435456</override>
            </lily-directive>
          </measure>
          <measure>
            <chord show="true" id="id3">
              <duration base="whole"></duration>
              <directives>
                <directive>
                  <tag>ChordName</tag>
                  <display>A</display>
                  <graphic_name>
7
Denemo
16</graphic_name>
                  <gx>-5</gx>
                </directive>
              </directives>
              <notes>
                <note id="id4">
                  <middle-c-offset>5</middle-c-offset>
                </note>
                <note id="id5">
                  <middle-c-offset>7</middle-c-offset>
                  <accidental name="sharp" show="true"></accidental>
                </note>
                <note id="id6">
                  <middle-c-offset>9</middle-c-offset>
                </note>
                <note id="id7">
                  <middle-c-offset>11</middle-c-offset>
                </note>
              </notes>
            </chord>
          </measure>
        </measures>
      </voice>
      <voice id="id8">
        <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="C" 
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 offset="-1">
            <lily-directive locked="true" ticks="1344">
              <tag>Upbeat</tag>
              <postfix>\partial 256*32 </postfix>
              <display>Upbeat</display>
              <graphic_name>

emmentaler
62</graphic_name>
              <minpixels>30</minpixels>
              <gx>20</gx>
              <gy>15</gy>
              <override>268435456</override>
            </lily-directive>
            <chord show="true" id="id9">
              <duration base="eighth"></duration>
              <notes>
                <note id="id10">
                  <middle-c-offset>4</middle-c-offset>
                </note>
              </notes>
            </chord>
          </measure>
          <measure>
            <chord show="true" id="id11">
              <duration base="whole"></duration>
              <notes>
                <note id="id12">
                  <middle-c-offset>4</middle-c-offset>
                </note>
              </notes>
            </chord>
          </measure>
        </measures>
      </voice>
    </voices>
  </movement>
</score>

Reply via email to