View Single Post
Old 07-02-2019, 01:43 PM   #2
sai'ke
Human being with feelings
 
sai'ke's Avatar
 
Join Date: Aug 2009
Location: NL
Posts: 1,457
Default

You probably want $pi. Also, you might want to clamp the input between -1 and 1, so that it doesn't exceed the peak of the sine wave unless that is the kind of sound you are going for.
__________________
[Tracker Plugin: Thread|Github|Reapack] | [Routing Plugin: Thread|Reapack] | [More JSFX: Thread|Descriptions|Reapack]
sai'ke is offline   Reply With Quote