#print styles.list()
styleN = styles['Normal']
styleI = ParagraphStyle(name='',
    parent=styles['Italic'],
    alignment=2)
styleT = ParagraphStyle(name='Title',
    parent=styles['Title'], 
    fontName='DejaVuSans', alignment=TA_LEFT)
            


fb7 = ReportlabFB(None, inch)
fb7.u_height = 1.1
fb7.u_width = 5.75
fb7.num_frets = 14.0
fb7.numbered_frets = [3,5,7,9,12,]



import learn_notes as ln
days = zip(ln.strings + ln.strings, ln.notes, ln.frets + ln.frets)

doc = SimpleDocTemplate("12_days.pdf",  pagesize=letter, bottomMargin = 0.25*inch, topMargin = 0.75*inch)
story = []
count = 0
for i, day in enumerate(days):
    strings, notes, frets = day
    
    story.append(Paragraph('Day '+str(i+1),styleT))
    story.append(FBFlowable(fb7,notes))
    story.append(FBFlowable(fb7,strings))
        topPadding=0,
        bottomPadding=0,
        rightPadding=0,
        leftPadding=0,
    )
    frames.append(column)

template = PageTemplate(frames=frames)
doc.addPageTemplates(template)


fbfc = ReportlabFB(None, inch)
fbfc.u_height = 1
fbfc.u_width = (frameWidth / inch) * 0.98
fbfc.do_fret_markers = True
fbfc.numbered_frets = []
g = 0
fbfc.base_color = (g, g, g, 1)


def add_string(l, s):
    return [(x[0], s + " String", x[1], x[2]) for x in l]


sharp = u"\u266F"
flat = u"\u266D"


def add_accidental(n):
    n = unicode(n)
    notes = u"ABCDEFGA"