mymombehindme
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    --- tags: 多媒體 --- # 多媒體(四)Digital Audio Representation ## 相位角:Phase angle - ![](https://i.imgur.com/CsVSLAX.png) ## 相位差 - ![](https://i.imgur.com/kLw1Hw3.png) ## 角頻率 (w):Angular Frequency - 每秒鐘轉了多少角度稱為角頻率或角速度,以 w 來表示,單位為 rad/sec。rad 為弳度,1 個週期或 1 個振盪的角度為 2p 個弳度,相當於 360。頻率 (f) 與角頻率 (w) 的不同: - 頻率 f :每秒振盪多少次。 - 角頻率 w :每秒振盪多少弳度。 - 振盪 1 次是 2p 個弳度,因此 w = 2pf ## Decibels(分貝) - The definition of decibel (dB) is: - 1 𝑑𝐵 = 10 log10(𝐼/𝐼0), I and I0 are the intensities (power) of two signals - The relationship between power I, amplitude E and resistance R:𝐼 =$𝐸^2/𝑅$, you can verify two definitions are the same by assuming the R is constant for the two signals ## Decibels of Sound - ![](https://i.imgur.com/fTRIfVZ.png) ## Audio Dithering - 是在數位訊號處理領域的中一項用於降低量化誤差的技術。通過在較低位元中加入雜訊,藉此破壞諧波的排序,使諧波的影響受到壓制,並減少量化誤差在低頻的影響。 - Audio dithering is a way to compensate for quantization error - Quantized signals would sound ‘granular(顆粒狀)’ because of the stair-step effect. (又稱aliasing,主要來自於對連續時間訊號作取樣以數位化時,取樣頻率低於兩倍奈奎斯特頻率) - The quantized signals sound like the original signals plus the noise.(量化後的訊號聽起來=原始訊號+噪音) - The noise follows the same pattern as the original wave,human ear mistakes it as the original signal. - ![](https://i.imgur.com/bZjb7Jd.png) - Adding a random noise(dither) to the original wave eliminates the sharp stair-step effect in the quantized signal. - 做完dithering,原始聲音比較能維持正常,但後面的雜音會很大 - 如果只有做Quantized,原始聲音會壞掉 ## Noise Shaping - Noise shaping is another way to compensate for the quantization error. Noise shaping is not dithering, but it is often used along with dithering.(噪聲整形是一種通常用於數字音頻,圖像和視頻處理的技術,通常與dithering結合使用,作為數字信號量化或位深縮減過程的一部分。其目的是增加合成信號的視在信噪比。) - ![](https://i.imgur.com/N3pumjO.png) - What does noise shaping do - Move noise’s frequency to above the Nyquist frequency,and filter it out. We are not losing anything we care about in the sound. - ![](https://i.imgur.com/1E5CytT.png) - 可看到資料的頻率越來越高 ## Non-Linear Quantization - Nonlinear encoding, or companding, is an encoding method that arose from the need for compression of telephone signals across low bandwidth lines - Companding means compression and then expansion - Reasons for non-linear quantization - Human auditory system is perceptually non-uniform. Humans can perceive small differences between quiet sounds, but not for louder sounds - 人耳聽覺在每個頻段不一樣 - Quantization error generally has more impact on low amplitudes than on high ones, why? - 0.499 -> 0, err=(0.499-0)/0.499 = 100% - 126.499 -> 126, err=(126.499-126)/126.499 = 0.4% ## μ-law Function - ![](https://i.imgur.com/CKkSOWA.png) - ![](https://i.imgur.com/SwpKATK.png) - 靠近0的地方變化比較大,切得比較細,兩側可切比較粗 - 用non-linear的方法,可以減小數值很小的時候的quantization error ## Comparison of Quantization Interval Size - ![](https://i.imgur.com/rL2VZ99.png) ## The Fourier Series - ![](https://i.imgur.com/GQh13MX.png) - 𝑓(𝑡) : a complex audio wave - 𝜔 = 2𝜋𝑓: fundamental angular frequency - 𝑓: fundamental frequency - ![](https://i.imgur.com/uJqv03k.png) - When n=0, cos(0) = 1 and sin(0) = 0. Only a0 left. - a0 is the DC component, which gives the average amplitude value over one period - ![](https://i.imgur.com/lf4qcdE.png) - ![](https://i.imgur.com/D0umDma.png) - ![](https://i.imgur.com/34obSrz.png) - ![](https://i.imgur.com/lV18ANn.png) ## What is Fourier Series ? - ![](https://i.imgur.com/PSnD7nG.png) ## Discrete Fourier Transform - ![](https://i.imgur.com/AWnfBd9.png) ## Phase Information - ![](https://i.imgur.com/zKk3Sav.png) ## FFT - You CANNOT perform any kind of Fourier transform on a single sample. You need a block of samples. - The FFT algorithm has to operate on blocks of samples where the number of samples is a power of 2.(要是2的次方的資料大小才行) - For DFT, it can work with a sample set of any block size. - the larger the FFT size, the greater the frequency resolution. However, the larger the FFT size, the smaller the time resolution - ![](https://i.imgur.com/urt0fgK.png) - 左邊就可以取12次,右邊4次 - Due to this phenomenon(called spectral leakage), the FFT may assume the original signal looks like Fig.4.21 - ![](https://i.imgur.com/yNwJdaW.png) ## Spectral Leakage - A simple sinusoidal wave of 300Hz - After FFT, some frequencies other than 300Hz appear due to spectral leakage - ![](https://i.imgur.com/XXrCyyM.png) - 在300HZ旁邊還有一些不乾淨的值 ## Window Function - 用window function雖然比較準確,但是值的強度會比較不明顯 ## Musical Acoustics and Notation - 差八度音就是,頻率差兩倍

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully