;
; helper for :mkint
; calculate the interval using pc classes
; if results is not within the max/min range, then return the range boundaries (quantized for the requested scale!)
; ; https://en.wikipedia.org/wiki/Interval_(music)#Interval_number_and_quality
(define helper:mkint-inner
(lambda (root degree scale_or_quality)