expand

Reference > sin

Wave
Spectrum

    

sin(frequency, phase) Returns a function whose input is a time (in seconds) and whose output is a point on a sine wave. You can create a 440 Hz sine wave by mapping a time wave to this sin function, using time.map(sin(440))

You can find the code for sin in the synthesine library.