def pitchToVolpiano(pitch, liquescence=False):
    """Convert a music21.pitch object to a volpiano character"""
    volpianoLiquescents = '()ABCDEFGHJKLMNOPQRS'
    volpianoNotes = '89abcdefghjklmnopqrs'
    # Adapted from music21.volpiano.volpiano
    # Currently only support TrebleClef; could change this later:
    # clef = self.getContextByClass('Clef')
    # clefLowestLine = clef.lowestLine
    clefLowestLine = 31
    distanceFromLowestLine = pitch.diatonicNoteNum - clefLowestLine
    # The lowest volpiano note is 6 steps away from the lowest line
    index = distanceFromLowestLine + 6

    if index >= len(volpianoNotes):
        raise Exception(f'Cannot convert pitch {pitch.nameWithOctave} to volpiano: too high')
    elif index < 0:
        raise Exception(f'Cannot convert pitch {pitch.nameWithOctave} to volpiano: too low')
    
    if liquescence: 
        return volpianoLiquescents[index]
    else:
        return volpianoNotes[index]