Skip to content

Commit ac10409

Browse files
committed
Maybe just try renaming the offending function?
1 parent fc941c6 commit ac10409

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/flitter/language/functions/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
maxindex, maxv, minindex, minv, normalize, ordv, point_towards, qbetween, qmul, quaternion,
1010
read_bytes, read_csv, read_text, sample, slerp, snap, sort, split, zipv)
1111
from .random import beta, normal, shuffle, uniform
12-
from .waves import bounce, impulse, sawtooth, sharkfin, sine, square, triangle
12+
from .waves import bounce, impulse, sawtooth, sharkfin, sine, square, triwave
1313

1414

1515
STATIC_FUNCTIONS = {
@@ -75,7 +75,7 @@
7575
'square': Vector(square),
7676
'sum': Vector(sumv),
7777
'tan': Vector(tanv),
78-
'triangle': Vector(triangle),
78+
'triangle': Vector(triwave),
7979
'uniform': Vector(uniform),
8080
'zip': Vector(zipv),
8181
}

src/flitter/language/functions/waves.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def sawtooth(Vector xs not None):
7474
return ys
7575

7676

77-
def triangle(Vector xs not None):
77+
def triwave(Vector xs not None):
7878
if xs.numbers == NULL:
7979
return null_
8080
cdef Vector ys = Vector.__new__(Vector)

0 commit comments

Comments
 (0)