Skip to content Skip to navigation Skip to collection information

Connexions

You are here: Home » Content » ELEC 301 Projects Fall 2006 » Introduction to FFT matrix approach

Navigation

Table of Contents

Lenses

What is a lens?

Definition of a lens

Lenses

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

What is in a lens?

Lens makers point to 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 member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

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 collection is included inLens: Rice University ELEC 301 Project Lens
    By: Rice University ELEC 301

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

  • Rice Digital Scholarship

    This collection is included in aLens by: Digital Scholarship at Rice University

    Click the "Rice Digital Scholarship" link to see all content affiliated with them.

Also in these lenses

  • Lens for Engineering

    This collection is included inLens: Lens for Engineering
    By: Sidney Burrus

    Click the "Lens for Engineering" link to see all content selected in this lens.

Recently Viewed

This feature requires Javascript to be enabled.
 

Introduction to FFT matrix approach

Module by: Yiming Wang. E-mail the author

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.

Collection Navigation

Content actions

Download module as:

Add:

Collection to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

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

What is in a lens?

Lens makers point to 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 member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

Module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

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

What is in a lens?

Lens makers point to 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 member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks