A simple scalar example of audio processing:

  • Amplitude is on the y-axis.
  • Time is on the x-axis.

Normalisation in audio signals allows us to adjust the volume (amplitude) of the entire signal.

  • We can change the size of the amplitude in a proportionate way.

Normalisation in audio signals is a bit simpler than statistical normalisation. It involves two phases: analysis and scaling.

  1. Analysis phase
    : In this phase, the signal is analysed to find the peak, or the loudest sample. This is essentially a peak-finding algorithm that identifies the highest amplitude in the waveform.
  2. Scaling phase
    : Once the peak is found, the algorithm calculates how much gain can be applied to the entire signal without causing clipping (distortion). This gain is then applied uniformly to the entire signal.

Linear ramps: fading in and out

  • Fade in
    : It starts with the scalar zero so that mutes the signal and then gradually as we go through that range, we're increasing the scalar up to one when it hits which would make no change to the signal so effectively turns back to the original signal.
  • Fade out
    : It starts out with a high scalar at the beginning of the array of numbers that we're going to process. As the effect, as we've iterated over the numbers in the array, we will reduce that scalar down to zero and then obviously that would sound like the signal getting quieter.

 

'IntelligentSignalProcessing' 카테고리의 다른 글

(w10) Offline ASR (Automatic Speech Recognition) system  (0) 2024.06.11
(w06) Complex synthesis  (0) 2024.05.14
(w04) Filtering  (0) 2024.05.01
(w01) Digitising audio signals  (0) 2024.04.11
(w01) Audio fundamentals  (0) 2024.04.11

단위 벡터 (unit vector) 는 크기가 1인 벡터를 말한다. 그리고 어떤 벡터를 단위 벡터로 만드는 것을 정규화 (normalisation) 라고 한다.

 

3차원 벡터를 아래와 같이 정의하면

$$ u=(x,y,z) $$

 

이 벡터의 크기는 다음과 같이 계산할 수 있다.

$$ \left\| u\right\|=\sqrt{x^2+y^2+z^2} $$

 

이 벡터를 정규화해서 단위 벡터로 만드는 방법은 벡터의 크기로 각 성분을 나누면 된다.

$$ \hat{u}=\frac{u}{\left\| u\right\|}=
(\frac{x}{\left\| u\right\|}, \frac{y}{\left\| u\right\|}, \frac{z}{\left\| u\right\|})=
(\frac{x}{\sqrt{x^2+y^2+z^2}}, \frac{y}{\sqrt{x^2+y^2+z^2}}, \frac{z}{\sqrt{x^2+y^2+z^2}}) $$

 

정규화 한 벡터의 크기를 구하면

$$ \left\| \hat{u}\right\|=
\sqrt{(\frac{x}{\sqrt{x^2+y^2+z^2}})^2, (\frac{y}{\sqrt{x^2+y^2+z^2}})^2, (\frac{z}{\sqrt{x^2+y^2+z^2}})^2}=
\sqrt{\frac{x^2+y^2+z^2}{x^2+y^2+z^2}}  $$

이 단위 벡터의 크기는 1이 되는 것을 알 수 있다.

'Mathematics' 카테고리의 다른 글

DeMoivre  (0) 2024.01.22
Moore-Penrose inverse 무어-펜로즈 의사역행렬  (0) 2023.09.13
Gram-Schmidt orthogonalization  (0) 2023.07.24
Pascal's rule  (0) 2021.09.02
Combinations with repetition  (0) 2021.08.26

+ Recent posts