• 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

    Example

    triangle_sound(440, 5);