def get_one_hot_index_from_ints(tonic, quality, num_qualities=3):
    """
    Get the one-hot index of a chord with the given tonic and quality.
    
    Parameters
    ==========
    tonic : int
        The tonic of the chord, where 0 is C. None represents a chord with no tonic.
        
    quality : int
        The quality of the chord, where 0 is major, 1 is minor, and 2 is diminished.
        
    num_qualities : int
        The number of allowable qualities in this set of chords. Defaults to 3.
    
    Returns
    =======
    index : int
        The one-hot index of the given chord and quality. A chord with no tonic returns
        an index of 36.
    """
    try:
        return tonic + 12 * quality
    except:
        return 12 * num_qualities