ArticleslgStudy

science

Time–frequency analysis for music signals

Time–frequency analysis for music signals is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Time–frequency analysis for music signals rather than just read about it. In short: Time–frequency analysis for music signals is one of the applications of time–frequency analysis. Musical sound can be more complicated than human vocal sound, occupying a wider band of frequency.

Time–frequency analysis for music signals — main illustration
Time–frequency analysis for music signals — illustration

Key takeaways

  • Time–frequency analysis for music signals belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Time–frequency analysis for music signals to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Time–frequency analysis for music signals from memory before moving on to harder problems.

Reference excerpt

Time–frequency analysis for music signals is one of the applications of time–frequency analysis. Musical sound can be more complicated than human vocal sound, occupying a wider band of frequency. Music signals are time-varying signals; while the classic Fourier transform is not sufficient to analyze them, time–frequency analysis is an efficient tool for such use. Time–frequency analysis is extended from the classic Fourier approach. Short-time Fourier transform (STFT), Gabor transform (GT) and Wigner distribution function (WDF) are famous time–frequency methods, useful for analyzing music signals such as notes played on a piano, a flute or a guitar.

Knowledge about music signal Music is a type of sound that has some stable frequencies in a time period. Music can be produced by several methods. For example, the sound of a piano is produced by striking strings, and the sound of a violin is produced by bowing. All musical sounds have their fundamental frequency and overtones. Fundamental frequency is the lowest frequency in harmonic series. In a periodic signal, the fundamental frequency is the inverse of the period length. Overtones are integer multiples of the fundamental frequency.

In musical theory, pitch represents the perceived fundamental frequency of a sound. However the actual fundamental frequency may differ from the perceived fundamental frequency because of overtones.

Short-time Fourier transform

Continuous STFT Short-time Fourier transform is a basic type of time–frequency analysis. If there is a continuous signal x(t), we can compute the short-time Fourier transform by

S T F T { x ( t ) } ≡ X ( t , f ) = ∫ − ∞ ∞ x ( τ ) w ( t − τ ) e − j 2 π f τ d τ {\displaystyle \mathbf {STFT} \left\{x(t)\right\}\equiv X(t,f)=\int _{-\infty }^{\infty }x(\tau )w(t-\tau )e^{-j2\pi f\tau }\,d\tau }

where w(t) is a window function. When the w(t) is a rectangular function, the transform is called Rec-STFT. When the w(t) is a Gaussian function, the transform is called Gabor transform.

Discrete STFT However, normally the musical signal we have is not a continuous signal. It is sampled in a sampling frequency. Therefore, we can’t use the formula to compute the Rec-short-time Fourier transform. We change the original form to

X ( n Δ t , m Δ f ) = ∑ p = n − Q n + Q x ( p Δ t ) e − j 2 π p m Δ t Δ f Δ t {\displaystyle X(n\,\Delta t,m\,\Delta f)=\sum _{p=n-Q}^{n+Q}x(p\,\Delta t)e^{-j2\pi pm\,\Delta t\,\Delta f}\,\Delta t}

Let t = n Δ t {\displaystyle t=n\,\Delta t} , f = m Δ f {\displaystyle f=m\,\Delta f} , τ = p Δ t {\displaystyle \tau =p\,\Delta t} and B = Q Δ t {\displaystyle B=Q\,\Delta t} . There are some constraints of discrete short-time Fourier transform:

Δ t Δ f = 1 N , {\displaystyle \Delta t\,\Delta f={\frac {1}{N}},} where N is an integer.

N ≥ 2 Q + 1 {\displaystyle N\geq 2Q+1}

Δ < 1 2 f max {\displaystyle \Delta <{\frac {1}{2f_{\max }}}} , where f max {\displaystyle f_{\max }} is the highest frequency in the signal.

STFT example Figure 1 shows the waveform of an audio file "" with 44100 Hz sampling frequency. Figure 2 shows the time-frequency plot of the short-time Fourier transform (in particular, Gabor transform) results of the audio file. In this plot, horizontal lines with frequencies not greater than 230 Hz represent the fundamental frequencies while horizontal lines with frequencies above 230 Hz represent the harmonic components. Observe that from t = 0 to 0.5 second, a chord consists of three notes (C-E-G) is played. The chord then changed to C-E-A at t = 0.5, and then changed again to D-F-A at t = 1.

Spectrogram Figure 3 shows the spectrogram of the audio file shown in Figure 1. Spectrogram is the square of STFT, time-varying spectral representation. The spectrogram of a signal s(t) can be estimated by computing the squared magnitude of the STFT of the signal s(t), as shown below:

… excerpt ends here. Continue reading the full article.

Illustrations

Time–frequency analysis for music signals: Fig.2 Gabor transform of ""
Fig.2 Gabor transform of ""
Time–frequency analysis for music signals: Fig. 3 Spectrogram of ""
Fig. 3 Spectrogram of ""

Worked examples

Example 1 — a first encounter with Time–frequency analysis for music signals

Start with the simplest possible case. Write down what Time–frequency analysis for music signals claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Time–frequency analysis for music signals before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Time–frequency analysis for music signals ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Time–frequency analysis for music signals

In research
Time–frequency analysis for music signals appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Time–frequency analysis for music signals in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Time–frequency analysis for music signals is common in secondary-school and first-year university syllabi. It links to neighbouring topics Musical analysis, Time–frequency analysis, so understanding it makes those chapters shorter.
In everyday life
Look for Time–frequency analysis for music signals outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Time–frequency analysis for music signals” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Time–frequency analysis for music signals in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Time–frequency analysis for music signals means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Time–frequency analysis for music signals out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Time–frequency analysis for music signals in simple terms?

Time–frequency analysis for music signals is one of the applications of time–frequency analysis. Musical sound can be more complicated than human vocal sound, occupying a wider band of frequency.

Why does Time–frequency analysis for music signals matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Time–frequency analysis for music signals?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Time–frequency analysis for music signals.

Tags

  • Musical analysis
  • Time–frequency analysis

Keep exploring