Music Detection Modeling in Simulink

2 views (last 30 days)
Katherine Thomasson
Katherine Thomasson on 27 Jan 2020
I am working on a noise cancelling algorithm using MATLAB and a Teensy 4.0 setup. At the moment I want to create a music detection model in Simulink for testing purposes. Below I list what I think the general steps would be, but need help getting it off the paper (or screen) and into code using Simulink.
General Steps Involved in Detecting an Audio Event:
  1. Sample the audio: In this step, I will need to consider the sampling rate. Simulink blocks will make this easy.
  2. Buffer the audio: As the audio is coming in, I will need to save a "chunk" of it for processing The size of the "chunk" (along with my sampling rate) determines the interval of observation and in some ways, the computational complexity of the upcoming steps.
  3. Preprocess the audio: Before extracting features from a signal, there are often small steps taken to make the features easier to "extract"--these include things like filtering, windowing, applying preemphesis, etc. This varies and largely depends on the application.
  4. Feature extraction: Once the buffer of audio has been preprocessed, it is time to extract the features of interest. These will also vary depending on the application. For speech processing, what would be extracted are LPC coefficients. For musical processing, what would be extracted are the dominant spectral components. Perhaps we just want to check the energy level within a particular spectral range?*Determining the features to extract is what makes audio processing difficult. There are many papers on music recognition/classification. Look for examples to prevent wasted time on mistakes.
  5. Feature comparison: I will need to compare the features extracted to some decisional threshold. These are generally criteria determined with "training data." Alternatively, I can train a model to "recognize" features belonging to a given class of data (i.e., music or not-music).
*Because I need simple music detection, I could get away with simple thresholding of features.
Anyone here know of a good resource, or can help support my way through it?
Best,
Kate T.

Answers (0)

Categories

Find more on Audio Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!