|
|
@ -84,7 +84,7 @@ class GraphItem(object): |
|
|
|
tickStart and tickEnd are absolute values for the complete track |
|
|
|
This means we can directly export them to calfbox. |
|
|
|
|
|
|
|
result is tuples (ccValue, tickPOsitionOfThatCCValue) |
|
|
|
result is a list of tuples (ccValue, tickPOsitionOfThatCCValue) |
|
|
|
""" |
|
|
|
|
|
|
|
assert 0 <= self.ccStart < 128 |
|
|
@ -110,6 +110,18 @@ class GraphItem(object): |
|
|
|
assert result[0][1] == tickStart |
|
|
|
return result |
|
|
|
|
|
|
|
def quadraticRepresentation(self, ccEnd, tickStart, tickEnd): |
|
|
|
"""see linearRepresentation""" |
|
|
|
assert 0 <= self.ccStart < 128 |
|
|
|
assert 0 <= ccEnd < 128 |
|
|
|
|
|
|
|
result = [] |
|
|
|
if ccEnd == self.ccStart: #there is no interpolation. It is just one value. |
|
|
|
result.append((self.ccStart, tickStart)) |
|
|
|
return result |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def staticRepresentation(self, ccEnd, tickStart, tickEnd): |
|
|
|
if self.graphType == "standalone" or tickEnd < 0 or ccEnd < 0: |
|
|
|
result = [(self.ccStart, tickStart)] |
|
|
|