From 2a6446bd77f0e330784d14a291d6db7b9bee91df Mon Sep 17 00:00:00 2001 From: Jackson Moore Date: Sat, 9 Jun 2018 15:17:03 +0200 Subject: reprojected features don't inherit value --- harmony.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'harmony.py') diff --git a/harmony.py b/harmony.py index 9247acb..ebef53d 100644 --- a/harmony.py +++ b/harmony.py @@ -95,6 +95,9 @@ def makeLens(harmonyFeatures, ligature): lens.append( flatten(expand(address, 7))[33] ) if note == -1/32: lens.append( flatten(expand(address, 7))[31] ) + for shift in lens: + shift = (shift+harmonyFeatures['transposition']) + if abs(shift) == 2: shift = int(shift * -1/2) return lens def expand(address, magnification, getValues=True): -- cgit v1.2.3