Source Academy Modules
    Preparing search index...

    Function sawtooth_sound

    • Makes a sawtooth wave Sound with given frequency and duration

      Parameters

      • freq: number

        the frequency of the sawtooth wave Sound

      • duration: number

        the duration of the sawtooth wave Sound

      Returns Sound

      resulting sawtooth wave Sound

      sawtooth_sound(440, 5);