Also: can mp3s be totally represented as a text file?

  • mvirts@lemmy.world
    link
    fedilink
    arrow-up
    27
    ·
    edit-2
    4 months ago

    The nyquist shannon sampling theorem is the idea that as long as you capture ‘samples’ of signal (like the air pressure over time that is sound) faster that twice the period of the highest frequency component of the signal, all the information is captured and the aignal can be reproduced exactly (in theory).

    maybe think of it like looking through a fence. As long as nothing on the other side of the fence is shorter than the spacing between posts, you can everything on the other side.

    note that any file can be encoded as text with something like Base64

    • intensely_human@lemm.ee
      cake
      link
      fedilink
      arrow-up
      8
      ·
      4 months ago

      This does involve a cutoff point in the “maximum” frequency of a signal. Actual sound contains a much larger frequency spectrum than our audio file formats are designed to handle.

      • SturgiesYrFase@lemmy.ml
        link
        fedilink
        arrow-up
        7
        ·
        4 months ago

        Actual sound also contains a larger frequency spectrum than our ears are designed to handle. Not throwing shade, our audio file formats also contain a narrower frequency spectrum than we can hear generally speaking.

        • intensely_human@lemm.ee
          cake
          link
          fedilink
          arrow-up
          3
          arrow-down
          1
          ·
          4 months ago

          I speak incompletely because I expect others to argue and complete the conversation. No shade perceived at all.

      • Strykker@programming.dev
        link
        fedilink
        arrow-up
        4
        ·
        4 months ago

        Sure but human hearing tends to cap out at around 24khz so a sample rate of 48khz is going to contain everything that we can hear.