Skip to content

Commit

Permalink
Remove unecessary notes.md file. Add placeholder for the rest of the …
Browse files Browse the repository at this point in the history
…chapters. Rearange the content list
  • Loading branch information
varsill committed Jun 13, 2022
1 parent 32c24e6 commit 78321ba
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 25 deletions.
1 change: 1 addition & 0 deletions multimedia_introduction/1_GeneralIdeas.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# General ideas
16 changes: 10 additions & 6 deletions multimedia_introduction/2_AudioProcessing.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,19 @@ Representing raw sounds in this way is called Pulse Code Modulation (PCM) and he

Notice that to capture a sound with a given frequency we need a sampling rate that's at least double that frequency to account for both the peaks and the throughs in the wave.

(It's actually more complicated and involves [math](https://en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem))
(It's actually more complicated and involves some [math](https://en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem))

As most human speech is below 4kHz an `8kHz` sampling rate is usually used to register it (for example in GSM). `44.1kHz` or `48kHz` is used for standard quality audio as this is sufficient to cover the human hearing range and `96kHz` is used for high-quality audio.
As most human speech is below 4kHz an `8kHz` sampling rate is usually used to register it (that is the cas, for instance, in GSM). `44.1kHz` or `48kHz` is used for standard quality audio as this is sufficient to cover the human hearing range and `96kHz` is used for high-quality audio.

TODO: how do I tie this in?
When it comes to sampling, a problem called 'aliasing' occurs.
Imagine, that you are about to sample with `f_s` frequency. If so, you cannot distinguish between the harmonic signal of frequency `f_0` from the signal of frequency (`f_0+k*f_s`), where k is a integer.
Such a situation is shown on the picture below:
![pulse code modulation](assets/aliasing.png)

>In addition, signals must be low-pass filtered before sampling to avoid aliasing. While an ideal low-pass filter would perfectly pass frequencies below 20 kHz (without attenuating them) and perfectly cut off frequencies above 20 kHz, such an ideal filter is theoretically and practically impossible to implement as it is noncausal, so in practice, a transition band is necessary, where frequencies are partly attenuated. The wider this transition band is, the easier and more economical it is to make an anti-aliasing filter. The 44.1 kHz sampling frequency allows for a 2.05 kHz transition band.
A nice example of aliasing
While sampling in points marked as black dots, we can interpolate both the blue (the original harmonic wave) and the red (so called "alias") sin-waves through these points.
As you can see, aliasing introduces some additional harmonic waves to our description of sound, with frequencies higher then the original ones.
That is why signals must be low-pass filtered before sampling to avoid that problem. While an ideal low-pass filter would perfectly pass frequencies below 20 kHz (without attenuating them) and perfectly cut off frequencies above 20 kHz, such an ideal filter is theoretically and practically impossible to implement as it is noncausal, so in practice, a transition band is necessary, where frequencies are partly attenuated. The wider this transition band is, the easier and more economical it is to make an anti-aliasing filter. The 44.1 kHz sampling frequency allows for a 2.05 kHz transition band.
Below you can find out more about the nature of aliasing:
https://www.youtube.com/watch?v=--P0ZsbzJSw

## Raw audio and terminology
Expand Down
1 change: 1 addition & 0 deletions multimedia_introduction/3_MultimediaContainers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Multimedia containers
1 change: 1 addition & 0 deletions multimedia_introduction/4_TransmissionOfMultimedia.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Transmission of multimedia]
Binary file added multimedia_introduction/assets/aliasing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions multimedia_introduction/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ Learn about the basic concepts underpinning audio and video processing!
Sections:
+ [General ideas](1_GeneralIdeas.md)
+ [Audio processing](2_AudioProcessing.md)
+ [Video processing](3_VideoProcessing.md)
+ [Multimedia containers](4_MultimediaContainers.md)
+ [Transmission of multimedia](5_TransmissionOfMultimedia.md)
+ [Multimedia containers](3_MultimediaContainers.md)
+ [Transmission of multimedia](4_TransmissionOfMultimedia.md)

<br>
[List of tutorials](../../index.md)
16 changes: 0 additions & 16 deletions multimedia_introduction/notes.md

This file was deleted.

0 comments on commit 78321ba

Please sign in to comment.