mwg API
    Preparing search index...

    Function regionPlaybackRate

    • The playback rate a tune authored for one region runs at on the other: a PAL machine's 50 Hz clock against NTSC's 60 Hz makes the same file slower and lower, which is the difference a player who grew up with the other standard hears first.

      Parameters

      Returns number

      import { regionPlaybackRate } from '@datamoc/mwg/audio';

      console.log(regionPlaybackRate('pal', 'ntsc')); // 0.8333..., slower on PAL
      console.log(regionPlaybackRate('ntsc', 'ntsc')); // 1, its own region