sinr and sind both output -1 to 1
and you would use CEILING on sin to get the square
phoenix is right on basically all counts
except triangle
triangle is abs(2-(X%4))-1
which is 5 gates: modulus, constant, subtract, absolute, decrement.
edit: oops mistake
edit2: i just noticed the 50 lines of code above me were for sawtooth...
don't do the huge if statements and variables use this formula.
edit3: NO WAIT MY FORMULAS TRIANGLE. wtf am i thinking.
sawtooth formula (x%2)-1 and inverted sawtooth 1-(x%2)[/b]
Bookmarks