Beispiel #1
0
def isIntervalOrLarger(n: Interval, n1, n2):
    return Interval.absBetween(n1, n2) >= n
Beispiel #2
0
def isLeap(n1, n2):
    return Interval.absBetween(n1, n2) >= Interval(7)
Beispiel #3
0
def isSkip(n1, n2):
    return And(
        Interval.absBetween(n1, n2) >= Interval(3),
        Interval.absBetween(n1, n2) <= Interval(6))
Beispiel #4
0
def isStep(n1, n2):
    return Or(
        Interval.absBetween(n1, n2) == Interval(1),
        Interval.absBetween(n1, n2) == Interval(2))
Beispiel #5
0
def isNthInterval(n: Interval, n1: Pitch, n2: Pitch):
    return Interval.absBetween(n1, n2) == n
Beispiel #6
0
def isIntervalOrSmaller(n: Interval, n1, n2):
    return Interval.absBetween(n1, n2) <= n