pitchdiff
pitchdiff(
@source ? ## int/float (required)
@targets ? ## int/float/list (required)
) -> int/float
Given a list of target midicents and/or pitch classes, returns the signed difference between a pitch in midicents and the nearest midicent/pitch class target.
Arguments
@source ?
[int/float]: reference pitch in midicents. (required)@targets ?
[int/float/list]: list of midicent or pitch class targets. (required)
Output
signed difference to closest target, in cents. [int/float]