ArticleslgStudy

engineering

Music source separation

Music source separation is a engineering 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 Music source separation rather than just read about it. In short: Music source separation (MSS), also known as stem separation, demixing, audio source separation or unmixing, is a technique of separating one audio track into multiple audio tracks by targeting mixed material using music information retrieval (MIR). MSS is a branch of signal separation which was established in the mid-1990s as a technology to reconstruct one or more source signals from mixtures of them.

Music source separation — main illustration
Music source separation — illustration

Key takeaways

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

Reference excerpt

Music source separation (MSS), also known as stem separation, demixing, audio source separation or unmixing, is a technique of separating one audio track into multiple audio tracks by targeting mixed material using music information retrieval (MIR). MSS is a branch of signal separation which was established in the mid-1990s as a technology to reconstruct one or more source signals from mixtures of them. The process is generally utilized by music professionals to separate existing recordings for the purposes of enhancing the balance of the mix, remixing, or remastering. There are additional use cases where no multitrack or session files are available for the sound recording, making it necessary to rely on tools that provide stem separation from a single audio file.

Initial audio source separation for commercial purposes resulted in a file that was non-destructively separated, so that the resulting files could be reconstructed and sound exactly like the original without introducing issues when all tracks were performed simultaneously. There are a wide variety of applications of the technology outside of music including teaching, forensics, speech separation, live sound cancelation, audio restoration, and VR/AR.

Harmonic–percussive source separation Harmonic–percussive source separation (HPSS) is a technique for decomposing a mixed audio signal into harmonic and percussive components. One representative approach is the median filtering-based separation method proposed by FitzGerald in 2010. This method requires no prior training and exploits differences in the time–frequency structures of monaural audio signals. In this method, the short-time Fourier transform (STFT) is first applied to the input signal to obtain its magnitude spectrogram. In a spectrogram with time on the horizontal axis and frequency on the vertical axis, harmonic components associated with sustained sounds of stable pitch tend to appear as horizontal structures. In contrast, percussive components, which exhibit energy across a wide frequency range over a short period of time, tend to appear as vertical structures. Based on these characteristics, median filtering is applied to the magnitude spectrogram along the time and frequency axes, respectively. Median filtering along the time axis suppresses transient peaks associated with percussive components and emphasizes temporally sustained harmonic components. Conversely, median filtering along the frequency axis suppresses narrowband peaks associated with harmonic components and emphasizes percussive components distributed across a broad frequency range. From the two resulting spectrograms, soft masks for extracting the respective components are calculated as

MH(h,i)=Hh,ipHh,ip+Ph,ip, MP(h,i)=Ph,ipHh,ip+Ph,ip. Here, h denotes the frequency bin and i denotes the time frame. Hh,i and Ph,i are the harmonic and percussive estimates obtained through median filtering. The positive exponent p controls the soft-mask weighting and is typically set to 1 or 2. The time-domain signals are obtained by element-wise multiplication of the original complex spectrogram by the masks, followed by the inverse short-time Fourier transform. Compared with the iterative diffusion-based HPSS approach discussed by FitzGerald, the median filtering-based method requires fewer passes over the spectrogram and has a lower computational cost. Applications include music remixing, automatic transcription of pitched instruments, chord and key-signature detection, automatic drum transcription, and beat tracking. However, because the method relies on directional structures in the spectrogram, some sounds cannot be assigned unambiguously. In FitzGerald's examples, the attack portions of instruments such as guitars and pianos were assigned to the percussive component, while guitar passages with continuously changing pitch were not cleanly separated. Driedger et al. further noted that sounds such as applause, rain, and heavily distorted guitars are neither clearly harmonic nor clearly percussive and may be distributed between the two output components. Because the classification is based on local spectro-temporal structure rather than instrument identity, a single instrument may contribute energy to both outputs. For example, the attack of a guitar or piano may be classified as percussive, while its sustained portion may be classified as harmonic. Therefore, the harmonic and percussive outputs do not necessarily correspond to individual instrumental sources.

Two-stage harmonic–percussive sound separation Tachibana et al. proposed a two-stage HPSS (Harmonic-Percussive Sound Separation) method for enhancing singing voices in monaural music. This approach leverages the pitch and amplitude fluctuations of the singing voice: in a spectrogram generated with a short analysis frame in the short-time Fourier transform (STFT), the singing voice appears more like a sustained harmonic sound, whereas with a longer STFT frame length, its fluctuations cause it to exhibit a time-frequency structure more akin to percussive components. Consequently, by varying the length of the analysis window, it is possible to progressively separate sustained instrumental sounds, singing voices, and percussive elements. In this method, the first stage uses STFT with short frame length to perform HPSS on the mixed signal, retaining the output that contains sustained musical instruments and vocals. The second stage uses STFT with long frame length to apply HPSS again to this output, yielding an approximation of the vocal component. s(t)→HPSS(l1)h1(t),p1(t),h1(t)≈H+V,p1(t)≈P h1(t)→HPSS(l2)h2(t),p2(t),h2(t)≈H,p2(t)≈V Here, s(t) denotes the input mixed signal. l1, l2 represent the analysis window lengths for the first and second stages, respectively—the former being shorter and the latter longer. hi(t), pi(t) represent the harmonic and percussive outputs for the i-th stage. H denotes stationary, sustained components. V denotes fluctuating quasi-stationary components such as singing voices. P denotes transient, non-stationary components such as percussion. However, this method relies on the fluctuation characteristics of the singing voice. Vocal sounds with weak fluctuations may be categorized as sustained harmonic components, while instrumental sounds exhibiting similar fluctuations might also be mixed into the vocal output.

… excerpt ends here. Continue reading the full article.

Illustrations

Music source separation: Music Source Separation
Music Source Separation

Worked examples

Example 1 — a first encounter with Music source separation

Start with the simplest possible case. Write down what Music source separation claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In engineering, 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 Music source separation 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 Music source separation 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 Music source separation

In research
Music source separation appears in engineering 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 Music source separation 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
Music source separation is common in secondary-school and first-year university syllabi. It links to neighbouring topics Audio engineering, so understanding it makes those chapters shorter.
In everyday life
Look for Music source separation 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 “Music source separation” →

How to study Music source separation in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Music source separation 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 Music source separation out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Music source separation in simple terms?

Music source separation (MSS), also known as stem separation, demixing, audio source separation or unmixing, is a technique of separating one audio track into multiple audio tracks by targeting mixed material using music information retrieval (MIR). MSS is a branch of signal separation which was es…

Why does Music source separation matter?

Because it connects several engineering 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 Music source separation?

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 Music source separation.

Tags

  • Audio engineering

Keep exploring