title: How to make music sheet of these two measures in music21
body: <p>I have two adjacent measures here:</p>
  <p><a href="https://i.stack.imgur.com/Zxvv1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Zxvv1.png" alt="enter image description here" /></a></p>
  <p>My problem is how to make this piece of music with music21 python package.</p>
  <pre><code>from music21 import *
  s = stream.Stream();
  n = note.Note('C5',quarterLength = 0.5);
  s.append(n);
  n = note.Note('A4',quarterLength = 0.5);
  s.append(n);
  n = note.Note('C5',quarterLength = 0.5);
  s.append(n);
  n = note.Note('A4',quarterLength = 0.5);
  s.append(n);
  n = note.Note('C5',quarterLength = 0.5);
  s.append(n);
  n = note.Note('A4',quarterLength = 0.5);
  s.append(n);
  n = note.Note('C5',quarterLength = 0.5);
  s.append(n);
  n = note.Note('A4',quarterLength = 0.5);
  s.append(n);
  c = note.Note('E4',quarterLength = 8);
  s.insertIntoNoteOrChord(0, c);
  s.show('lily.pdf')
  </code></pre>
  <p>The error coming was</p>
  <blockquote>
  <p>s.insertIntoNoteOrChord(0, c);
  music21.exceptions21.StreamException: more than one element found at
  the specified offset</p>
  </blockquote>
  <p>How can I rectify the error?</p>
  <p>Edit:</p>
  <pre><code>from music21 import note,stream
  s = stream.Measure();
  c = note.Note('E4',quarterLength = 8);
  s.insert(0, c)
  n = note.Note('C5',quarterLength = 0.5);
  s.append(n);
  n = note.Note('A4',quarterLength = 0.5);
  s.append(n);
  n = note.Note('C5',quarterLength = 0.5);
  s.append(n);
  n = note.Note('A4',quarterLength = 0.5);
  s.append(n);
  n = note.Note('C5',quarterLength = 0.5);
  s.append(n);
  n = note.Note('A4',quarterLength = 0.5);
  s.append(n);
  n = note.Note('C5',quarterLength = 0.5);
  s.append(n);
  n = note.Note('A4',quarterLength = 0.5);
  s.append(n);
  
  s.show('lily.pdf')
  </code></pre>
  <p>is giving output as</p>
  <p><a href="https://i.stack.imgur.com/Sq3qt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Sq3qt.png" alt="enter image description here" /></a></p>