#NEWLINE# def parse_octave( string ) : #NEWLINE# #INDENT# '5 is central octave. Return 5 as a fall-back' #NEWLINE# if size : #NEWLINE# #INDENT# size = string . count ( string [ 0 ] ) #NEWLINE# return ( ( size + 4 ) if ( string [ 0 ] == "'" ) else ( ( - size ) + 5 ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return 5