Skip to content Skip to navigation

Connexions

You are here: Home » Content » Introduction to FFT matrix approach

Navigation

Content Actions

  • Download module PDF
  • Add to ...
    Add the module to:
    • My Favorites
    • A lens
    • An external social bookmarking service
    • My Favorites (What is 'My Favorites'?)
      'My Favorites' is a special kind of lens which you can use to bookmark modules and collections directly in Connexions. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need a Connexions account to use 'My Favorites'.
    • A lens (What is a lens?)

      Definition of a lens

      Lenses

      A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

      What is in a lens?

      Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

      Who can create a lens?

      Any individual Connexions member, a community, or a respected organization.

    • External bookmarks
  • E-mail the author

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual Connexions member, a community, or a respected organization.

This content is ...

Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • Rice University ELEC 301 Projects

    This module is included inLens: Rice University ELEC 301 Project Lens
    By: Rice University ELEC 301As a part of collection:"ELEC 301 Projects Fall 2006"

    Click the "Rice University ELEC 301 Projects" link to see all content affiliated with them.

Recently Viewed

This feature requires Javascript to be enabled.

Introduction to FFT matrix approach

Module by: Yiming Wang

Summary: The general introduction of FFT matrix approach for the genre detection.

Introduction to the approach:

Using the FFT approach, we “teach” a matrix to learn how to differentiate between genres. We did this by feeding the database matrix with lots of samples of each genre and tell it what genre each sample is. Then we ask the matrix to make a smart decision about a given sample’s genre.

Creating the database:

To create our database, we collected 10 songs for each genre (Rap, Rock, Jazz, Pop, and Classical). We first convert these songs from Stereo to Mono, which makes it easier for Matlab to carry. Using this we’ll get some long vectors representing each song. We divide each song into samples of length (15ms). Those short samples allow us to get a nice, identified picture of the frequencies represented by those samples. We then take the FFT (Fast Fourier Transform) of each sample, and stack them next to each other into the columns of our database matrix, with 661 rows. Each column represents the frequency spectrum of each 15ms. After that we normalize each vector respectively. We find out that Matlab would run out of memory really fast with huge amount of information. An average song of 5 minute length, for example, would have 20,000 samples of 15ms. And each one would have 661 rows, which gives us 13,220,000 numbers to represent one single song. We solved this problem by taking average of columns: we indeed average a 5 minute song into 75 columns. Although this certainly affected our algorithm’s accuracy by some degree, it allows us to add more songs to be able to build a bigger database matrix, thus compensate for the lost accuracy.

Now we label each column with a number, which represents the type of genre the column stands for (1-5). So each number would correspond to a certain FFT column.

Comments, questions, feedback, criticisms?

Send feedback