Source Academy Modules
    Preparing search index...

    Function get_duration

    • Accesses the duration of a given Sound.

      Parameters

      • sound: Sound

        given Sound

      Returns number

      the duration of the Sound

      get_duration(make_sound(t => Math_sin(2 * Math_PI * 440 * t), 5)); // Returns 5