Skip to content

Commit

Permalink
+ sawtooth, sine, square, triangle waveforms
Browse files Browse the repository at this point in the history
  • Loading branch information
erlehmann committed Oct 9, 2011
1 parent b904a1b commit 3785c24
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions sine
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0xff*(sin(t*2*M_PI/0xff)+1)/2
1 change: 1 addition & 0 deletions square
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(t&128)/128*0xff
2 changes: 2 additions & 0 deletions triangle
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
t*((-t&128) - (t&128))/64

0 comments on commit 3785c24

Please sign in to comment.