Converts from pitch number to mod-N pitch class number. The modulus N defaults to 12 but is an optional parameter that can be set to other values.