Skip to content

Old scans give two staff groups instead of three #51

Open
@mm3509

Description

@mm3509

Describe the bug

I tested the code on an old scan and the results are problematic, for example two staff line groups instead of three. Are there settings that work well with old scans?

Input Image

ss015

Full Traceback

The command produces no errors per se, but here is the image from the transcription:

ss015 transcribed by oemer

and here is the .musicxml file output:

Click me
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 4.0 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">
<score-partwise version="4.0">
  <work>
    <work-title>Ss015</work-title>
  </work>
  <identification>
    <creator type="composer">Transcribed by Oemer</creator>
  </identification>
  <part-list>
    <score-part id="P1">
      <part-name>Piano</part-name>
      <score-instrument id="P1-I1">
        <instrument-name>Piano</instrument-name>
        <instrument-sound>keyboard.piano</instrument-sound>
      </score-instrument>
      <midi-instrument id="P1-I1">
        <midi-channel>1</midi-channel>
        <midi-program>1</midi-program>
        <volume>80</volume>
        <pan>0</pan>
      </midi-instrument>
    </score-part>
  </part-list>
  <part id="P1">
    <sound tempo="90"/>
    <measure number="1">
      <attributes>
        <divisions>16</divisions>
        <key>
          <fifths>0</fifths>
        </key>
        <staves>2</staves>
        <clef number="1">
          <sign>G</sign>
          <line>2</line>
        </clef>
        <clef number="2">
          <sign>G</sign>
          <line>2</line>
        </clef>
      </attributes>
      <note>
        <rest measure="yes"/>
        <duration>8</duration>
        <staff>2</staff>
      </note>
      <backup>
        <duration>8</duration>
      </backup>
      <note>
        <rest measure="yes"/>
        <duration>8</duration>
        <staff>1</staff>
      </note>
      <backup>
        <duration>8</duration>
      </backup>
      <note>
        <pitch>
          <step>D</step>
          <alter>0</alter>
          <octave>5</octave>
        </pitch>
        <duration>8</duration>
        <type>eighth</type>
        <stem>up</stem>
        <staff>1</staff>
        <voice>2</voice>
      </note>
      <backup>
        <duration>8</duration>
      </backup>
      <note>
        <pitch>
          <step>C</step>
          <alter>0</alter>
          <octave>5</octave>
        </pitch>
        <duration>8</duration>
        <type>eighth</type>
        <stem>down</stem>
        <staff>1</staff>
        <voice>2</voice>
      </note>
      <note>
        <rest measure="yes"/>
        <duration>12</duration>
        <dot/>
        <staff>2</staff>
      </note>
      <backup>
        <duration>12</duration>
      </backup>
      <note>
        <rest measure="yes"/>
        <duration>24</duration>
        <dot/>
        <staff>1</staff>
      </note>
      <backup>
        <duration>24</duration>
      </backup>
      <note>
        <rest measure="yes"/>
        <duration>12</duration>
        <dot/>
        <staff>2</staff>
      </note>
      <backup>
        <duration>12</duration>
      </backup>
      <note>
        <rest measure="yes"/>
        <duration>24</duration>
        <dot/>
        <staff>1</staff>
      </note>
      <backup>
        <duration>24</duration>
      </backup>
      <note>
        <rest measure="yes"/>
        <duration>24</duration>
        <dot/>
        <staff>1</staff>
      </note>
      <backup>
        <duration>12</duration>
      </backup>
      <note>
        <rest measure="yes"/>
        <duration>12</duration>
        <dot/>
        <staff>2</staff>
      </note>
      <note>
        <pitch>
          <step>D</step>
          <alter>0</alter>
          <octave>4</octave>
        </pitch>
        <duration>16</duration>
        <type>quarter</type>
        <stem>up</stem>
        <staff>2</staff>
        <voice>1</voice>
      </note>
      <backup>
        <duration>16</duration>
      </backup>
      <note>
        <rest measure="yes"/>
        <duration>16</duration>
        <staff>1</staff>
      </note>
      <note>
        <pitch>
          <step>B</step>
          <alter>0</alter>
          <octave>3</octave>
        </pitch>
        <duration>8</duration>
        <type>eighth</type>
        <stem>up</stem>
        <staff>2</staff>
        <voice>1</voice>
      </note>
      <backup>
        <duration>8</duration>
      </backup>
      <note>
        <pitch>
          <step>E</step>
          <alter>0</alter>
          <octave>4</octave>
        </pitch>
        <duration>16</duration>
        <type>quarter</type>
        <stem>up</stem>
        <staff>1</staff>
        <voice>1</voice>
      </note>
      <backup>
        <duration>8</duration>
      </backup>
      <note>
        <pitch>
          <step>G</step>
          <alter>0</alter>
          <octave>4</octave>
        </pitch>
        <duration>16</duration>
        <type>quarter</type>
        <stem>up</stem>
        <staff>2</staff>
        <voice>1</voice>
      </note>
      <note>
        <pitch>
          <step>D</step>
          <alter>0</alter>
          <octave>4</octave>
        </pitch>
        <duration>32</duration>
        <type>half</type>
        <stem>up</stem>
        <staff>2</staff>
        <voice>1</voice>
      </note>
      <backup>
        <duration>40</duration>
      </backup>
      <note>
        <rest measure="yes"/>
        <duration>48</duration>
        <dot/>
        <staff>1</staff>
      </note>
      <note>
        <pitch>
          <step>E</step>
          <alter>0</alter>
          <octave>4</octave>
        </pitch>
        <duration>32</duration>
        <type>half</type>
        <stem>up</stem>
        <staff>1</staff>
        <voice>1</voice>
      </note>
      <backup>
        <duration>32</duration>
      </backup>
      <note>
        <rest measure="yes"/>
        <duration>48</duration>
        <dot/>
        <staff>2</staff>
      </note>
      <backup>
        <duration>8</duration>
      </backup>
      <note>
        <pitch>
          <step>B</step>
          <alter>0</alter>
          <octave>4</octave>
        </pitch>
        <duration>8</duration>
        <type>eighth</type>
        <stem>up</stem>
        <staff>1</staff>
        <voice>1</voice>
      </note>
    </measure>
    <measure number="2">
      <print new-system="yes"/>
      <note>
        <rest measure="yes"/>
        <duration>8</duration>
        <staff>2</staff>
      </note>
      <attributes>
        <clef number="1">
          <sign>F</sign>
          <line>4</line>
        </clef>
      </attributes>
      <note>
        <rest measure="yes"/>
        <duration>12</duration>
        <dot/>
        <staff>1</staff>
      </note>
      <backup>
        <duration>12</duration>
      </backup>
      <note>
        <rest measure="yes"/>
        <duration>12</duration>
        <dot/>
        <staff>1</staff>
      </note>
      <note>
        <pitch>
          <step>E</step>
          <alter>0</alter>
          <octave>3</octave>
        </pitch>
        <duration>16</duration>
        <type>quarter</type>
        <stem>up</stem>
        <staff>1</staff>
        <voice>1</voice>
      </note>
      <note>
        <rest measure="yes"/>
        <duration>12</duration>
        <dot/>
        <staff>1</staff>
      </note>
      <backup>
        <duration>12</duration>
      </backup>
      <note>
        <pitch>
          <step>D</step>
          <alter>1</alter>
          <octave>4</octave>
        </pitch>
        <duration>32</duration>
        <type>half</type>
        <stem>up</stem>
        <staff>2</staff>
        <voice>1</voice>
      </note>
    </measure>
    <measure number="3">
      <note>
        <pitch>
          <step>D</step>
          <alter>0</alter>
          <octave>5</octave>
        </pitch>
        <duration>32</duration>
        <type>half</type>
        <stem>down</stem>
        <staff>2</staff>
        <voice>1</voice>
      </note>
      <note>
        <pitch>
          <step>B</step>
          <alter>0</alter>
          <octave>4</octave>
        </pitch>
        <duration>32</duration>
        <type>half</type>
        <stem>down</stem>
        <staff>2</staff>
        <voice>1</voice>
      </note>
      <note>
        <pitch>
          <step>G</step>
          <alter>0</alter>
          <octave>4</octave>
        </pitch>
        <duration>32</duration>
        <type>half</type>
        <stem>up</stem>
        <staff>2</staff>
        <voice>1</voice>
      </note>
      <backup>
        <duration>96</duration>
      </backup>
      <note>
        <pitch>
          <step>D</step>
          <alter>0</alter>
          <octave>3</octave>
        </pitch>
        <duration>64</duration>
        <type>whole</type>
        <stem>down</stem>
        <staff>1</staff>
        <voice>1</voice>
      </note>
      <note>
        <rest measure="yes"/>
        <duration>48</duration>
        <dot/>
        <staff>1</staff>
      </note>
      <note>
        <rest measure="yes"/>
        <duration>12</duration>
        <dot/>
        <staff>2</staff>
      </note>
    </measure>
    <measure number="4">
      <note>
        <pitch>
          <step>E</step>
          <alter>0</alter>
          <octave>4</octave>
        </pitch>
        <duration>32</duration>
        <type>half</type>
        <stem>up</stem>
        <staff>2</staff>
        <voice>1</voice>
      </note>
      <note>
        <pitch>
          <step>C</step>
          <alter>0</alter>
          <octave>5</octave>
        </pitch>
        <duration>16</duration>
        <type>quarter</type>
        <stem>up</stem>
        <staff>2</staff>
        <voice>1</voice>
      </note>
      <backup>
        <duration>48</duration>
      </backup>
      <note>
        <rest measure="yes"/>
        <duration>96</duration>
        <dot/>
        <staff>1</staff>
      </note>
      <note>
        <pitch>
          <step>B</step>
          <alter>0</alter>
          <octave>4</octave>
        </pitch>
        <duration>32</duration>
        <type>half</type>
        <stem>down</stem>
        <staff>2</staff>
        <voice>1</voice>
      </note>
    </measure>
    <measure number="5">
      <note>
        <rest measure="yes"/>
        <duration>64</duration>
        <staff>1</staff>
      </note>
      <backup>
        <duration>64</duration>
      </backup>
      <note>
        <pitch>
          <step>G</step>
          <alter>0</alter>
          <octave>4</octave>
        </pitch>
        <duration>32</duration>
        <type>half</type>
        <stem>up</stem>
        <staff>2</staff>
        <voice>1</voice>
      </note>
      <note>
        <pitch>
          <step>A</step>
          <alter>0</alter>
          <octave>4</octave>
        </pitch>
        <duration>32</duration>
        <type>half</type>
        <stem>up</stem>
        <staff>2</staff>
        <voice>1</voice>
      </note>
    </measure>
    <measure number="5">
      <print new-system="yes"/>
      <attributes>
        <clef number="2">
          <sign>F</sign>
          <line>4</line>
        </clef>
      </attributes>
      <note>
        <rest measure="yes"/>
        <duration>8</duration>
        <staff>1</staff>
      </note>
      <attributes>
        <clef number="1">
          <sign>G</sign>
          <line>2</line>
        </clef>
      </attributes>
      <backup>
        <duration>8</duration>
      </backup>
      <note>
        <rest measure="yes"/>
        <duration>12</duration>
        <dot/>
        <staff>1</staff>
      </note>
      <backup>
        <duration>12</duration>
      </backup>
      <note>
        <rest measure="yes"/>
        <duration>8</duration>
        <staff>2</staff>
      </note>
      <note>
        <rest measure="yes"/>
        <duration>24</duration>
        <dot/>
        <staff>1</staff>
      </note>
      <backup>
        <duration>24</duration>
      </backup>
      <note>
        <rest measure="yes"/>
        <duration>12</duration>
        <dot/>
        <staff>2</staff>
      </note>
      <backup>
        <duration>12</duration>
      </backup>
      <note>
        <rest measure="yes"/>
        <duration>12</duration>
        <dot/>
        <staff>1</staff>
      </note>
      <backup>
        <duration>12</duration>
      </backup>
      <note>
        <rest measure="yes"/>
        <duration>12</duration>
        <dot/>
        <staff>2</staff>
      </note>
      <note>
        <pitch>
          <step>A</step>
          <alter>0</alter>
          <octave>3</octave>
        </pitch>
        <duration>12</duration>
        <type>eighth</type>
        <dot/>
        <stem>up</stem>
        <staff>1</staff>
        <voice>1</voice>
      </note>
      <backup>
        <duration>12</duration>
      </backup>
      <note>
        <pitch>
          <step>G</step>
          <alter>0</alter>
          <octave>3</octave>
        </pitch>
        <duration>4</duration>
        <type>16th</type>
        <stem>up</stem>
        <staff>2</staff>
        <voice>1</voice>
      </note>
      <backup>
        <duration>4</duration>
      </backup>
      <note>
        <pitch>
          <step>G</step>
          <alter>0</alter>
          <octave>2</octave>
        </pitch>
        <duration>16</duration>
        <type>quarter</type>
        <stem>down</stem>
        <staff>2</staff>
        <voice>2</voice>
      </note>
      <backup>
        <duration>12</duration>
      </backup>
    </measure>
    <measure number="6">
      <note>
        <pitch>
          <step>D</step>
          <alter>0</alter>
          <octave>5</octave>
        </pitch>
        <duration>32</duration>
        <type>half</type>
        <stem>up</stem>
        <staff>1</staff>
        <voice>1</voice>
      </note>
      <backup>
        <duration>32</duration>
      </backup>
      <note>
        <rest measure="yes"/>
        <duration>32</duration>
        <staff>2</staff>
      </note>
      <note>
        <pitch>
          <step>G</step>
          <alter>0</alter>
          <octave>3</octave>
        </pitch>
        <duration>16</duration>
        <type>quarter</type>
        <stem>up</stem>
        <staff>2</staff>
        <voice>2</voice>
      </note>
      <backup>
        <duration>16</duration>
      </backup>
      <note>
        <pitch>
          <step>B</step>
          <alter>0</alter>
          <octave>2</octave>
        </pitch>
        <duration>8</duration>
        <type>eighth</type>
        <stem>down</stem>
        <staff>2</staff>
        <voice>1</voice>
      </note>
      <backup>
        <duration>8</duration>
      </backup>
      <note>
        <pitch>
          <step>G</step>
          <alter>0</alter>
          <octave>4</octave>
        </pitch>
        <duration>16</duration>
        <type>quarter</type>
        <stem>up</stem>
        <staff>1</staff>
        <voice>1</voice>
      </note>
      <backup>
        <duration>16</duration>
      </backup>
      <note>
        <pitch>
          <step>D</step>
          <alter>0</alter>
          <octave>4</octave>
        </pitch>
        <duration>16</duration>
        <type>quarter</type>
        <stem>down</stem>
        <staff>1</staff>
        <voice>2</voice>
      </note>
    </measure>
    <measure number="7">
      <note>
        <pitch>
          <step>F</step>
          <alter>0</alter>
          <octave>4</octave>
        </pitch>
        <duration>16</duration>
        <type>quarter</type>
        <stem>up</stem>
        <staff>1</staff>
        <voice>1</voice>
      </note>
      <backup>
        <duration>16</duration>
      </backup>
      <note>
        <pitch>
          <step>D</step>
          <alter>1</alter>
          <octave>4</octave>
        </pitch>
        <duration>16</duration>
        <type>quarter</type>
        <stem>down</stem>
        <staff>1</staff>
        <voice>2</voice>
      </note>
      <note>
        <pitch>
          <step>E</step>
          <alter>0</alter>
          <octave>4</octave>
        </pitch>
        <duration>32</duration>
        <type>half</type>
        <stem>up</stem>
        <staff>1</staff>
        <voice>1</voice>
      </note>
      <backup>
        <duration>48</duration>
      </backup>
      <note>
        <rest measure="yes"/>
        <duration>48</duration>
        <dot/>
        <staff>2</staff>
      </note>
      <note>
        <pitch>
          <step>A</step>
          <alter>0</alter>
          <octave>2</octave>
        </pitch>
        <duration>32</duration>
        <type>half</type>
        <stem>up</stem>
        <staff>2</staff>
        <voice>1</voice>
      </note>
      <note>
        <chord/>
        <pitch>
          <step>A</step>
          <alter>0</alter>
          <octave>3</octave>
        </pitch>
        <duration>32</duration>
        <type>half</type>
        <stem>up</stem>
        <staff>2</staff>
        <voice>1</voice>
      </note>
      <note>
        <chord/>
        <pitch>
          <step>E</step>
          <alter>0</alter>
          <octave>3</octave>
        </pitch>
        <duration>32</duration>
        <type>half</type>
        <stem>up</stem>
        <staff>2</staff>
        <voice>1</voice>
      </note>
      <backup>
        <duration>32</duration>
      </backup>
      <note>
        <pitch>
          <step>C</step>
          <alter>0</alter>
          <octave>5</octave>
        </pitch>
        <duration>8</duration>
        <type>eighth</type>
        <stem>up</stem>
        <staff>1</staff>
        <voice>1</voice>
      </note>
      <backup>
        <duration>8</duration>
      </backup>
      <note>
        <pitch>
          <step>B</step>
          <alter>0</alter>
          <octave>3</octave>
        </pitch>
        <duration>16</duration>
        <type>quarter</type>
        <stem>down</stem>
        <staff>1</staff>
        <voice>2</voice>
      </note>
      <backup>
        <duration>8</duration>
      </backup>
    </measure>
    <measure number="8">
      <note>
        <pitch>
          <step>B</step>
          <alter>0</alter>
          <octave>4</octave>
        </pitch>
        <duration>32</duration>
        <type>half</type>
        <stem>up</stem>
        <staff>1</staff>
        <voice>1</voice>
      </note>
      <note>
        <pitch>
          <step>G</step>
          <alter>0</alter>
          <octave>4</octave>
        </pitch>
        <duration>16</duration>
        <type>quarter</type>
        <stem>up</stem>
        <staff>1</staff>
        <voice>1</voice>
      </note>
      <backup>
        <duration>48</duration>
      </backup>
      <note>
        <rest measure="yes"/>
        <duration>16</duration>
        <staff>2</staff>
      </note>
      <note>
        <pitch>
          <step>D</step>
          <alter>0</alter>
          <octave>3</octave>
        </pitch>
        <duration>32</duration>
        <type>half</type>
        <stem>down</stem>
        <staff>2</staff>
        <voice>1</voice>
      </note>
      <note>
        <chord/>
        <pitch>
          <step>F</step>
          <alter>1</alter>
          <octave>3</octave>
        </pitch>
        <duration>32</duration>
        <type>half</type>
        <stem>down</stem>
        <staff>2</staff>
        <voice>1</voice>
      </note>
      <note>
        <chord/>
        <pitch>
          <step>D</step>
          <alter>0</alter>
          <octave>2</octave>
        </pitch>
        <duration>32</duration>
        <type>half</type>
        <stem>down</stem>
        <staff>2</staff>
        <voice>1</voice>
      </note>
    </measure>
  </part>
</score-partwise>

Command You Execute

oemer ss015.png

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions