Source Academy Modules
    Preparing search index...

    Function sine_sound

    • Makes a sine wave Sound with given frequency and duration

      Parameters

      • freq: number

        the frequency of the sine wave Sound

      • duration: number

        the duration of the sine wave Sound

      Returns Sound

      resulting sine wave Sound

      sine_sound(440, 5);