Skip to content Skip to navigation

OpenStax-CNX

You are here: Home » Content » Implementation: Code

Navigation

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 display tagshide tags

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

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

    Click the tag icon tag icon to display tags associated with this content.

Also in these lenses

  • Lens for Engineering

    This module is included inLens: Lens for Engineering
    By: Sidney BurrusAs a part of collection: "ELEC 301 Projects Fall 2007"

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

Recently Viewed

This feature requires Javascript to be enabled.

Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.
 

Implementation: Code

Module by: Tanwee Misra, Kriti Charan, Janice Chow. E-mail the authorsEdited By: Tanwee Misra, Kriti Charan, Janice Chow

Summary: This module contains a description of and a link to the functions we created in Matlab to implement the drum kit.

To get a better understanding for how we implemented the drum kit, you might want to have a look at our Matlab code.

The code is available at: http://www.geocities.com/tapthat_virtualdrum/tapthat.html

Essential Files:

proj_301.m- This is a wrapper function to set up video acquisition and collect frames from the camera.

detectcolor.m- This function checks for presence of the LED.

coord.m- This function finds the position of the LED in each frame, computes its velocity and hit-point.

drumdet.m- This function determines which drum was hit.

drumdisp.m- It produces the sound and displays the image corresponding to the drum that was hit.

Files for debugging and setting up the system:

adjust.m- This is mainly for the user’s convenience. It helps adjust the position of the user with respect to the drums.

checkframe.m- This can be used to verify that the color detection works properly for a particular frame.

Content actions

Download module as:

Add 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