#NEWLINE# def _notes( string , notes , scale_notes , root_note ) : #NEWLINE# #INDENT# y = ( ( FRET_LENGTH - ( string * STRING_SPACING ) ) + FB_BOTTOM ) #NEWLINE# res = [ Quad ( x = ( ( ( ( c + 0.5 ) * FRET_SPACING ) + 0.5 ) + FB_LEFT ) , y = y , size = _sz ( c ) , tex = ( 'root_note' if ( notes [ c ] == root_note ) else 'note' ) ) for c in xrange ( FRET_COUNT ) if ( notes [ c ] in scale_notes ) ] #NEWLINE# return ( res + [ Quad ( x = ( ( ( ( c + 0.5 ) * FRET_SPACING ) + 0.5 ) + FB_LEFT ) , y = y , size = _sz ( c ) , tex = ( 'note_%s' % notes [ c ] ) ) for c in xrange ( FRET_COUNT ) if ( notes [ c ] in scale_notes ) ] )