Source Academy Modules
    Preparing search index...

    Function triangle_sound

    • Makes a triangle wave Sound with given frequency and duration

      Parameters

      • freq: number

        the frequency of the triangle wave Sound

      • duration: number

        the duration of the triangle wave Sound

      Returns Sound

      resulting triangle wave Sound

      triangle_sound(440, 5);