• Makes a square wave Sound with given frequency and duration

    Parameters

    • f: number
    • duration: number

      the duration of the square wave Sound

    Returns Sound

    resulting square wave Sound

    Example

    square_sound(440, 5);