#!/usr/bin/env python
notes = "CDEFGAB"
alterations = [-1, 0, 1]
def print_note (octave, note, alteration):
print " \n \n %s" % notes[note]
if alteration <> 0:
print " %s" % alteration
print " %s\n \n 1\n 1\n quarter\n " % octave
print """
Various piches and interval sizes
MusicXML Part
1
0
major
G
2
"""
start_octave = 5
for octave in (start_octave, start_octave+1):
for note in (0,1,2,3,4,5,6):
for alteration in alterations:
if octave == start_octave and note == 0 and alteration == -1:
continue
print_note (octave, note, alteration)
# if octave == start_octave and note == 0 and alteration == 0:
# continue
print_note (start_octave-(octave-start_octave)-(1-(7-note)/7), (7-note)%7, -alteration)
print """
"""