Source Academy Modules
    Preparing search index...

    Function square_sound

    • Makes a square wave Sound with given frequency and duration

      Parameters

      • f: number

        the frequency of the square wave Sound

      • duration: number

        the duration of the square wave Sound

      Returns Sound

      resulting square wave Sound

      square_sound(440, 5);